/* =========================================================
   WebStudiom — design tokens
   ========================================================= */
:root {
  /* Brand palette (from the WebStudiom brand mockups) */
  --cream: #F4EFE8;
  --cream-2: #EBE3D7;
  --sand: #DDCCB5;
  --oak: #C2A27C;
  --walnut: #6E4630;
  --walnut-deep: #553524;
  --espresso: #1F1915;
  --espresso-2: #2A221C;

  /* Semantic */
  --bg: var(--cream);
  --ink: #231C17;
  --ink-soft: #64564C;
  --on-dark: #F4EFE8;
  --on-dark-soft: #BFB2A4;
  --line: rgba(110, 70, 48, 0.22);
  --line-dark: rgba(244, 239, 232, 0.16);
  --accent: #E3CDAE;          /* primary pill on dark */
  --accent-hover: #EED9BC;
  --on-accent: #231C17;
  --focus: #C2A27C;
  --error: #A3321F;
  --error-on-dark: #F2A48F;
  --success: #3F6B3A;

  /* Type */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing (8pt) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --radius-sm: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 800ms;

  /* Z-index */
  --z-header: 100;
  --z-skip: 1000;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: var(--z-skip);
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .875rem; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* =========================================================
   Typography
   ========================================================= */
.h2, .hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.h2 em, .hero-title em, .cta-card em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); margin-top: var(--s-3); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .01em;
  color: var(--walnut);
  margin-bottom: var(--s-2);
}
.eyebrow-light { color: var(--accent); }
.eyebrow-muted { color: var(--on-dark-soft); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-mono); font-size: .95rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(244, 239, 232, .7); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(244, 239, 232, .12); border-color: var(--on-dark); }
.btn-outline { border-color: var(--walnut); color: var(--walnut); }
.btn-outline:hover { background: var(--walnut); color: var(--cream); }
.section-cream .btn-primary, .section-sand .btn-primary { background: var(--walnut); color: var(--cream); }
.section-cream .btn-primary:hover, .section-sand .btn-primary:hover { background: var(--walnut-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--on-dark);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, backdrop-filter var(--dur) ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(31, 25, 21, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: 80px; }
.wordmark {
  font-family: var(--font-serif); font-size: 1.65rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--on-dark); line-height: 1;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--font-mono); font-size: .9rem; text-decoration: none;
  color: var(--on-dark); opacity: .82; border-radius: 999px;
  transition: opacity var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.main-nav a:not(.btn):hover { opacity: 1; background: rgba(244, 239, 232, .08); }
.main-nav a[aria-current="true"] { opacity: 1; box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: rgba(244, 239, 232, .1); color: var(--on-dark); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset: 80px 0 auto 0;
    background: rgba(31, 25, 21, .97);
    padding: var(--s-2) var(--gutter) var(--s-4);
    border-top: 1px solid var(--line-dark);
    display: none;
  }
  .site-header.is-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { width: 100%; min-height: 52px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line-dark); padding: 0; }
  .main-nav a[aria-current="true"] { box-shadow: none; color: var(--accent); }
  .nav-cta-mobile { display: inline-flex; width: 100%; margin-top: var(--s-3); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero-wrap { position: relative; color: var(--on-dark); background: var(--espresso); }
.hero-stage { position: relative; isolation: isolate; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%;
  animation: heroZoom 18s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(31, 25, 21, .25), transparent 70%),
    linear-gradient(180deg, rgba(31, 25, 21, .72) 0%, rgba(31, 25, 21, .6) 30%, rgba(31, 25, 21, .64) 60%, rgba(31, 25, 21, .82) 85%, var(--espresso) 100%);
}
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 120px; padding-bottom: var(--s-7);
}
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); max-width: 15ch; }
.hero-lead { max-width: 960px; margin: var(--s-3) auto var(--s-5); font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(244, 239, 232, .9); text-wrap: pretty; }

