/* ==========================================================================
   SixThirtyFour · styles.css
   Light, editorial palette. Tokens first, then components top to bottom.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f8f6f2;
  --bg-2:        #f1ede6;
  --surface:     #ffffff;
  --line:        #e5e0d7;
  --line-strong: #d3cdc2;
  --ink:         #16161a;
  --ink-2:       #3a3835;
  --muted:       #6f6a63;
  --accent:      #2e5a4c;
  --accent-2:    #244a3e;
  --accent-soft: #e4ede8;
  --accent-ink:  #f8f6f2;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 72px;
  --pad: clamp(72px, 9vw, 128px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(22,22,26,.04), 0 12px 32px -12px rgba(22,22,26,.14);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Layout ------------------------------------------------------------------ */
.container { width: min(100%, 1160px); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.container--narrow { width: min(100%, 820px); }
section { padding-block: var(--pad); }
section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 56ch; margin-top: 1rem; }
.section-head.center .lede { margin-inline: auto; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-head); font-size: .92rem; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(46,90,76,.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* Nav --------------------------------------------------------------------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(248,246,242,.72);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
#nav.scrolled { background: rgba(248,246,242,.92); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.logo-mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent-ink); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--r-sm); }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 16px clamp(20px,5vw,48px) 24px; display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { padding: 12px 8px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* Hero -------------------------------------------------------------------- */
#hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
#hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(46,90,76,.10), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(211,205,194,.35), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: .78rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 4px rgba(47,163,107,.15); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 52ch; margin: 1.4rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.hero-visual { position: relative; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--bg-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-card {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; box-shadow: var(--shadow); max-width: 260px;
}
.hero-card strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.hero-card span { font-size: .8rem; color: var(--muted); }
.hero-chip {
  position: absolute; right: -10px; top: 24px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

/* Clients strip ----------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 22px; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--muted); }
.strip-inner .lbl { color: var(--ink); }
.strip-inner span:not(.lbl)::before { content: "·"; margin-right: 28px; color: var(--line-strong); }
.strip-inner span:nth-child(2)::before { content: none; }

/* Services ---------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: var(--line-strong); letter-spacing: .1em; }
.card p { color: var(--muted); font-size: .95rem; margin: 10px 0 18px; }
.card-list li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--ink-2); padding-block: 5px; border-top: 1px solid var(--line); }
.card-list li:last-child { border-bottom: 1px solid var(--line); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .7; }
.card-foot { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.card-foot strong { color: var(--ink); font-weight: 600; }

/* Work -------------------------------------------------------------------- */
#work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-tile {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface);
  border: 1px dashed var(--line-strong); aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px;
}
.work-tile.wide { aspect-ratio: 16 / 10; }
a.work-tile { transition: border-color .3s var(--ease), transform .3s var(--ease); }
a.work-tile:hover { border-style: solid; border-color: var(--accent); transform: translateY(-3px); }
.work-tile img, .work-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-tile .tile-inner { display: grid; gap: 8px; justify-items: center; }
.work-tile .tile-inner svg { width: 28px; height: 28px; color: var(--line-strong); }
.work-tile .tile-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .98rem; }
.work-tile .tile-cat { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.work-note {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px;
}
.work-note p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.work-note p strong { color: var(--ink); font-weight: 600; }

/* Process ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.step p { font-size: .95rem; color: var(--muted); margin-top: 8px; }

/* About ------------------------------------------------------------------- */
#about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-text p { margin-top: 1rem; color: var(--ink-2); }
.about-text p:first-of-type { margin-top: 1.4rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 2rem; }
.pill { padding: 7px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--ink-2); }

/* Why --------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.why-item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.why-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.why-icon svg { width: 20px; height: 20px; }
.why-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why-item p { font-size: .93rem; color: var(--muted); }

/* FAQ --------------------------------------------------------------------- */
#faq { background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 500; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 18px; color: var(--muted); font-size: .95rem; max-width: 70ch; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 14px; margin: 1.8rem 0; }
.contact-info a, .contact-info div { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .98rem; }
.contact-info a:hover { color: var(--accent); }
.ci { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ci svg { width: 18px; height: 18px; }
.contact-note { font-size: .88rem; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.form-group label { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg);
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,90,76,.14); background: var(--surface); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6a63' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 4px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.form-msg.ok { display: block; background: var(--accent-soft); color: var(--accent-2); }
.form-msg.err { display: block; background: #fbe9e7; color: #8a2f22; }
.form-fine { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Footer ------------------------------------------------------------------ */
footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(40px, 6vw, 64px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
footer .logo { color: #fff; }
.footer-blurb { margin-top: 12px; font-size: .9rem; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: .92rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.5); }

/* Reveal (only when JS is present; content is visible by default) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid, .steps, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .about-grid, .contact-grid, .why-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid, .steps, .work-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .work-tile.wide { grid-column: auto; }
  .nav-cta { display: none; }
  .hero-card { left: 12px; bottom: 12px; }
  .hero-chip { right: 12px; top: 12px; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: auto; flex: 1 1 auto; }
  .strip-inner span:not(.lbl)::before { content: none; }
}

/* Name + category lockup: the brand name never appears alone */
.logo { display: inline-flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.logo-desc {
  font-family: var(--font-body); font-size: .6875rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding-left: 9px; border-left: 1px solid var(--line-strong); line-height: 1;
}
@media (max-width: 700px) { .logo-desc { display: none; } }
