/* ============================================
   Hilore India — Design Tokens
   A garment tech-pack visual language:
   measurement rulers, spec annotations, crop marks
   ============================================ */

:root {
  /* Brand */
  --ink: #1C1A17;
  --ink-soft: #423E36;
  --paper: #EAE6DC;
  --paper-warm: #F2EFE7;
  --paper-dark: #DEDACD;
  --paper-line: #C9C4B4;
  --blue: #0B4B8F;       /* real Hilore brand blue, sampled from the hang tag */
  --blue-deep: #08386B;
  --blue-tint: #E4ECF5;
  --spec-red: #B4402A;   /* tech-pack correction-pen red */
  --spec-red-tint: #F5E4DF;
  --muted: #6E6A5C;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --ruler-width: 44px;
  --container-max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: var(--paper); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Display headings share one optical treatment */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 96, 'SOFT' 0, 'WONK' 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ---------- Ruler margin (signature element) ---------- */
.ruler-frame { display: flex; min-height: 100vh; }

.ruler {
  width: var(--ruler-width);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--paper-line);
}

.ruler svg { width: 100%; height: 100%; display: block; }

.ruler-main { flex: 1; min-width: 0; }

@media (max-width: 900px) { .ruler { display: none; } }

/* ---------- Logo lockup (official brand wordmark, colour via mask) ---------- */
.logo { display: inline-flex; align-items: center; }

.logo-lockup {
  display: block;
  width: 116px;                 /* 88:31 aspect */
  height: 40px;
  color: var(--blue);           /* drives the mask fill */
  background-color: currentColor;
  -webkit-mask: url(../images/logo-wordmark.svg) no-repeat center / contain;
  mask: url(../images/logo-wordmark.svg) no-repeat center / contain;
  transition: color 0.3s ease;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 44px; /* account for ruler */
  right: 0;
  z-index: 50;
  background: rgba(234, 230, 220, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--paper-line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 900px) {
  /* ruler is hidden; header spans full width */
  .site-header { left: 0; }
}

/* hero sits behind the fixed header (starts at top:0);
   all other sections need a scroll-margin so anchor links land below the header */
.ruler-main { padding-top: 0; }
section[id] { scroll-margin-top: 72px; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.16s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--spec-red);
  transition: right 0.24s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  background: var(--blue);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 2px;
  transition: background 0.16s ease;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--blue-deep); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--ink);
    padding: 8px 13px;
    font-size: 13px;
    font-family: var(--font-mono);
    border-radius: 2px;
    cursor: pointer;
    margin-left: auto;
  }
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--spec-red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-deep); }

.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero: full-bleed ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Portrait viewports: full-bleed overlay with the crop framing the seated
   model on the right (standing model out of frame), text over the blue wall. */
@media (max-aspect-ratio: 1/1) {
  /* Frame seated model on the right and lift her so the torso reads above the
     bottom text block (standing model stays out of frame). */
  .hero-bg img {
    object-position: 64% top;
    transform: scale(1.3) translateY(-12%);
    transform-origin: 64% 38%;
  }
  .hero-bg::after {
    background:
      linear-gradient(to right, rgba(4,10,20,0.86) 0%, rgba(4,10,20,0.45) 46%, rgba(4,10,20,0.05) 80%, rgba(4,10,20,0.0) 100%),
      linear-gradient(to top,   rgba(4,10,20,0.94) 0%, rgba(4,10,20,0.55) 26%, rgba(4,10,20,0.0) 52%);
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(4,10,20,0.82) 0%, rgba(4,10,20,0.55) 42%, rgba(4,10,20,0.10) 70%, rgba(4,10,20,0.0) 100%),
    linear-gradient(to top,    rgba(4,10,20,0.70) 0%, rgba(4,10,20,0.18) 28%, rgba(4,10,20,0.0)  55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;   /* fill the container so margin:0 auto matches the header */
  padding-bottom: clamp(32px, 4vw, 52px);
  padding-top: clamp(80px, 12vw, 140px);
}

/* Pin text to the left half — keep the container centred at full width */
.hero-content .eyebrow,
.hero h1,
.hero-lede,
.hero .btn-row {
  max-width: 520px;
}

.hero-content .eyebrow {
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6.2vw, 90px);
  line-height: 1.0;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  max-width: 20ch;
}

.hero h1 span { display: block; }