.hero-brand { padding-top: var(--s-5); padding-bottom: var(--s-7); }
.city-more { margin-top: var(--s-3); text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--accent); }
.giant-wordmark {
  font-family: var(--font-serif); font-weight: 400;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 5.5), 208px);
  letter-spacing: -0.045em; line-height: .9;
  text-align: center; white-space: nowrap;
  color: var(--on-dark);
  padding-bottom: .08em;
}
.rule-light { border: 0; height: 1px; background: rgba(244, 239, 232, .4); margin: var(--s-4) 0 var(--s-5); }
.city-strip {
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: var(--s-1);
  margin-top: var(--s-3);
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--on-dark);
}
.city-strip li { display: inline-flex; align-items: center; }
.city-strip li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--oak); margin: 0 var(--s-3); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(80px, 11vw, 140px); }
.pt-0 { padding-top: 0; }
.section-cream { background: var(--cream); }
.section-sand { background: var(--cream-2); }
.section-dark { background: var(--espresso); color: var(--on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-soft); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center .lead { margin-inline: auto; }
.section-head-split { display: grid; gap: var(--s-3); align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.2fr 1fr; gap: var(--s-6); } }

/* ---------- Why grid (cross + star) ---------- */
.why-grid {
  position: relative; display: grid; grid-template-columns: 1fr;
  margin-top: clamp(48px, 7vw, 96px);
}
.why-item { text-align: center; padding: var(--s-5) var(--s-3); max-width: 460px; margin-inline: auto; }
.why-item + .why-item { border-top: 1px solid var(--line); }
.why-num { display: block; font-family: var(--font-mono); font-size: clamp(2rem, 3.4vw, 2.8rem); color: rgba(110, 70, 48, .3); margin-bottom: var(--s-3); line-height: 1; }
.why-item h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--s-1); }
.why-item p { color: var(--ink-soft); }
.why-star { display: none; }

@media (min-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { padding: clamp(56px, 7vw, 96px) var(--s-4); }
  .why-item + .why-item { border-top: 0; }
  .why-grid::before, .why-grid::after { content: ""; position: absolute; pointer-events: none; }
  .why-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--oak) 30%, var(--oak) 70%, transparent); }
  .why-grid::after { top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--oak) 25%, var(--oak) 75%, transparent); }
  .why-star { display: block; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); z-index: 1; color: var(--oak); }
  .why-star svg, .step-rule::after { fill: currentColor; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: #FBF8F3; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(85, 53, 36, .45); border-color: rgba(110, 70, 48, .4); }
.service-card h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; margin: var(--s-3) 0 var(--s-1); }
.service-card p { color: var(--ink-soft); font-size: 1rem; }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.service-card .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--cream-2); color: var(--walnut); }

