/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #FAFAF8;
  --fg: #111;
  --fg-muted: #555;
  --accent: #C17A5A;
  --accent-ink: #8A4B30; /* accent darkened for text on --bg (AA contrast) */
  --border: #E5E5E0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: clamp(4rem, 10vw, 8rem);

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.15rem, 1.6vw, 1.3rem);
  --t-h3: clamp(1.25rem, 2vw, 1.5rem);
  --t-h2: clamp(1.9rem, 4.2vw, 3rem);
  --t-h1: clamp(2.6rem, 7.5vw, 5.5rem);

  --max: 72rem;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --nav-h: 3.75rem;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--t-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: var(--s-2); top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem;
}
.skip:focus { top: var(--s-2); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-6); scroll-margin-top: var(--nav-h); }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow {
  font-size: var(--t-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
.section__head { max-width: 40rem; margin-bottom: var(--s-5); }
.section__head p { color: var(--fg-muted); margin-top: var(--s-2); font-size: var(--t-lg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.4rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--fg); }
.btn--primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
}
.link:hover { color: var(--fg); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max); height: 100%;
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: var(--s-3); }
.nav__links a { font-size: var(--t-sm); text-decoration: none; color: var(--fg-muted); padding: .5rem 0; }
.nav__links a:hover { color: var(--fg); text-decoration: underline; }
.nav__toggle {
  display: none;
  font: 600 var(--t-sm)/1 var(--font-body);
  background: none; border: 1px solid var(--border); color: var(--fg);
  padding: .6rem .9rem; cursor: pointer;
}

@media (max-width: 639px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--s-1) var(--gutter) var(--s-2);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
  .nav__links a:first-child { border-top: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-h) + var(--s-5)) var(--s-6);
  position: relative;
}
.hero h1 { max-width: 14ch; }
.hero__sub { max-width: 36rem; margin-top: var(--s-3); font-size: var(--t-lg); color: var(--fg-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero__meta { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: var(--s-3);
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--t-sm); color: var(--fg-muted); text-decoration: none;
}
.hero__scroll span { width: 1px; height: 2.5rem; background: var(--fg-muted); display: block; transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll span { animation: drip 2.2s ease-in-out infinite; }
  @keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}
@media (max-width: 639px) { .hero__scroll { display: none; } }

/* ==========================================================================
   Directions
   ========================================================================== */
.directions { display: grid; gap: var(--s-4) var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .directions { grid-template-columns: 1fr 1fr; } }

.direction h3 { margin-top: var(--s-3); }
.direction__best { color: var(--fg-muted); margin-top: .35rem; }
.direction__best strong { color: var(--fg); font-weight: 600; }
.direction .link { display: inline-block; margin-top: var(--s-2); }
.tag {
  display: inline-block; margin-top: var(--s-2);
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-muted); border: 1px solid var(--border); padding: .2rem .5rem;
}