.hero-lede {
  font-size: clamp(15.5px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
  margin-bottom: 36px;
}

/* hero-specific buttons */
.btn-hero-primary {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.btn-hero-primary:hover { background: #fff; color: var(--ink); }

.btn-hero-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.85);
}

/* Trust marks: frosted bar pinned to bottom of hero */
.hero-marks-bar {
  position: relative;
  z-index: 1;
  background: rgba(8,6,4,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-marks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.hero-marks li {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  padding: 18px 36px 18px 0;
  margin-right: 36px;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.hero-marks li:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.hero-marks span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .hero-lede { font-size: 15px; }
  .hero-marks li { padding-right: 20px; margin-right: 20px; font-size: 12.5px; }
}

@media (max-width: 400px) {
  .hero-marks li:nth-child(4) { display: none; }
}

/* ---------- Transparent header over hero ---------- */
.site-header.hero-mode {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.10);
}

.site-header.hero-mode .logo-lockup { color: #fff; }

.site-header.hero-mode .nav-links a {
  color: rgba(255,255,255,0.82);
}

.site-header.hero-mode .nav-links a:hover { color: #fff; }

.site-header.hero-mode .nav-links a::after { background: rgba(255,255,255,0.7); }

.site-header.hero-mode .nav-cta {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}

.site-header.hero-mode .nav-cta:hover { background: rgba(255,255,255,0.28); }

.site-header.hero-mode .nav-toggle {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
}

/* ---------- Entrance animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero: .reveal elements fire on body.is-loaded */
.reveal { opacity: 0; }

body.is-loaded .hero-content .eyebrow.reveal {
  animation: fadeUp 0.85s cubic-bezier(0.22, 0.8, 0.32, 1) 0.08s forwards;
}

body.is-loaded .hero h1 .reveal:nth-child(1) {
  animation: fadeUp 0.9s cubic-bezier(0.22, 0.8, 0.32, 1) 0.26s forwards;
}

body.is-loaded .hero h1 .reveal:nth-child(2) {
  animation: fadeUp 0.9s cubic-bezier(0.22, 0.8, 0.32, 1) 0.42s forwards;
}

body.is-loaded .hero-lede.reveal {
  animation: fadeUp 0.9s cubic-bezier(0.22, 0.8, 0.32, 1) 0.60s forwards;
}

body.is-loaded .btn-row.reveal {
  animation: fadeUp 0.85s cubic-bezier(0.22, 0.8, 0.32, 1) 0.76s forwards;
}

/* Scroll-reveal: IntersectionObserver adds .in-view */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.8, 0.32, 1),
              transform 0.75s cubic-bezier(0.22, 0.8, 0.32, 1);
}

[data-reveal].in-view { opacity: 1; transform: none; }

[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.24s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Proof / stat band ---------- */
.statband {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(38px, 4.5vw, 56px) 0;
  border-bottom: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat { border-left: 1px solid #3A3730; padding-left: 22px; }
.stat:first-child { border-left: none; padding-left: 0; }

.stat dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A8A392;
  margin-bottom: 12px;
}

.stat dd { display: flex; align-items: baseline; gap: 2px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 58px);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 27px);
  color: var(--spec-red);
  line-height: 1;
}

@media (max-width: 780px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Section shell ---------- */
section { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--paper-line); }
section:last-of-type { border-bottom: none; }

.section-head { max-width: 660px; margin-bottom: clamp(38px, 4.5vw, 58px); }

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  letter-spacing: -0.024em;
}

.section-sub {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Legacy / establishment ---------- */
.legacy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.legacy-photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.legacy-photo img { width: 100%; height: 100%; object-fit: cover; }

.legacy-copy h2 {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.13;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  letter-spacing: -0.024em;
  margin-bottom: 18px;
}

.legacy-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.66;
  max-width: 54ch;
}

@media (max-width: 820px) {
  .legacy-grid { grid-template-columns: 1fr; gap: 34px; }
  .legacy-photo { max-width: 300px; }
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-dark);
}

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.category-card:hover img { transform: scale(1.05); }

.category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(18,16,14,0.78), rgba(18,16,14,0.16) 62%, transparent);
  color: #fff;
}

.category-overlay .cat-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 96;
  font-size: 20px;
  margin-bottom: 5px;
}

.category-overlay .cat-link {
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.category-card:hover .cat-link span { display: inline-block; transform: translateX(4px); transition: transform 0.2s ease; }

@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process ---------- */
.process-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
  padding-top: 44px;
  /* neutralise the block-level [data-reveal] fade; children animate instead */
  opacity: 1;
  transform: none;
}

/* the timeline rail, drawn across on scroll */
.process-track::before {
  content: '';
  position: absolute;
  top: 5px; left: 6px; right: 6px;
  height: 2px;
  background: var(--spec-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.process-track.in-view::before { transform: scaleX(1); }

.step {
  position: relative;
  /* staggered card entrance driven by the track's .in-view */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.32, 1);
  transition-delay: calc(0.28s + var(--i) * 0.1s);
}
.process-track.in-view .step { opacity: 1; transform: none; }

/* node on the rail */
.step-dot {
  position: absolute;
  top: -44px; left: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--spec-red);
  box-shadow: 0 0 0 4px var(--paper);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.5s + var(--i) * 0.1s);
}
.process-track.in-view .step-dot { transform: scale(1); }
/* short vertical tick connecting the node to its card */
.step-dot::after {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  width: 1px; height: 20px;
  background: var(--paper-line);
  transform: translateX(-50%);
}