/* ---------- Feature banner ---------- */
.feature-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); min-height: 520px;
  display: flex; align-items: center;
  color: var(--on-dark); background: var(--espresso-2);
}
.feature-media { position: absolute; inset: 0; z-index: -2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (min-width: 768px) { .feature-media { left: 36%; } }
.feature-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--espresso-2) 0%, var(--espresso-2) 36%, rgba(42, 34, 28, .55) 52%, rgba(42, 34, 28, 0) 72%);
}
.feature-content { max-width: 540px; padding: clamp(32px, 6vw, 88px); text-align: center; }
.feature-content p:not(.eyebrow) { margin: var(--s-3) 0 var(--s-4); color: rgba(244, 239, 232, .88); }
@media (max-width: 767px) {
  .feature-banner { align-items: flex-end; min-height: 560px; }
  .feature-banner::before { background: linear-gradient(180deg, rgba(31, 25, 21, .15) 0%, rgba(31, 25, 21, .8) 45%, rgba(31, 25, 21, .95) 100%); }
  .feature-media img { object-position: 30% 0%; height: 55%; }
}

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: flex; flex-direction: column; gap: var(--s-3); }
.work-shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 24px 48px -32px rgba(85, 53, 36, .55);
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform var(--dur-slow) var(--ease-out); }
.work-card:hover .work-shot img { transform: scale(1.03); }
.work-meta h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; margin: var(--s-1) 0 6px; }
.work-meta h3 a { text-decoration: none; }
.work-meta h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-meta p { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .78rem; color: var(--walnut); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5) var(--s-4) var(--s-4);
}
.price-card h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; }
.price-desc { color: var(--ink-soft); font-size: .98rem; margin-top: 4px; }
.price { margin: var(--s-3) 0; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.price span { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.check-list { display: grid; gap: 12px; margin-bottom: var(--s-5); flex: 1; }
.check-list li { position: relative; padding-left: 30px; font-size: 1rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px;
  background: var(--walnut);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .btn { width: 100%; }
.price-card.featured { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); }
.price-card.featured .price-desc, .price-card.featured .price { color: var(--on-dark-soft); }
.price-card.featured .price { border-color: var(--line-dark); }
.price-card.featured .price span { color: var(--on-dark); }
.price-card.featured .check-list li::before { background: var(--accent); }
.section-sand .price-card.featured .btn-primary { background: var(--accent); color: var(--on-accent); }
.section-sand .price-card.featured .btn-primary:hover { background: var(--accent-hover); }
.badge {
  position: absolute; top: var(--s-3); right: var(--s-3);
  font-family: var(--font-mono); font-size: .75rem; background: var(--accent); color: var(--on-accent);
  padding: 4px 10px; border-radius: 999px;
}
.price-sale del { display: block; font-size: 1rem; color: var(--ink-soft); text-decoration-thickness: 1.5px; margin-bottom: 2px; }
.price-card.featured .price-sale del { color: var(--on-dark-soft); }
.badge-sale { background: var(--walnut); color: var(--cream); }
.sale-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: calc(-1 * var(--s-4)) auto var(--s-5); text-align: center; color: var(--ink); }
.sale-pill { font-family: var(--font-mono); font-size: .8rem; background: var(--walnut); color: var(--cream); padding: 4px 12px; border-radius: 999px; }
.pricing-notes { max-width: 760px; margin: var(--s-5) auto 0; text-align: center; color: var(--ink-soft); display: grid; gap: var(--s-3); }
.pricing-notes strong { color: var(--ink); font-weight: 600; }
.pricing-extra { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.pricing-extra .icon { width: 22px; height: 22px; color: var(--walnut); margin-top: 2px; }

/* ---------- Timeline ---------- */
.process-section { padding-bottom: 0; }
.timeline { position: relative; max-width: 920px; margin-inline: auto; padding: var(--s-4) 0 var(--s-6); }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 11px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--oak) 8%, var(--oak) 92%, transparent);
}
.step { position: relative; padding-left: 48px; padding-bottom: var(--s-5); }
.step h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.step p { color: var(--ink-soft); margin-top: var(--s-2); max-width: 380px; }
.step-rule { position: relative; display: block; height: 1px; margin-top: 14px; background: linear-gradient(90deg, var(--oak), transparent 80%); }
.step-rule::after {
  content: ""; position: absolute; top: 50%; left: -48px; width: 22px; height: 22px; margin-left: 1px;
  transform: translateY(-50%); background: var(--oak);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.6 7 17 11.4 24 12 17 12.6 12.6 17 12 24 11.4 17 7 12.6 0 12 7 11.4 11.4 7 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.6 7 17 11.4 24 12 17 12.6 12.6 17 12 24 11.4 17 7 12.6 0 12 7 11.4 11.4 7 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) {
  .timeline::before { left: 50%; }
  .step { width: 50%; padding: 0 0 0 0; }
  .step + .step { margin-top: -28px; }
  .step:nth-child(odd) { padding-right: 56px; text-align: right; }
  .step:nth-child(odd) p { margin-left: auto; }
  .step:nth-child(odd) .step-rule { background: linear-gradient(270deg, var(--oak), transparent 80%); margin-right: -56px; }
  .step:nth-child(odd) .step-rule::after { left: auto; right: -11px; margin: 0; }
  .step:nth-child(even) { margin-left: 50%; padding-left: 56px; }
  .step:nth-child(even) .step-rule { margin-left: -56px; }
  .step:nth-child(even) .step-rule::after { left: -11px; margin: 0; }
  .step { padding-bottom: 72px; }
}

.image-band {
  position: relative; height: clamp(300px, 36vw, 500px); overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 20%, var(--espresso) 85%);
}
.image-band picture { display: block; width: min(1100px, 100%); height: 100%; margin-inline: auto; }
.image-band img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); } }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--espresso-2); }
.about-photo picture { display: block; }
.about-photo img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); outline: 1px solid rgba(194, 162, 124, .25); outline-offset: -1px; }
.about-photo figcaption { margin-top: var(--s-2); font-family: var(--font-mono); font-size: .85rem; color: var(--on-dark-soft); }
.about-text p:not(.eyebrow) { margin-top: var(--s-3); color: rgba(244, 239, 232, .86); max-width: 58ch; }
.about-text .h2 { margin-bottom: var(--s-1); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--s-5); background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--espresso); padding: var(--s-3); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stats dt { font-family: var(--font-mono); font-size: .8rem; line-height: 1.3; color: var(--on-dark-soft); white-space: nowrap; }
.stats dd { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

.values { padding-top: clamp(96px, 12vw, 160px); }
.values-grid { display: grid; grid-template-columns: 1fr; margin-top: var(--s-6); }
.values-grid li { text-align: center; padding: var(--s-4) var(--s-3); }
.values-grid li + li { border-top: 1px solid var(--line-dark); }
.values-grid h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: var(--s-1); }
.values-grid p { color: var(--on-dark-soft); font-size: 1rem; }
@media (min-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .values-grid li + li { border-top: 0; }
  .values-grid li { position: relative; }
  .values-grid li::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(194, 162, 124, .5), transparent);
  }
  .values-grid li:nth-child(2n)::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(194, 162, 124, .5), transparent);
  }
}
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .values-grid li:nth-child(2n)::after { display: none; }
  .values-grid li:last-child::after {
    display: block; content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(194, 162, 124, .5), transparent);
  }
}