/* Local palettes: scoped per direction, used only by the mockups */
.direction--editorial { --m-bg: #F7F4EE; --m-ink: #2B2B2B; --m-grey: #C9C5BC; --m-accent: #B5654A; --m-chrome: #ECE8E0; }
.direction--organic   { --m-bg: #F6EEDD; --m-ink: #4A3B30; --m-grey: #DCCFB8; --m-accent: #C17A5A; --m-sage: #A5B38C; --m-chrome: #EADFC8; }
.direction--modern    { --m-bg: #0D0D0D; --m-ink: #FFFFFF; --m-grey: #3A3A3A; --m-accent: #D6FF3D; --m-chrome: #1B1B1B; }
.direction--refined   { --m-bg: #FFFFFF; --m-ink: #1B2A4A; --m-grey: #D5D9E2; --m-accent: #B8975A; --m-chrome: #EEF0F5; }

/* ==========================================================================
   CSS-drawn browser mockups (sizes in cqw so they scale with the card)
   ========================================================================== */
.mock {
  container-type: inline-size;
  border: 1px solid var(--border);
  background: var(--m-bg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.mock__bar {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 2cqw 2.5cqw;
  background: var(--m-chrome);
  border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent);
}
.mock__bar i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--m-grey); }
.mock__bar b {
  margin-left: 2cqw; height: 2.6cqw; width: 38cqw; border-radius: 99px;
  background: color-mix(in srgb, var(--m-ink) 10%, transparent);
}
.mock__body { aspect-ratio: 16 / 10; padding: 5cqw; display: flex; flex-direction: column; gap: 2.4cqw; position: relative; }
.mock--lg .mock__body { aspect-ratio: auto; padding: 0; gap: 0; }

/* Shared abstract blocks */
.m-bar  { height: 1.4cqw; background: var(--m-grey); width: 60%; }
.m-bar.w-90 { width: 90%; } .m-bar.w-75 { width: 75%; } .m-bar.w-50 { width: 50%; } .m-bar.w-35 { width: 35%; }
.m-head { height: 4.2cqw; background: var(--m-ink); width: 70%; }
.m-head.w-45 { width: 45%; } .m-head.w-85 { width: 85%; }
.m-btn  { height: 3.6cqw; width: 14cqw; background: var(--m-accent); }
.m-nav  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3cqw; }
.m-nav .m-bar { height: 1.2cqw; width: 12cqw; background: var(--m-ink); }
.m-nav span { display: flex; gap: 1.6cqw; }
.m-nav span i { display: block; width: 6cqw; height: 1cqw; background: var(--m-grey); }

/* a) Editorial Minimal: thin serif feel, hairlines, lots of air */
.direction--editorial .m-head { height: 1.6cqw; background: var(--m-ink); }
.direction--editorial .m-bar { height: .7cqw; }
.direction--editorial .m-rule { height: 1px; background: var(--m-ink); width: 8cqw; margin-top: 3cqw; }
.direction--editorial .m-btn { margin-top: 2cqw; height: 3cqw; width: 12cqw; }

/* b) Warm Organic: rounded, soft shadow, sage + terracotta */
.direction--organic .mock__body { gap: 2cqw; }
.direction--organic .m-head { height: 3.6cqw; border-radius: 12px; }
.direction--organic .m-bar { height: 1.2cqw; border-radius: 99px; }
.direction--organic .m-btn { border-radius: 99px; }
.m-organic-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: stretch; flex: 1; }
.m-organic-copy { display: flex; flex-direction: column; gap: 2cqw; justify-content: center; }
.m-organic-art { position: relative; }
.m-organic-art .sage { position: absolute; inset: 0 0 18% 12%; background: var(--m-sage); border-radius: 12px; box-shadow: 0 1.2cqw 3cqw rgba(74,59,48,.18); }
.m-organic-art .bar  { position: absolute; left: 0; bottom: 0; width: 55%; height: 20%; background: var(--m-accent); border-radius: 12px; box-shadow: 0 1.2cqw 3cqw rgba(74,59,48,.18); }

/* c) Bold Modern: near-black, oversized type, tight grid */
.direction--modern .mock__body { gap: 1.6cqw; }
.direction--modern .m-head { height: 7cqw; width: 92%; }
.direction--modern .m-head.w-45 { width: 58%; background: var(--m-accent); }
.direction--modern .m-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--m-grey); border: 1px solid var(--m-grey); margin-top: auto; }
.direction--modern .m-grid3 div { background: var(--m-bg); height: 9cqw; padding: 1.6cqw; }
.direction--modern .m-grid3 div::after { content: ""; display: block; height: 1cqw; width: 60%; background: var(--m-grey); }
.direction--modern .m-nav .m-bar { background: var(--m-ink); }

/* d) Classic Refined: structured header, hairline grid, gold */
.direction--refined .mock__body { padding: 0; gap: 0; }
.m-refined-header { background: var(--m-ink); padding: 2.4cqw 5cqw; display: flex; justify-content: space-between; align-items: center; border-bottom: .7cqw solid var(--m-accent); }
.m-refined-header .m-bar { background: #fff; height: 1.2cqw; width: 14cqw; }
.m-refined-header span { display: flex; gap: 1.6cqw; }
.m-refined-header span i { display: block; width: 6cqw; height: 1cqw; background: rgba(255,255,255,.4); }
.m-refined-hero { padding: 5cqw; display: flex; flex-direction: column; gap: 2cqw; }
.direction--refined .m-head { height: 3cqw; width: 60%; }
.direction--refined .m-head.w-45 { width: 40%; }
.direction--refined .m-bar { height: .9cqw; }
.direction--refined .m-btn { background: transparent; border: 1px solid var(--m-accent); height: 3.2cqw; width: 16cqw; }
.m-refined-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--m-grey); margin-top: auto; }
.m-refined-grid div { height: 8cqw; border-right: 1px solid var(--m-grey); padding: 1.8cqw; }
.m-refined-grid div:last-child { border-right: 0; }
.m-refined-grid div::before { content: ""; display: block; width: 3cqw; height: .6cqw; background: var(--m-accent); margin-bottom: 1.2cqw; }
.m-refined-grid div::after  { content: ""; display: block; width: 70%; height: .9cqw; background: var(--m-grey); }

/* ==========================================================================
   What you get
   ========================================================================== */
