﻿/* =========================================================================
   neupokoeva.space — landing styles
   Design tokens, layout primitives, sections, components, responsive rules.
   Mood: calm, warm, editorial, premium. Light blue base + warm neutral accent.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg-base: #f3f7fc;
  --bg-soft: #eaf1fa;
  --bg-warm: #fbf6ee;
  --bg-paper: #ffffff;

  /* Text */
  --text-strong: #1d2632;
  --text-body: #2a3242;
  --text-muted: #5a6678;
  --text-subtle: #7a8696;

  /* Lines */
  --line: #d3def0;
  --line-soft: #e2eaf5;

  /* Blue accents */
  --accent: #5a7aa3;
  --accent-deep: #3f5e87;
  --accent-press: #324d72;
  --accent-soft: #a8bed7;
  --accent-hint: #d6e2f2;

  /* Warm accent (used sparingly) */
  --warm: #c98c6a;
  --warm-soft: #ecd8c8;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 4rem);
  --section-pad: clamp(3rem, 7vw, 7.5rem);
  --section-pad-tight: clamp(2.5rem, 5vw, 5rem);

  /* Radii */
  --radius-2xl: 28px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;

  /* Elevations */
  --shadow-soft: 0 24px 60px -28px rgb(35 60 95 / 28%);
  --shadow-card: 0 16px 38px -22px rgb(35 60 95 / 22%);
  --shadow-card-hover: 0 26px 50px -22px rgb(35 60 95 / 30%);
  --shadow-cta: 0 18px 36px -14px rgb(63 94 135 / 38%);
  --shadow-cta-hover: 0 22px 42px -14px rgb(50 77 114 / 48%);

  /* Motion */
  --transition: 240ms cubic-bezier(0.4, 0.1, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.4, 0.1, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 88% 4%, rgb(189 209 233 / 40%), transparent 38%),
    radial-gradient(circle at 8% 14%, rgb(232 220 204 / 32%), transparent 42%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg-base) 38%, #f1f6fc 100%);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

p {
  margin: 0;
  color: var(--text-muted);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: 88px;
}

.section--tight {
  padding-block: var(--section-pad-tight);
}

/* ---------- Typography ---------- */
.display-title,
h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.012em;
  line-height: 1.06;
}

.display-title,
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0;
  line-height: 1.18;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentcolor;
  opacity: 0.55;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.section-head .display-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  margin-bottom: 0.7rem;
}

.section-head > p:last-child {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  max-width: 60ch;
  color: var(--text-muted);
}

/* ---------- Utility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(247 251 255 / 82%);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(95 127 166 / 14%);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.96rem;
  color: var(--text-muted);
  transition: color var(--transition), background-color var(--transition),
    transform var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-strong);
  background: rgb(255 255 255 / 70%);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(95 127 166 / 24%);
  border-radius: 12px;
  background: rgb(255 255 255 / 80%);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background-color var(--transition), border-color var(--transition);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.6px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition),
    color var(--transition), filter var(--transition);
  text-align: center;
}

.btn-primary {
  color: #fbfcff;
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(
    120deg,
    var(--accent-press) 0%,
    var(--accent-deep) 100%
  );
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  color: var(--text-strong);
  background: rgb(255 255 255 / 70%);
  border-color: rgb(95 127 166 / 28%);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgb(255 255 255 / 92%);
  border-color: rgb(95 127 166 / 48%);
  transform: translateY(-2px);
}

/* ---------- Reveal animation primitive ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
  /* Safety net: if observer never fires, content still appears */
  animation: reveal-fallback 0s linear 2.4s forwards;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-stagger-1 {
  transition-delay: 60ms;
}
.reveal-stagger-2 {
  transition-delay: 160ms;
}
.reveal-stagger-3 {
  transition-delay: 260ms;
}
.reveal-stagger-4 {
  transition-delay: 360ms;
}

/* =========================================================================
   HERO
   ========================================================================= */
.section-hero {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 7rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  max-width: 600px;
}

.hero-rail {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2px;
  height: clamp(180px, 30vw, 300px);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--accent-deep) 0%,
    var(--accent-soft) 100%
  );
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentcolor;
  opacity: 0.6;
}

.hero-title {
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin-bottom: 1.15rem;
  color: var(--text-strong);
}