/* ---------- Testimonials ---------- */
.quotes-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  background: var(--espresso-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: var(--s-4);
}
.quote blockquote p { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; color: var(--on-dark); }
.quote figcaption { display: flex; flex-direction: column; font-size: .95rem; }
.quote figcaption span { color: var(--on-dark-soft); font-family: var(--font-mono); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 2fr 3fr; gap: var(--s-7); align-items: start; } .faq-grid > div:first-child { position: sticky; top: 120px; } }
.faq-grid .muted { margin: var(--s-3) 0 var(--s-4); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  min-height: 72px; padding: var(--s-2) 0;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--walnut), var(--walnut)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--walnut), var(--walnut)) center / 1.5px 12px no-repeat;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover::after { background-color: var(--cream-2); }
.faq-list details p { color: var(--ink-soft); padding-bottom: var(--s-3); max-width: 62ch; }

/* ---------- CTA + Contact ---------- */
.cta-card {
  background: var(--walnut); border-radius: var(--radius); text-align: center;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  background-image: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(227, 205, 174, .18), transparent 70%);
}
.cta-card .h2 { max-width: 20ch; margin-inline: auto; }
.cta-card .btn-row { margin-top: var(--s-4); }
.cta-card p { max-width: 520px; margin: var(--s-3) auto 0; color: rgba(244, 239, 232, .88); font-size: 1.1rem; }

.contact-grid { display: grid; gap: var(--s-6); margin-top: clamp(64px, 8vw, 112px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: var(--s-7); } }
.contact-info .h3 { margin-bottom: var(--s-4); }
.contact-list { display: grid; gap: var(--s-3); }
.contact-list li { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--on-dark-soft); }
.contact-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-list a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color var(--dur-fast) ease; }
.contact-list a:hover { border-color: var(--accent); }

.contact-form { display: grid; gap: var(--s-3); }
.field-row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .95rem; font-weight: 500; }
.optional { color: var(--on-dark-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font-size: 1rem; color: var(--on-dark);
  background: var(--espresso-2); border: 1px solid rgba(244, 239, 232, .22); border-radius: 12px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BFB2A4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 205, 174, .25); }
.field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.field-help { font-size: .88rem; color: var(--on-dark-soft); }
.field-error { font-size: .9rem; color: var(--error-on-dark); min-height: 0; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.field-check label { font-weight: 400; color: var(--on-dark-soft); cursor: pointer; }
.field-check label a { color: var(--on-dark); }
.field-check .field-error { grid-column: 2; }
.form-error-summary { padding: var(--s-2) var(--s-3); border: 1px solid var(--error-on-dark); border-radius: 12px; color: var(--on-dark); }
.form-error-summary ul { margin-top: 6px; list-style: disc; padding-left: 20px; }
.form-error-summary a { color: var(--error-on-dark); }
.btn-submit { justify-self: start; min-width: 220px; }
.btn-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-submit[aria-busy="true"] .btn-label::after { content: "…"; }
.form-status { font-size: .98rem; color: var(--accent); }
.form-status.is-error { color: var(--error-on-dark); }
@media (max-width: 639px) { .btn-submit { justify-self: stretch; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark); padding: var(--s-7) 0 var(--s-4); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-1); }
.footer-links a, .back-top, .footer-bottom a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-family: var(--font-mono); font-size: .88rem; color: var(--on-dark-soft); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.footer-links li:first-child a { padding-left: 0; }
.footer-links a:hover, .back-top:hover, .footer-bottom a:hover { color: var(--on-dark); }
.site-footer .rule-light { margin: var(--s-4) 0 var(--s-5); }
.footer-wordmark {
  color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .4 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--cream-2);
  -webkit-background-clip: text; background-clip: text;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-1) var(--s-3); margin-top: var(--s-4); font-family: var(--font-mono); font-size: .85rem; color: var(--on-dark-soft); }
