/* Pattern Lab India — brand tokens from the Brand Guidelines */
:root {
  --magenta: #c61d65;
  --yellow: #ffb000;
  --maroon: #751c3a;
  --charcoal: #1a1a1a;
  --grey: #e5e5e5;
  --offwhite: #f8f6f1;

  --bg: #121212;
  --panel: var(--charcoal);
  --line: rgba(248, 246, 241, 0.14);
  --text: var(--offwhite);
  --muted: rgba(248, 246, 241, 0.66);

  /* Neue Montreal needs a web licence. Until its files are added, Inter is used. */
  --font-head: 'Neue Montreal', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

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

/* Type */
h1, h2, .display {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7.4vw, 104px); }
h2 { font-size: clamp(32px, 5.2vw, 72px); }
h2 .next, h1 .next { display: block; color: var(--magenta); }
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  display: block;
}
.copy { color: var(--muted); max-width: 56ch; margin-top: 24px; }
.copy p + p { margin-top: 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--text); border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--text); color: var(--charcoal); }
.btn-primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--offwhite); border-color: var(--offwhite); color: var(--charcoal); }
.link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.link:hover { border-color: var(--yellow); color: var(--yellow); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(18, 18, 18, 0.86); backdrop-filter: blur(12px); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px; min-width: 120px; }
.logo img { display: block; height: 44px; width: auto; min-width: 0; }
.logo:has(img) { min-width: 0; }
.logo-foot img { height: 56px; }
@media (max-width: 720px) { .logo img { height: 38px; } }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav > li { position: relative; }
.nav a { display: block; padding: 24px 0; color: var(--muted); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.drop {
  position: absolute; top: 100%; left: -20px; min-width: 280px;
  background: var(--charcoal); border: 1px solid var(--line); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s;
}
.nav li:hover .drop, .nav li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { padding: 10px 20px; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 40px; padding: 0 16px; font-size: 12px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); height: 40px; padding: 0 14px; font: inherit; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Sections */
section { padding: clamp(72px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.center { text-align: center; }
.center .copy { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }

/* Hero */
.hero { min-height: max(100svh, 760px); display: flex; align-items: flex-end; position: relative; border-top: 0; padding: 170px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slot { height: 100%; aspect-ratio: auto !important; border: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 8%, rgba(18,18,18,0.35) 60%, rgba(18,18,18,0.6)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .copy { font-size: 18px; }
.hero-note { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.microdata { position: absolute; top: 96px; right: var(--gutter); z-index: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-align: right; line-height: 1.9; }

/* Asset slots */
.slot {
  position: relative; width: 100%; overflow: hidden;
  background-color: var(--panel);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  border: 1px dashed rgba(248, 246, 241, 0.28);
}
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; font-size: 14px; color: var(--muted); }
.slot-id { font-family: var(--font-mono); font-size: 22px; color: var(--yellow); letter-spacing: 0.08em; }
.slot-type { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

/* Process */
.stages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); }
.stage { padding: 24px 18px; border-right: 1px solid var(--line); }
.stage:last-child { border-right: 0; }
.stage-no { font-family: var(--font-mono); font-size: 12px; color: var(--yellow); }
.stage h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; margin: 12px 0 14px; line-height: 1.25; }
.stage li { font-size: 14px; color: var(--muted); padding: 3px 0; }

.flow { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
.flow li:not(:last-child)::after { content: '→'; margin-left: 10px; color: var(--magenta); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; border: 1px solid var(--line); padding: 6px 10px; color: var(--muted); }

/* Statement strip + manifesto */
.strip .display { font-size: clamp(40px, 9vw, 128px); }
.strip .display span { display: block; }
.strip .display span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--offwhite); }
.strip-foot { margin-top: 28px; font-family: var(--font-mono); letter-spacing: 0.14em; font-size: 13px; color: var(--yellow); }
.manifesto { position: relative; overflow: hidden; }
.manifesto-list { margin: 36px 0; }
.manifesto-list span { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 4vw, 52px); line-height: 1.15; color: var(--muted); }

/* Marker + six centimetre */
.meter { margin-top: 32px; }
.meter-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.meter-bar { height: 6px; background: var(--line); margin: 10px 0 22px; }
.meter-bar i { display: block; height: 100%; background: var(--magenta); }
.meter-row b { color: var(--text); font-weight: 500; }
.sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 12px 28px; margin: 48px 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 5vw, 68px); }
.sum .op { color: var(--muted); }
.sum .res { color: var(--yellow); }