.hero-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--text-strong);
  line-height: 1.32;
  max-width: 28ch;
  margin: 0 0 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Hero media (right column) */
.hero-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  aspect-ratio: 4 / 5;
}

.hero-ornament {
  position: absolute;
  fill: none;
  stroke: rgb(132 162 199 / 40%);
  stroke-width: 1.5;
  pointer-events: none;
  z-index: 0;
}

.hero-ornament-arch {
  width: 38%;
  max-width: 180px;
  left: -6%;
  top: 6%;
}

.hero-ornament-ring {
  width: 28%;
  max-width: 130px;
  right: -3%;
  bottom: 4%;
}

.decor {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  animation: drift 11s ease-in-out infinite alternate;
}

.decor-hero-1 {
  width: 220px;
  height: 220px;
  top: -38px;
  right: -32px;
  background: rgb(196 178 218 / 22%);
}

.decor-hero-2 {
  width: 240px;
  height: 240px;
  left: -52px;
  bottom: -60px;
  background: rgb(154 182 216 / 24%);
  animation-duration: 13s;
}

.decor-hero-3 {
  display: none; /* trimmed for cleaner composition */
}

.portrait-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  background: linear-gradient(
    140deg,
    #f6faff 0%,
    #e6eef9 50%,
    #d6e4f5 100%
  );
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(95 127 166 / 20%);
}

.portrait-card-hero {
  border-radius: 36% 30% 32% 26% / 30% 36% 28% 32%;
}

.portrait-card-hero::before {
  content: "";
  position: absolute;
  inset: 6% 8% auto auto;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgb(132 162 199 / 16%);
  z-index: 0;
}

.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
}

@keyframes drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-10px) scale(1.03);
  }
}

/* =========================================================================
   SECTION: REQUESTS
   ========================================================================= */
.section-requests {
  background: linear-gradient(
    180deg,
    rgb(234 241 250 / 92%) 0%,
    rgb(225 236 248 / 78%) 100%
  );
}

.requests-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.requests-shell .section-head {
  margin-bottom: 0;
}

.requests-illustration {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 360 / 220;
  margin-left: auto;
  height: auto;
  fill: none;
  stroke: rgb(132 162 199 / 60%);
  stroke-width: 1.4;
  color: rgb(132 162 199 / 75%);
}

.editorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgb(95 127 166 / 22%);
}

.editorial-row {
  display: grid;
  grid-template-columns: auto 2.5rem 1fr;
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: start;
  padding: 1.6rem 0 1.45rem;
  border-bottom: 1px solid rgb(95 127 166 / 18%);
  transition: background-color var(--transition);
}

.editorial-row-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1;
  color: var(--accent-deep);
  grid-row: span 2;
  align-self: start;
  padding-top: 0.15rem;
  min-width: 2.2rem;
  transition: color var(--transition), transform var(--transition);
}

.editorial-row:hover .editorial-row-number {
  color: var(--text-strong);
  transform: translateX(-2px);
}

.editorial-row-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgb(95 127 166 / 24%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: rgb(255 255 255 / 72%);
  grid-row: span 2;
  align-self: start;
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition),
    border-color var(--transition);
}

.editorial-row:hover .editorial-row-icon {
  transform: translateY(-2px);
  background: rgb(245 248 253 / 95%);
  border-color: rgb(95 127 166 / 38%);
}

.editorial-row-content {
  display: grid;
  gap: 0.4rem;
}

.editorial-row-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.18;
}

.editorial-row-content p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.line-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================================
   SECTION: ABOUT
   ========================================================================= */
.section-about {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 92%) 0%,
    rgb(245 250 255 / 70%) 100%
  );
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: start;
}

.about-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(
    140deg,
    #f6faff 0%,
    #e6eef9 60%,
    #d6e4f5 100%
  );
  border: 1px solid rgb(95 127 166 / 18%);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  max-width: 480px;
}

.about-figure::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgb(232 220 204 / 36%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.about-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
}

.about-content {
  display: grid;
  gap: 1rem;
  align-content: start;
  max-width: 580px;
}

.about-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.3rem;
}