.footer-bottom p { line-height: 1.6; }
.footer-bottom a { vertical-align: middle; }
@media (max-width: 639px) { .footer-bottom { flex-direction: column; align-items: flex-start; } .footer-bottom a:first-child { padding-left: 0; } }

/* =========================================================
   Reveal on scroll (only when JS is running)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 639px) {
  .city-strip { column-gap: 20px; font-size: 1.15rem; }
  .city-strip li + li::before { display: none; }
}

/* Mobile + portrait tablet hero: zoom out so the WebStudiom sign and the laptop are both visible */
@media (max-width: 767px), (max-width: 1100px) and (orientation: portrait) {
  .hero-media img {
    position: absolute; top: 68px; left: -10vw;
    width: 190vw; max-width: none; height: auto;
    object-fit: initial;
  }
  .hero-overlay {
    background: linear-gradient(180deg,
      var(--espresso) 0,
      var(--espresso) 68px,
      rgba(31, 25, 21, .25) calc(68px + 14vw),
      rgba(31, 25, 21, .3) 62vw,
      rgba(31, 25, 21, .72) 88vw,
      var(--espresso) calc(68px + 118vw));
  }
  .hero { justify-content: flex-start; padding-top: calc(68px + 64vw); padding-bottom: var(--s-6); }
}

/* =========================================================
   Legal pages (impresszum, adatkezelés)
   ========================================================= */
.legal-page .site-header { position: sticky; }
.legal-back { margin-left: auto; }
.legal { padding-block: clamp(56px, 8vw, 104px); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: var(--s-2); }
.legal h1 em { font-family: var(--font-serif); font-weight: 400; }
.legal .legal-meta { font-family: var(--font-mono); font-size: .88rem; color: var(--ink-soft); margin-bottom: var(--s-5); }
.legal h2 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.015em; margin: var(--s-6) 0 var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: var(--s-4) 0 var(--s-1); }
.legal p, .legal li { color: var(--ink-soft); max-width: 72ch; }
.legal p + p { margin-top: var(--s-2); }
.legal ul.bullets { list-style: disc; padding-left: 22px; margin: var(--s-2) 0; display: grid; gap: 6px; }
.legal a { color: var(--walnut); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-card { background: #FBF8F3; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-4); margin-top: var(--s-3); }
.legal dl.facts { display: grid; grid-template-columns: 1fr; gap: 0; }
.legal dl.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal dl.facts > div:last-child { border-bottom: 0; }
.legal dl.facts dt { font-family: var(--font-mono); font-size: .82rem; color: var(--walnut); }
.legal dl.facts dd { color: var(--ink); }
@media (min-width: 640px) { .legal dl.facts > div { grid-template-columns: 220px 1fr; gap: var(--s-3); } }
.legal .table-wrap { overflow-x: auto; margin-top: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal th { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--walnut); background: var(--cream-2); }
.legal tr:last-child td { border-bottom: 0; }
/* Placeholder marker — must be filled in before going live */
.ph { background: #F3E1B8; color: #5A3B12; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .88em; }
.legal-note { margin-top: var(--s-6); font-size: .9rem; }
.legal-back { gap: 6px; }
.legal-back-short { display: none; }
@media (max-width: 479px) { .legal-back-long { display: none; } .legal-back-short { display: inline; } .legal-back { padding: 0 16px; } }

/* Logo: the line-W mark stands in for the "W" of WebStudiom */
.wordmark { display: inline-block; white-space: nowrap; }
.logo-mark { display: inline-block; height: 0.86em; width: auto; vertical-align: -0.1em; margin-right: 0.02em; overflow: visible; }
.logo-mark polyline { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark circle { fill: var(--oak); }
@media (max-width: 639px) {
  .footer-links a, .back-top { padding-left: 0; padding-right: 16px; }
}
.legal-page .site-footer { padding-top: var(--s-4); }
.legal-page .footer-bottom { margin-top: 0; }

/* Honeypot spam field — hidden from people, visible to bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal .pending { color: var(--ink-soft); font-style: italic; }