.step-card {
  position: relative;
  height: 100%;
  background: var(--paper-warm);
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* tech-pack crop-mark brackets, revealed on hover */
.step-card::before,
.step-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step-card::before {
  top: 7px; left: 7px;
  border-top: 1.5px solid var(--blue);
  border-left: 1.5px solid var(--blue);
}
.step-card::after {
  bottom: 7px; right: 7px;
  border-bottom: 1.5px solid var(--blue);
  border-right: 1.5px solid var(--blue);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 40px -22px rgba(11, 75, 143, 0.5);
}
.step-card:hover::before,
.step-card:hover::after { opacity: 1; }

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--spec-red);
  line-height: 1;
}

.step-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid #CBDCEF;
  border-radius: 3px;
  background: var(--blue-tint);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.step-icon {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.step-card:hover .step-icon-wrap { background: var(--blue); border-color: var(--blue); }
.step-card:hover .step-icon { stroke: #fff; }

.step-card h3 {
  font-size: 19px;
  line-height: 1.24;
  font-variation-settings: 'opsz' 72;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--muted);
  margin-bottom: 18px;
}

.step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--blue-tint);
  border: 1px solid #CBDCEF;
  padding: 5px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1040px) {
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 44px 18px; padding-top: 40px; }
  /* rail only spans the top row of nodes here, so hide it and keep the dots */
  .process-track::before { display: none; }
  .step-dot { top: -30px; }
  .step-dot::after { height: 14px; }
}

@media (max-width: 620px) {
  .process-track { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Craft strip ---------- */
.craft-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.craft-item { position: relative; aspect-ratio: 3/4; overflow: hidden; }

.craft-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.craft-item:hover img { transform: scale(1.04); }

.craft-item .craft-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 44px 20px 18px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 96;
  font-size: 19px;
  background: linear-gradient(to top, rgba(18,16,14,0.66), transparent);
}

@media (max-width: 768px) { .craft-strip { grid-template-columns: 1fr; } }

/* ---------- Capability rows ---------- */
.capability-list { display: flex; flex-direction: column; }

.capability-row {
  display: grid;
  grid-template-columns: 0.42fr 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--paper-line);
}

.capability-row:last-child { border-bottom: 1px solid var(--paper-line); }

.capability-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--spec-red);
}

.capability-row h3 {
  font-size: 23px;
  font-variation-settings: 'opsz' 96;
  margin-bottom: 8px;
}

.capability-row p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.capability-photo { aspect-ratio: 16/10; overflow: hidden; border-radius: 2px; }
.capability-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .capability-row { grid-template-columns: 1fr; gap: 16px; }
  .capability-photo { order: -1; aspect-ratio: 16/9; }
}

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.founder-photo {
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.founder-copy blockquote { border: none; }

.founder-copy blockquote p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 60ch;
}

.founder-copy blockquote p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--blue);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
}

.founder-sig {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}

.founder-sig .name {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96;
  font-size: 19px;
}

.founder-sig .role {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 3px;
}

@media (max-width: 820px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

/* ---------- Instagram ---------- */
.instagram-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.instagram-grid-photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.instagram-grid-photo img { width: 100%; height: 100%; object-fit: cover; }

.instagram-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--blue-tint);
  border: 1px solid #CBDCEF;
  border-radius: 4px;
  padding: 34px;
}

.instagram-icon { width: 38px; height: 38px; color: var(--blue); flex-shrink: 0; }

.instagram-handle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 8px;
}

.instagram-copy p { color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 820px) {
  .instagram-showcase { grid-template-columns: 1fr; }
  .instagram-grid-photo { aspect-ratio: 610/506; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
}

.contact-info .info-row {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 15.5px;
}

.contact-info .info-row:last-child { border-bottom: none; }

.contact-info .info-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--spec-red);
  text-transform: uppercase;
  width: 92px;
  flex-shrink: 0;
  padding-top: 4px;
}

.contact-info a { border-bottom: 1px solid var(--paper-line); transition: border-color 0.16s ease; }
.contact-info a:hover { border-color: var(--blue); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form input,
.contact-form textarea {
  background: var(--paper-warm);
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  padding: 14px 15px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9C978A; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 75, 143, 0.1);
}

.contact-form textarea { min-height: 132px; resize: vertical; }

.contact-form button {
  align-self: flex-start;
  background: var(--blue);
  color: var(--paper);
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.16s ease;
}