.about-lead {
  color: var(--text-strong);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.about-content > p {
  max-width: 56ch;
}

.about-cta {
  justify-self: start;
  margin-top: 0.6rem;
}

.values-list {
  margin: 0.4rem 0 0;
  padding: 0;
  border-top: 1px solid rgb(95 127 166 / 22%);
}

.values-list li {
  position: relative;
  padding: 0.95rem 0 0.9rem 1.7rem;
  border-bottom: 1px solid rgb(95 127 166 / 16%);
  color: var(--text-strong);
  font-size: 1rem;
}

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 14px;
  height: 1px;
  background: var(--accent-deep);
}

/* =========================================================================
   SECTION: PROCESS
   ========================================================================= */
.section-process {
  background: linear-gradient(
    180deg,
    rgb(228 238 250 / 88%) 0%,
    rgb(241 248 255 / 70%) 100%
  );
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.85rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgb(132 162 199 / 65%) 0,
    rgb(132 162 199 / 65%) 5px,
    transparent 5px,
    transparent 12px
  );
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  padding-right: 0.5rem;
}

.timeline-node {
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(95 127 166 / 28%);
  box-shadow: 0 8px 18px -10px rgb(95 127 166 / 35%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.timeline-node .line-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.timeline-step:hover .timeline-node {
  transform: translateY(-3px);
  border-color: rgb(95 127 166 / 50%);
  box-shadow: 0 14px 26px -10px rgb(95 127 166 / 40%);
}

.timeline-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 0.95;
  color: rgb(95 127 166 / 65%);
  margin-top: 0.2rem;
}

.timeline-title {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  margin: 0;
  color: var(--text-strong);
}

.timeline-step p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* =========================================================================
   SECTION: FORMATS (services)
   ========================================================================= */
.section-formats {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 90%) 0%,
    rgb(238 246 254 / 70%) 100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.7rem 1.4rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgb(95 127 166 / 16%);
  background: var(--bg-paper);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  height: 100%;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgb(132 162 199 / 42%);
  box-shadow: var(--shadow-card-hover);
}

.service-card--featured {
  background: linear-gradient(180deg, #f4f8fe 0%, #e9f1fa 100%);
  border-color: rgb(132 162 199 / 38%);
  box-shadow: 0 22px 48px -22px rgb(95 127 166 / 38%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
}

.icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(95 127 166 / 22%);
  background: rgb(241 247 254 / 80%);
  color: var(--accent-deep);
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition),
    border-color var(--transition);
}

.service-card:hover .icon-badge {
  transform: translateY(-1px) scale(1.04);
  background: rgb(228 238 250 / 90%);
  border-color: rgb(95 127 166 / 36%);
}

.service-badge {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgb(255 255 255 / 86%);
  border: 1px solid rgb(95 127 166 / 30%);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.service-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin: 0;
  color: var(--text-strong);
  line-height: 1.18;
}

.service-card p {
  font-size: 0.97rem;
  line-height: 1.55;
}

.service-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgb(95 127 166 / 24%);
  padding: 0.36rem 0.78rem;
  background: rgb(241 247 254 / 90%);
  color: var(--text-strong);
  font-size: 0.86rem;
  white-space: nowrap;
}

.chip-strong {
  background: rgb(95 127 166 / 12%);
  border-color: rgb(95 127 166 / 36%);
  color: var(--accent-deep);
  font-weight: 600;
}

.service-cta {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.78rem 1.4rem;
  font-size: 0.94rem;
}

/* =========================================================================
   SECTION: EDUCATION
   ========================================================================= */
.section-education {
  background: linear-gradient(
    180deg,
    rgb(231 241 252 / 86%) 0%,
    rgb(248 252 255 / 74%) 100%
  );
}

.credential-list {
  position: relative;
  border-top: 1px solid rgb(95 127 166 / 22%);
}

/* Vertical dotted timeline line, anchored to icon column */
.credential-list::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  left: calc(140px + 1.4rem);
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgb(132 162 199 / 60%) 0,
    rgb(132 162 199 / 60%) 5px,
    transparent 5px,
    transparent 12px
  );
  z-index: 0;
  transform: translateX(-50%);
}

.credential-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 2.8rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid rgb(95 127 166 / 16%);
}

.credential-year {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--accent-deep);
  font-weight: 600;
}

.credential-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(95 127 166 / 28%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  margin-top: 0.1rem;
  position: relative;
  z-index: 1;
  justify-self: center;
}