.deliver { display: grid; gap: 0 var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .deliver { grid-template-columns: 1fr 1fr; } }
.deliver li { padding: var(--s-3) 0; border-top: 1px solid var(--border); }
.deliver strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.2; }
.deliver span { display: block; margin-top: .35rem; color: var(--fg-muted); }

/* ==========================================================================
   Process
   ========================================================================== */
.steps { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 2px solid var(--fg); padding-top: var(--s-2); }
.step__n { font-family: var(--font-display); color: var(--accent-ink); font-size: var(--t-sm); letter-spacing: .08em; }
.step h3 { margin: .5rem 0; }
.step p { color: var(--fg-muted); }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 48rem) { .about { grid-template-columns: 1.4fr 1fr; } }
.about__text p { font-size: var(--t-lg); max-width: 38rem; }
.about__text p + p { margin-top: var(--s-2); color: var(--fg-muted); }
.about__tools { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--fg-muted); }
.photo {
  aspect-ratio: 4 / 5; background: #E9E9E5; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--fg-muted); font-size: var(--t-sm); letter-spacing: .06em;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact__intro p { color: var(--fg-muted); margin-top: var(--s-2); font-size: var(--t-lg); max-width: 28rem; }
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: #fff; border: 1px solid #BDBDB6; border-radius: 0;
  padding: .85rem 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; font-size: var(--t-sm); }
.form-status.is-success { color: #2F6B3A; }
.form-status.is-error { color: #A12A2A; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-4); font-size: var(--t-sm); color: var(--fg-muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); justify-content: space-between; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.footer a:hover { color: var(--fg); }

/* ==========================================================================
   Direction detail page
   ========================================================================== */
.page-top { padding-top: calc(var(--nav-h) + var(--s-4)); }
.back { display: inline-block; font-size: var(--t-sm); color: var(--fg-muted); margin-bottom: var(--s-3); }
.page-top h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.good-for { margin-top: var(--s-4); max-width: 40rem; }
.good-for h2 { font-size: var(--t-h3); margin-bottom: var(--s-1); }
.good-for p { color: var(--fg-muted); }
.big-mock { margin-top: var(--s-4); }
.note { margin-top: var(--s-4); padding: var(--s-3); border: 1px solid var(--border); border-left: 3px solid var(--accent); max-width: 44rem; }
.note strong { display: block; margin-bottom: .25rem; }
.note p { color: var(--fg-muted); }
.cta-block { margin-top: var(--s-4); padding-bottom: var(--s-6); }

/* Large organic mock: hero + content section + footer */
.mock--lg.direction--organic .m-hero { padding: 6cqw 5cqw; display: grid; grid-template-columns: 1.1fr 1fr; gap: 5cqw; min-height: 34cqw; }
.mock--lg .m-hero .m-organic-copy { gap: 2.2cqw; }
.mock--lg.direction--organic .m-head { height: 4.4cqw; }
.mock--lg.direction--organic .m-bar { height: 1.3cqw; }
.mock--lg.direction--organic .m-btn { height: 4cqw; width: 16cqw; }
.mock--lg .m-sec { padding: 5cqw; background: color-mix(in srgb, var(--m-sage) 22%, var(--m-bg)); }
.mock--lg .m-sec .m-head { height: 3cqw; width: 30%; margin-bottom: 3cqw; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.m-card { background: var(--m-bg); border-radius: 12px; padding: 2.4cqw; box-shadow: 0 1.2cqw 3cqw rgba(74,59,48,.12); display: grid; gap: 1.4cqw; align-content: start; }
.m-card .thumb { height: 11cqw; border-radius: 8px; background: var(--m-sage); }
.m-card:nth-child(2) .thumb { background: var(--m-accent); }
.m-card:nth-child(3) .thumb { background: var(--m-grey); }
.mock--lg .m-foot { padding: 4cqw 5cqw; display: flex; justify-content: space-between; background: var(--m-ink); }
.mock--lg .m-foot .m-bar { background: rgba(255,255,255,.45); height: 1cqw; width: 14cqw; }
.mock--lg .m-foot .m-bar.w-50 { width: 22cqw; }
.mock--lg .m-hero-nav { padding: 3cqw 5cqw 0; }
.mock--lg .m-hero-nav .m-nav { margin: 0; }

/* ==========================================================================
   Reveal (hidden state only exists when JS runs and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal], .js [data-reveal-child] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-reveal].is-visible, .js [data-reveal].is-visible [data-reveal-child], .js [data-reveal-child].is-visible { opacity: 1; transform: none; }
  .js [data-reveal-child] { transition-delay: calc(var(--i, 0) * 100ms); }
  .js [data-reveal]:has([data-reveal-child]) { opacity: 1; transform: none; }
}