/* Panels, categories, lists */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.panel { background: var(--bg); padding: 36px 28px; min-height: 240px; display: flex; flex-direction: column; transition: background 0.25s; }
.panel:hover { background: var(--maroon); }
.panel h3 { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; line-height: 1.1; margin: 16px 0 10px; }
.panel p { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.panel .go { margin-top: auto; padding-top: 24px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.cats h3 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--magenta); }
.cats li, .ticks li { color: var(--muted); padding: 4px 0; }
.ticks { margin-top: 20px; columns: 2; }
.ticks li::before { content: '+ '; color: var(--yellow); }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.who li { border: 1px solid var(--line); padding: 12px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.problems { margin-top: 24px; }
.problems li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Final CTA (brighter, per spec) */
.final { background: var(--offwhite); color: var(--charcoal); border-top: 0; }
.final .copy { color: rgba(26, 26, 26, 0.72); }
.final .label { color: var(--magenta); }
.final .btn { border-color: var(--charcoal); }
.final .btn:hover { background: var(--charcoal); color: var(--offwhite); }
.final .btn-primary { border-color: var(--magenta); }
.final .tags li { border-color: rgba(26,26,26,0.2); color: rgba(26,26,26,0.7); }
.final .link { border-color: rgba(26,26,26,0.3); }
.final .link:hover { color: var(--magenta); border-color: var(--magenta); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 120px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 16px; font-weight: 400; }
.footer li { padding: 4px 0; color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer p { color: var(--muted); margin-top: 16px; max-width: 40ch; }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.signoff { font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }

/* WhatsApp float + mobile sticky bar */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; background: #1f8f4e; color: #fff; padding: 0 20px; min-height: 48px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; }
.sticky-bar { display: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Simple pages */
.page { padding: 160px 0 96px; min-height: 70svh; border-top: 0; }

@media (max-width: 1020px) {
  .nav, .header-cta .btn:not(.btn-primary) { display: none; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .header-cta { display: none; }
  .nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--charcoal); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); max-height: calc(100svh - 68px); overflow: auto; }
  .nav.open a { padding: 12px 0; }
  .nav.open .drop { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 16px; background: none; }
  .stages { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage:last-child { border-bottom: 0; }
  .panels { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .panels { grid-template-columns: 1fr; }
  .microdata { display: none; }
  .wa-float { display: none; }
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 40; }
  .sticky-bar a { min-height: 54px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
  .sticky-bar a:first-child { background: #1f8f4e; }
  .sticky-bar a:last-child { background: var(--magenta); }
  .ticks { columns: 1; }
}

/* Hero placeholder label sits top-left so it never collides with the headline */
.hero-bg .slot-label { align-items: flex-start; justify-content: flex-start; text-align: left; padding: 88px var(--gutter) 0; gap: 2px; font-size: 12px; }
.hero-bg .slot-id { font-size: 13px; }
.hero-bg .slot-type { font-size: 10px; }

/* Input → Pattern Lab → Output (About page) */
.stages.io { grid-template-columns: 1fr 0.7fr 1fr; }
.stages.io .mid { background: var(--maroon); display: flex; flex-direction: column; justify-content: center; }
.stages.io .mid h3 { font-family: var(--font-head); font-size: 22px; }
.panels + .actions, .who + .copy, .tags + .strip-foot { margin-top: 32px; }
@media (max-width: 1020px) { .stages.io { grid-template-columns: 1fr; } }
.panels .panel:last-child:nth-child(3n + 1) { grid-column: 1 / -1; min-height: 0; }

/* Services page */
.mini { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 28px; }
.mini + .tags { margin-top: 10px; }
.panel.static:hover { background: var(--bg); }
.rec { margin-top: 16px; }
.rec li { padding: 6px 0; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.rec a { border-bottom: 1px solid var(--magenta); padding-bottom: 2px; }
.rec a:hover { color: var(--yellow); border-color: var(--yellow); }
.rec.plain li { color: var(--muted); text-transform: none; letter-spacing: 0; padding: 3px 0; }
.rec.plain li::before { content: '+ '; color: var(--yellow); }
.flow.big { font-size: 14px; margin: 40px 0 8px; gap: 12px 10px; }
.paths { margin-top: 48px; border: 1px solid var(--line); }
.path { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.path:last-child { border-bottom: 0; }
.path .flow { margin-top: 0; }
.choose { margin-top: 40px; border-top: 1px solid var(--line); }
.choose li { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.choose b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--yellow); font-weight: 400; text-transform: uppercase; }
.choose a { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.choose a:hover { color: var(--magenta); }
.stages.five { grid-template-columns: repeat(5, 1fr); }
.duo-main { background: var(--magenta); padding: clamp(28px, 4vw, 56px); }
.duo-main .strip-foot { color: #fff; }
.duo-main .copy { color: rgba(255, 255, 255, 0.88); }
.duo-main .btn { background: var(--offwhite); color: var(--charcoal); border-color: var(--offwhite); }
.duo-main .btn:hover { background: var(--charcoal); color: var(--offwhite); border-color: var(--charcoal); }
.duo-alt { border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); }
.duo h2 { font-size: clamp(30px, 3.6vw, 52px); }
.hero .tags { margin-top: 24px; }
@media (max-width: 1020px) { .stages.five { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .path { grid-template-columns: 1fr; gap: 8px; }
  .choose li { grid-template-columns: 1fr; gap: 4px; }
}

/* Categories page */
.who.pick li { padding: 0; }
.who.pick a { display: block; padding: 14px 20px; }
.who.pick a:hover { background: var(--magenta); color: #fff; }
.matrix { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(var(--cols), 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 13px; }
.matrix > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 10px; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.matrix b { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--yellow); text-align: center; }
.matrix a { justify-content: flex-start; padding-left: 16px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.matrix a:hover { color: var(--magenta); }
.matrix i::before { content: ''; width: 8px; height: 8px; background: var(--magenta); border-radius: 50%; }
.choose.two li { grid-template-columns: 1fr 1.4fr; }
section[id] { scroll-margin-top: 60px; }
@media (max-width: 720px) {
  .matrix { font-size: 11px; grid-template-columns: 92px repeat(var(--cols), 1fr); }
  .matrix > * { padding: 10px 2px; }
  .matrix a { padding-left: 8px; letter-spacing: 0; }
  .matrix b { font-size: 8px; letter-spacing: 0; writing-mode: vertical-rl; min-height: 86px; }
  .choose.two li { grid-template-columns: 1fr; }
}

/* How It Works page */
details.more, .faq details { border-top: 1px solid var(--line); margin-top: 24px; }
details.more { border-bottom: 1px solid var(--line); max-width: 56ch; }
summary { cursor: pointer; padding: 16px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--yellow); font-size: 18px; line-height: 1; }
details[open] > summary::after { content: '–'; }
details.more .ticks { margin: 0 0 20px; }
.faq { margin-top: 40px; border-bottom: 1px solid var(--line); }
.faq details { margin-top: 0; }
.faq summary { font-size: 15px; padding: 20px 0; }
.faq p { color: var(--muted); max-width: 70ch; padding-bottom: 22px; }
.steps-nav { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps-nav a { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; }
.steps-nav a span { display: block; font-family: var(--font-mono); font-weight: 400; color: var(--yellow); margin-bottom: 8px; }
.steps-nav a:hover { background: var(--maroon); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: 40px; }
.cols2 .ticks { columns: 1; }
.cols2 .mini { margin-top: 0; }
@media (max-width: 1020px) { .steps-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .cols2 { grid-template-columns: 1fr; } }

/* Contact form */
.form-shell { border: 1px solid var(--line); background: var(--panel); padding: clamp(20px, 4vw, 48px); margin-top: 40px; }
.progress { display: flex; gap: 6px; margin-bottom: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.progress li { flex: 1; border-top: 2px solid var(--line); padding-top: 10px; }
.progress li.on { border-color: var(--magenta); color: var(--text); }
.progress-mobile { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 20px; }
.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .fstep:not(.on) { display: none; }
.fstep legend { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 1.1; padding: 0; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; border: 1px solid var(--line); padding: 13px 18px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.chips input:checked + span { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field > span, .flabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.flabel { display: block; margin: 28px 0 12px; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 2px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.cond { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 20px; }
.cond.on { display: grid; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--magenta); flex: none; }
.consent a { text-decoration: underline; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.form-nav button { font-family: inherit; cursor: pointer; }
.form-nav button:not(.btn-primary) { background: none; color: var(--text); }
.form-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.form-msg { margin-top: 20px; padding: 16px; border: 1px solid var(--yellow); display: none; }
.form-msg.on { display: block; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.contact-grid > div { background: var(--bg); padding: 32px 28px; }
.contact-grid h3 { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; line-height: 1.1; margin: 12px 0 14px; }
.contact-grid p { color: var(--muted); font-size: 15px; }
.contact-grid a.big { display: inline-block; margin-top: 16px; font-weight: 600; border-bottom: 1px solid var(--magenta); word-break: break-word; }
.stages.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1020px) { .stages.six { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .fields, .cond { grid-template-columns: 1fr; }
  .progress { display: none; }
  .progress-mobile { display: block; }
  .chips span { padding: 14px 16px; }
}
[hidden] { display: none !important; }
ol { list-style: none; margin: 0; padding: 0; }

/* Send Your Tech Pack form */
.tblock { display: none; margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); }
.tblock.on { display: block; }
.tblock .mini { color: var(--yellow); margin: 20px 0 16px; }
.textbtn { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.review section { padding: 0; border-top: 1px solid var(--line); padding-bottom: 14px; }
.review header { display: flex; justify-content: space-between; align-items: baseline; }
.review .mini { color: var(--yellow); margin: 16px 0 10px; }
.review div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 12px; padding: 5px 0; font-size: 14px; }
.review div span { color: var(--muted); }
.review div b { font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.form-msg a { text-decoration: underline; }
.progress li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .review div { grid-template-columns: 1fr; gap: 2px; } }

/* Project Initiation fee card */
.fee { border: 1px solid var(--magenta); padding: clamp(20px, 3vw, 36px); margin: 28px 0; max-width: 640px; }
.fee-amount { font-family: var(--font-head); font-weight: 700; font-size: clamp(48px, 8vw, 88px); line-height: 1; }
.fee-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); margin-top: 8px; }
.fee .label { margin-bottom: 12px; }
#pay-summary { max-width: 640px; }
.duo-alt .flow { font-size: 11px; }

/* Legal pages */
.legal h1 { font-size: clamp(36px, 5.6vw, 76px); }
.legal .draft { border: 1px solid var(--yellow); color: var(--yellow); padding: 14px 18px; margin-top: 24px; font-size: 14px; max-width: 70ch; }
.legal mark { background: rgba(255, 176, 0, 0.18); color: var(--yellow); padding: 0 4px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; font-size: 13px; }
.legal-toc li { padding: 5px 0; color: var(--muted); }
.legal-toc a:hover { color: var(--text); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0; margin: 56px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 span { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 10px; }
.legal-body h3 { font-size: 16px; margin: 28px 0 10px; }
.legal-body p { color: var(--muted); margin: 0 0 12px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; color: var(--muted); }
.legal-body li { padding: 2px 0; }
.legal-body li::marker { color: var(--magenta); }
@media (max-width: 1020px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; max-height: none; border: 1px solid var(--line); padding: 16px 20px; } }
.legal-body p.sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--text); margin: 22px 0 8px; }
.legal-body p.arrow { margin: -6px 0 -6px; color: var(--magenta); }
.legal-body p.sub + p.arrow, .legal-body p.arrow + p.sub { margin-top: 0; }
.legal-body p.arrow + p.sub { margin: 0 0 8px; }

/* A box that has its image or video shows no placeholder border */
.slot:has(img, video) { border: 0; }

/* 2 x 2 image set (About — garment detail series) */
.grid-4up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }

/* ---------- CLIENT PORTAL (/login, /portal) ---------- */
.portal-page h1 { font-size: clamp(44px, 7vw, 88px); }
.login-wrap { max-width: 520px; }
.login-intro, .login-help, .muted { color: var(--muted); }
.login-intro { margin: 20px 0 32px; }
.login-card { display: grid; gap: 18px; border: 1px solid var(--line); padding: 28px; background: rgba(255,255,255,0.02); }
.login-card .btn { width: 100%; justify-content: center; }
.login-sent { color: var(--muted); }
.login-sent b { color: var(--text); word-break: break-all; }
.login-msg { min-height: 1.2em; font-size: 14px; color: var(--yellow); margin: 0; }
.login-msg.bad { color: #ff6b8f; }
.login-links { font-size: 14px; color: var(--muted); }
.login-help { margin-top: 28px; font-size: 14px; }
.login-help a, .notice a { color: var(--yellow); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--yellow); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.linkish.danger, .btn.danger { color: #ff6b8f; }
.btn.danger { border-color: #ff6b8f; }
.notice { border: 1px solid var(--yellow); color: var(--yellow); padding: 16px 18px; margin: 16px 0; }
.notice.bad { border-color: #ff6b8f; color: #ff6b8f; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg); z-index: 99; max-width: calc(100% - 32px); }
.small { font-size: 13px; }
.portal-page { padding-top: 130px; }
.portal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 36px; }
.portal-tabs { display: flex; gap: 24px; flex-wrap: wrap; }
.portal-tabs a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.portal-tabs a[aria-current] { color: var(--text); border-color: var(--magenta); }
.portal-user { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; word-break: break-all; }
.portal-view h2 { font-size: clamp(30px, 4vw, 48px); }
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pfilters { display: flex; gap: 10px; flex-wrap: wrap; }
.pfilters input, .pfilters select { background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 2px; min-width: 0; }
.pfilters input { width: 260px; max-width: 100%; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); padding: 22px; transition: border-color .2s; }
.pcard:hover { border-color: var(--yellow); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcode { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--yellow); }
.ptitle { font-size: 19px; line-height: 1.3; }
.pstage { font-size: 15px; }
.pbar { display: block; height: 4px; background: var(--line); margin: 4px 0; }
.pbar i { display: block; height: 100%; background: var(--magenta); }
.pstatus { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid currentColor; padding: 3px 8px; white-space: nowrap; color: #6fd39b; }
.pstatus.s-OnHold { color: var(--yellow); }
.pstatus.s-Completed { color: var(--muted); }
.pstatus.s-Cancelled { color: #ff6b8f; }
.pform { max-width: 760px; margin-top: 24px; }
.pform .actions, .team-box .actions, .comment .actions { margin-top: 20px; }
.team-box { border: 1px solid var(--magenta); padding: 22px; margin-bottom: 40px; }
.team-box .field textarea { min-height: 80px; }
.pdetail { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 48px; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.timeline li span { font-family: var(--font-mono); font-size: 11px; padding-top: 3px; }
.timeline li.done { color: var(--text); }
.timeline li.done span::after { content: ' ✓'; color: #6fd39b; }
.timeline li.now { color: var(--text); font-weight: 600; border-left: 3px solid var(--magenta); padding-left: 10px; }
.timeline li.now span { color: var(--magenta); }
.files, .feed, .team-list { list-style: none; padding: 0; margin: 14px 0 0; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files .fname { word-break: break-all; }
.files .muted.small { grid-column: 1; }
.files .factions { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 14px; }
.upload { display: flex; align-items: center; gap: 14px; margin-top: 16px; cursor: pointer; flex-wrap: wrap; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload input:focus-visible + .btn { outline: 2px solid var(--yellow); outline-offset: 3px; }
.comment .field textarea { min-height: 90px; }
.feed li { padding: 14px 0 14px 16px; border-left: 2px solid var(--line); margin-bottom: 8px; }
.feed li.is-team { border-color: var(--magenta); }
.feed li.is-stage { border-color: var(--yellow); }
.feed li p { margin-top: 6px; white-space: normal; word-break: break-word; }
.feed li b { display: block; margin-top: 6px; font-weight: 600; }
.team-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-list li > span:first-child { display: flex; flex-direction: column; word-break: break-all; }
@media (max-width: 860px) {
  .pdetail { grid-template-columns: 1fr; gap: 32px; }
  .portal-page { padding-top: 110px; }
  .login-card { padding: 20px; }
}
.comment { margin-top: 16px; }

/* Medium screens (laptops under 1260px): menu folds into the Menu button so the header never wraps. */
@media (max-width: 1260px) and (min-width: 1021px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; margin-left: auto; margin-right: 12px; }
  .nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--charcoal); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); max-height: calc(100svh - 68px); overflow: auto; }
  .nav.open a { padding: 12px 0; }
  .nav.open .drop { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 16px; background: none; }
}

/* ---------- ASK PLI chat assistant ---------- */
.pli-btn { position: fixed; left: 24px; bottom: 24px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; background: var(--offwhite); color: var(--charcoal); border: 0; border-radius: 2px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.pli-btn:hover { background: var(--yellow); }
.pli-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px rgba(198,29,101,.25); }
.pli-panel { padding: 0; margin: 0; position: fixed; left: 24px; bottom: 24px; z-index: 60; width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100svh - 48px)); display: flex; flex-direction: column; background: #181818; color: var(--text); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.pli-panel[hidden], .pli-btn[hidden] { display: none !important; }
.pli-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pli-head b { display: block; font-size: 16px; letter-spacing: .02em; }
.pli-head span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pli-x { background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.pli-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.pli-msg { max-width: 88%; font-size: 15px; line-height: 1.5; padding: 10px 13px; border-radius: 2px; word-wrap: break-word; }
.pli-msg p + p, .pli-msg ul + p, .pli-msg p + ul { margin-top: 8px; }
.pli-msg ul { padding-left: 18px; margin: 4px 0 0; list-style: disc; }
.pli-msg li { display: list-item; }
.pli-msg li + li { margin-top: 3px; }
.pli-msg a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.pli-assistant { align-self: flex-start; background: rgba(255,255,255,.06); }
.pli-user { align-self: flex-end; background: var(--magenta); color: #fff; }
.pli-error { border: 1px solid #ff6b8f; background: none; }
.pli-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.pli-suggest button, .pli-chip { background: none; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 2px; cursor: pointer; text-align: left; }
.pli-suggest button:hover, .pli-chip:hover { border-color: var(--yellow); color: var(--yellow); }
.pli-chip { margin-top: 8px; }
.pli-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.pli-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pli-dot 1s infinite ease-in-out; }
.pli-typing i:nth-child(2) { animation-delay: .15s; } .pli-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pli-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pli-form { display: flex; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.pli-form[hidden], .pli-lead[hidden] { display: none; }
.pli-form textarea, .pli-lead input, .pli-lead textarea { flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 2px; resize: none; width: 100%; }
.pli-form textarea:focus, .pli-lead input:focus, .pli-lead textarea:focus { outline: none; border-color: var(--yellow); }
.pli-send { background: var(--magenta); color: #fff; border: 0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 16px; min-height: 44px; border-radius: 2px; cursor: pointer; }
.pli-send:disabled { opacity: .5; cursor: default; }
.pli-lead { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); max-height: 60%; overflow-y: auto; }
.pli-lead p { font-size: 13px; color: var(--muted); margin: 0; }
.pli-lead .pli-err { color: #ff6b8f; min-height: 0; }
.pli-row { display: flex; gap: 14px; align-items: center; }
.pli-link { background: none; border: 0; padding: 0; font: inherit; color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.pli-foot { padding: 6px 14px 12px; font-size: 11px; line-height: 1.45; color: var(--muted); }
@media (max-width: 720px) {
  .pli-btn { left: auto; right: 12px; bottom: 66px; min-height: 44px; padding: 0 16px; }
  .pli-panel { inset: 0; width: 100%; max-width: none; height: 100%; height: 100svh; border: 0; }
  html.pli-open, html.pli-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .pli-typing i { animation: none; } }
.leads li { align-items: flex-start; }
.leads li.done { opacity: .5; }
.lead-msg { display: block; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.lead-done { display: flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--muted); }
.convos details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.convos summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.convos summary::-webkit-details-marker { display: none; }
.convos .feed { margin-top: 12px; }
.convos summary { text-transform: none; font-family: inherit; letter-spacing: 0; font-size: 16px; }
.convos summary::after, .convos summary::before { content: none !important; display: none !important; }
.leads [data-show] { align-self: flex-start; margin-top: 6px; }
.pli-msg .pli-h { font-weight: 700; margin-top: 10px; } .pli-msg .pli-h:first-child { margin-top: 0; }

/* ---------- INSIGHTS (blog) ---------- */
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 40px; }
.icard { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); padding: 26px; transition: border-color .2s; }
.icard:hover { border-color: var(--yellow); }
.icard-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.icard-title { font-size: 21px; line-height: 1.3; }
.icard-sum { color: var(--muted); font-size: 15px; line-height: 1.55; }
.icard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.icard-tags i { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 7px; color: var(--muted); }
.icard-more { margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rss-note { margin-top: 32px; font-size: 13px; } .rss-note a { color: var(--muted); text-decoration: underline; }
.article-wrap { max-width: 820px; }
.article-h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin-top: 12px; }
.article-body { max-width: 68ch; margin-top: 40px; font-size: 18px; }
.article-body p, .article-body li { color: rgba(248,246,241,.82); line-height: 1.7; }
.article-body h2 { border-top: 0; padding-top: 0; margin-top: 48px; }
.article-body ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; color: var(--muted); }
.article-body b { color: var(--text); }
.article-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--magenta); margin: 24px 0; padding: 4px 0 4px 18px; color: var(--text); font-size: 20px; }
.article-cta { margin-top: 64px; padding: 32px; border: 1px solid var(--magenta); }
.article-cta h2 { font-size: clamp(26px, 3.4vw, 40px); }
.article-next { margin-top: 32px; }
.legal-name { font-size: 12px; color: var(--muted); }
.fee-paid { color: var(--yellow); font-size: 13px; margin-left: 6px; }