.credential-content {
  display: grid;
  gap: 0.45rem;
}

.credential-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin: 0;
}

.credential-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  margin: 0;
  color: var(--text-strong);
  line-height: 1.18;
}

.credential-meta {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================================
   SECTION: FAQ
   ========================================================================= */
.section-faq {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 92%) 0%,
    rgb(238 247 255 / 70%) 100%
  );
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid rgb(95 127 166 / 22%);
}

.faq-item {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgb(95 127 166 / 16%);
  transition: background-color var(--transition);
}

.faq-item h3 {
  margin: 0;
  font-family: inherit;
  letter-spacing: 0;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(241 248 255 / 60%) 50%,
    transparent 100%
  );
}

.faq-trigger {
  width: 100%;
  margin: 0;
  padding: 1.3rem 0.4rem 1.25rem;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: padding-left var(--transition);
}

.faq-trigger:hover {
  padding-left: 0.7rem;
}

.faq-question {
  color: var(--text-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.3;
}

.faq-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgb(132 162 199 / 14%);
  color: var(--accent-deep);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition),
    color var(--transition);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-deep);
  color: #fff;
}

.faq-panel {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 320ms ease, opacity 220ms ease, margin-top 240ms ease;
  padding: 0 0.4rem;
}

.faq-panel p {
  margin: 0 0 1rem;
  font-size: 0.99rem;
  line-height: 1.62;
  max-width: 70ch;
  color: var(--text-muted);
}

/* =========================================================================
   SECTION: CONTACT (final CTA + form)
   ========================================================================= */
.section-contact {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgb(181 203 230 / 28%), transparent 35%),
    radial-gradient(circle at 92% 90%, rgb(232 220 204 / 28%), transparent 38%),
    linear-gradient(
      180deg,
      rgb(226 238 252 / 92%) 0%,
      rgb(236 246 255 / 76%) 100%
    );
  overflow: clip;
}

.contact-arch {
  position: absolute;
  top: 6%;
  right: -6%;
  width: clamp(280px, 42vw, 540px);
  height: auto;
  fill: none;
  stroke: rgb(132 162 199 / 26%);
  stroke-width: 1.4;
  z-index: 0;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 1rem;
  align-content: start;
  max-width: 460px;
}

.contact-intro .display-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  margin-bottom: 0.4rem;
}

