:root {
  --bg: #f4f6f0;
  --surface: #ffffff;
  --surface-alt: #ebf0e6;
  --text: #18211d;
  --muted: #4f5f57;
  --brand: #0f766e;
  --brand-deep: #134e4a;
  --accent: #c4632f;
  --line: #d7e0d7;
  --shadow: 0 18px 36px rgba(24, 33, 29, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.18), transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(196, 99, 47, 0.14), transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-wrap {
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(244, 246, 240, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: "Bitter", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-alt);
  color: var(--brand-deep);
}

.hero {
  padding: 4.4rem 0 2.2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card,
.side-card,
.panel,
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -35px;
  bottom: -35px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 99, 47, 0.28), rgba(15, 118, 110, 0.4));
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Bitter", Georgia, serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.4rem 0 0.8rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
}

.actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(24, 33, 29, 0.13);
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  color: #ffffff;
}

.btn-secondary {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(15, 118, 110, 0.08);
}

.btn-tertiary {
  border-color: var(--accent);
  color: #7b3a18;
  background: rgba(196, 99, 47, 0.13);
}

.side-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

main {
  padding-bottom: 3rem;
}

.section {
  margin-top: 1.2rem;
}

.panel {
  padding: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  padding: 1rem 1.1rem;
}

.tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8faf6 0%, #e8efe7 100%);
}

.visual-panel {
  padding: 0;
  overflow: hidden;
}

.page-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.visual-caption {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  color: var(--muted);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f0 100%);
  font-weight: 500;
}

ul.clean {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

ul.clean li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  color: var(--brand-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fcfdfa;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--brand);
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #b42318;
}

.field-error {
  min-height: 1.05rem;
  color: #b42318;
  font-size: 0.85rem;
}

.form-note {
  margin: 0;
  min-height: 1.2rem;
  font-weight: 600;
}

.form-note.success {
  color: var(--brand-deep);
}

.form-note.error {
  color: #b42318;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-title {
  padding: 3.2rem 0 1.2rem;
}

.page-title p {
  max-width: 70ch;
  color: var(--muted);
}

.footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  padding: 1rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(15px);
  animation: riseIn 0.65s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

.reveal.delay-3 {
  animation-delay: 0.3s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .grid,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 0.65rem;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-row {
    flex-wrap: wrap;
  }
}