.contact-form button:hover { background: var(--blue-deep); }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

.form-note { font-size: 12px; color: var(--muted); margin-top: -2px; }

.form-status { font-size: 13px; font-family: var(--font-mono); line-height: 1.5; }
.form-status-ok { color: var(--blue); }
.form-status-error { color: var(--spec-red); }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-logo .logo-lockup { color: var(--paper); width: 128px; height: 44px; }

.footer-brand p { font-size: 14px; color: #A8A392; max-width: 320px; line-height: 1.62; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8A8676;
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: #D8D4C8;
  margin-bottom: 11px;
  line-height: 1.55;
}

.footer-col a { transition: color 0.16s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #3A3730;
  padding-top: 22px;
  font-size: 12.5px;
  color: #8A8676;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-meta { font-family: var(--font-mono); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery (category pages) ---------- */
.gallery-hero {
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--paper-line);
}

.gallery-back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 18px;
  transition: color 0.16s ease;
}

.gallery-back:hover { color: var(--blue); }

.gallery-hero .eyebrow { margin-bottom: 12px; }

.gallery-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  letter-spacing: -0.026em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: clamp(40px, 5vw, 60px) 0;
}

.gallery-item {
  aspect-ratio: 1/1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-dark);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== Mobile nav CTA (inside the toggled menu) ===== */
.nav-mobile-cta {
  display: none;
  background: var(--blue);
  color: var(--paper) !important;
  padding: 14px 18px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.nav-mobile-cta:hover { background: var(--blue-deep); }

/* ===== Mobile: ≤980px — nav links in drawer ===== */
@media (max-width: 980px) {
  .nav-mobile-cta { display: block; }

  /* Style each link in the open drawer */
  .nav-links[style] a:not(.nav-mobile-cta) {
    font-size: 17px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--paper-line) !important;
    color: var(--ink) !important;
  }

  .nav-links[style] a:not(.nav-mobile-cta)::after {
    display: none !important;
  }
}

/* ===== Tablet / small desktop: ≤900px ===== */
@media (max-width: 900px) {
  /* Hero: image after copy on tablet, centred */
  .hero-grid { align-items: start; }
  .hero-art { margin: 0 auto; }

  /* Give hero-art a bottom gap so the inset photo doesn't overlap the stat band */
  .hero-art { padding-bottom: 10%; }
}

/* ===== Small screens: ≤640px ===== */
@media (max-width: 640px) {
  /* Section vertical spacing */
  section { padding: clamp(44px, 10vw, 72px) 0; }

  /* Hero */
  .hero-grid { gap: 28px; }
  .hero-content .eyebrow,
  .hero h1,
  .hero-lede,
  .hero .btn-row { max-width: 100%; }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    margin-bottom: 18px;
  }

  .hero-lede { font-size: 15px; margin-bottom: 24px; }

  /* Stack the CTA buttons */
  .btn-row { flex-direction: column; }
  .btn { text-align: center; width: 100%; }

  /* Hero marks: compress spacing */
  .hero-marks { margin-top: 28px; }
  .hero-marks li { padding-right: 12px; margin-right: 12px; font-size: 13px; }

  /* Hero art: full-width, keep the inset from overflowing the right edge */
  .hero-art { max-width: 100%; padding-bottom: 12%; }
  .hero-inset { width: 36%; right: 2%; bottom: 0; border-width: 4px; }

  /* Legacy */
  .legacy-photo { max-width: 240px; }
  .legacy-copy h2 { font-size: clamp(22px, 6vw, 30px); }

  /* Capability: hide the number column on mobile — too cramped */
  .capability-num { display: none; }
  .capability-row { grid-template-columns: 1fr; }

  /* Stat band: keep 2×2 but smaller text */
  .stat-num { font-size: clamp(32px, 8vw, 48px); }

  /* Section headings */
  .section-head h2 { font-size: clamp(24px, 6.5vw, 36px); }
  .section-sub { font-size: 15px; }

  /* Process: already 1-col via ≤620px rule, but add breathing room */
  .step { padding-right: 0; }

  /* Instagram card */
  .instagram-card { padding: 22px; }

  /* Contact form button: full width on mobile */
  .contact-form button { width: 100%; text-align: center; }

  /* Footer bottom: stack vertically */
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ===== Very small screens: ≤400px ===== */
@media (max-width: 400px) {
  /* Collapse hero marks to 3 items × shorter labels */
  .hero-marks li { padding-right: 8px; margin-right: 8px; font-size: 12px; }

  /* Founder drop cap looks huge on tiny screens */
  .founder-copy blockquote p:first-of-type::first-letter {
    font-size: 2.5em;
    padding-right: 7px;
  }

  /* Stat numbers */
  .stat-num { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