.contact-intro p {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

.contact-intro .btn-secondary {
  justify-self: start;
  margin-top: 0.5rem;
}

.contact-form {
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(95 127 166 / 16%);
  border-radius: var(--radius-2xl);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.94rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  height: 48px;
  border: 1px solid rgb(95 127 166 / 24%);
  border-radius: var(--radius-md);
  padding: 0 0.95rem;
  background: #ffffff;
  color: var(--text-strong);
  font: inherit;
  font-weight: 400;
  font-size: 0.98rem;
  transition: border-color var(--transition), box-shadow var(--transition),
    background-color var(--transition);
}

.contact-form textarea {
  height: auto;
  min-height: 110px;
  padding: 0.8rem 0.95rem;
  resize: vertical;
  line-height: 1.55;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgb(110 122 142 / 70%);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%233F5E87' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) 50%;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}

.contact-form select:invalid {
  color: rgb(110 122 142 / 90%);
}

.contact-form option {
  color: var(--text-strong);
}

.consent-row {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.consent-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-deep);
}

.contact-form .btn-primary {
  margin-top: 0.4rem;
  height: 50px;
  padding-block: 0;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status.success {
  color: var(--accent-deep);
}

.form-status.error {
  color: #a14a37;
}

.messenger-note {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.messenger-note a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.messenger-note a:hover {
  color: var(--accent-press);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: rgb(231 241 252 / 92%);
  border-top: 1px solid rgb(95 127 166 / 18%);
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2.4rem;
  align-items: center;
}

.footer-brand {
  display: grid;
  gap: 0.4rem;
}

.footer-name {
  color: var(--text-strong);
  font-weight: 500;
  font-size: 0.98rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.94rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* =========================================================================
   FOCUS / ACCESSIBILITY
   ========================================================================= */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgb(95 127 166 / 14%);
}

.faq-trigger:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgb(95 127 166 / 14%);
}

.main-nav a:focus-visible,
.footer-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Laptop / tablet landscape */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet */
@media (max-width: 960px) {
  :root {
    --section-pad: clamp(3rem, 8vw, 5.5rem);
  }

  .hero-grid,
  .about-shell,
  .contact-grid,
  .requests-shell {
    grid-template-columns: 1fr;
    gap: clamp(1.8rem, 4vw, 2.6rem);
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-media {
    max-width: 420px;
    justify-self: start;
    margin-inline: auto;
  }

  .requests-illustration {
    margin-left: 0;
    max-width: 240px;
  }

  .editorial-list {
    grid-template-columns: 1fr;
  }

  .about-figure {
    max-width: 460px;
    margin-inline: auto;
  }

  .about-content {
    max-width: 100%;
  }

  .contact-arch {
    top: 1%;
    right: -8%;
    width: clamp(280px, 60vw, 420px);
    opacity: 0.6;
  }

  .contact-intro {
    max-width: 100%;
  }
}

/* Mobile menu / smaller tablets */
@media (max-width: 760px) {
  .header-inner {
    min-height: 60px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    background: rgb(247 251 255 / 96%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(95 127 166 / 18%);
    box-shadow: 0 18px 32px -18px rgb(76 107 148 / 28%);
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
    transform: translateY(-110%);
    transition: transform 280ms ease;
    z-index: 99;
    align-items: stretch;
  }

  .main-nav[data-open="true"] {
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-strong);
    font-size: 1rem;
    justify-content: flex-start;
  }

  .section-hero {
    padding-top: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }

  .hero-quote {
    font-size: clamp(1.1rem, 4.6vw, 1.35rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media {
    max-width: 360px;
  }

  /* Trim hero ornaments on mobile */
  .hero-ornament-arch {
    width: 30%;
    left: -8%;
  }

  .hero-ornament-ring {
    width: 22%;
  }

  .decor-hero-1,
  .decor-hero-2 {
    opacity: 0.7;
  }

  /* Process timeline becomes vertical */
  .timeline {
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 4vw, 1.8rem);
    padding-left: 0;
  }

  .timeline::before {
    top: 1.85rem;
    bottom: 1rem;
    left: 1.85rem;
    right: auto;
    height: auto;
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      rgb(132 162 199 / 65%) 0,
      rgb(132 162 199 / 65%) 5px,
      transparent 5px,
      transparent 12px
    );
  }

  .timeline-step {
    padding-left: 5rem;
    padding-right: 0;
    position: relative;
    min-height: 3.7rem;
  }

  .timeline-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.7rem;
    height: 3.7rem;
  }

  /* Education timeline mobile: compact stacked layout */
  .credential-list::before {
    display: none;
  }

  .credential-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.4rem 0;
  }

  .credential-icon {
    margin-top: 0.4rem;
    justify-self: start;
    order: 2;
  }

  .credential-year {
    order: 1;
  }

  .credential-content {
    order: 3;
  }

  /* Form: single column on mobile */
  .contact-form {
    padding: 1.2rem;
  }

  /* Footer single column */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Phone */
@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
    --section-pad: clamp(2.6rem, 9vw, 4rem);
  }

  body {
    font-size: 16px;
  }

  .hero-content {
    padding-left: 0.85rem;
  }

  .hero-rail {
    height: 180px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 2.85rem);
  }

  .hero-quote {
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .editorial-row {
    grid-template-columns: 2.2rem 2.2rem 1fr;
    column-gap: 0.85rem;
    padding: 1.3rem 0 1.2rem;
  }

  .editorial-row-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .editorial-row-icon .line-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .editorial-row-number {
    font-size: 1.4rem;
    min-width: 0;
  }

  .requests-illustration {
    display: none;
  }

  .timeline-step {
    padding-left: 4.4rem;
  }

  .timeline-node {
    width: 3.2rem;
    height: 3.2rem;
  }

  .timeline-number {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 1.4rem 1.2rem 1.3rem;
  }

  .service-card--featured {
    padding: 1.7rem 1.2rem 1.5rem;
  }

  .service-cta {
    width: 100%;
    align-self: stretch;
  }

  .credential-year {
    font-size: 1.7rem;
  }

  .credential-title {
    font-size: 1.25rem;
  }

  .contact-arch {
    display: none;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-form input,
  .contact-form select {
    height: 46px;
  }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
