/* nagulesgobi.com · main pages (home, work, about, contact, dotXline) · shared styles
   Brand: N-mark gradient #FF9124 > #FF4A2C > #FF2440 > #FF008E (logo and dots only), warm ink and paper,
   Barlow Semi Condensed 600 for display, Barlow for text, small accent text #D6143A / #FF5C6E. */

/* 1. Primitive tokens */
:root {
  --c-paper: #F3EFE7; --c-paper-2: #FBF9F4; --c-paper-3: #ECE7DD;
  --c-ink: #15130F; --c-ink-2: #12110F; --c-ink-3: #1C1B18;
  --c-red: #D6143A; --c-red-dark: #FF5C6E;
  --c-xp: #0F9D7A; --c-tb: #FF4F5A; --c-fb: #B9E62E;

  /* 2. Semantic */
  --bg: var(--c-paper); --surface: var(--c-paper-2); --surface-2: var(--c-paper-3);
  --text: var(--c-ink); --muted: #5F5A51; --faint: #8D877C; --line: #DCD5C8; --accent: var(--c-red);
  --btn: var(--c-ink); --btn-ink: var(--c-paper); --card: var(--c-paper-2);
  --grad: linear-gradient(120deg, #FF4A2C, #FF2440 45%, #FF008E);
  --tint-xp: #DCEFE7; --tint-tb: #FCE3D6; --tint-fb: #E6DEFF;

  /* Type: one scale, used everywhere */
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --t-hero: clamp(64px, 8.6vw, 148px);
  --t-h1: clamp(52px, 6.4vw, 112px);
  --t-h2: clamp(40px, 4.6vw, 80px);
  --t-h3: clamp(26px, 2.2vw, 36px);
  --t-lead: clamp(18px, 1.35vw, 21px);
  --t-body: 17px;
  --t-small: 13px;

  /* Space: 8 pt steps */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1320px;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--c-ink-2); --surface: var(--c-ink-3); --surface-2: #24221F; --card: var(--c-ink-3);
    --text: #F1ECE2; --muted: #A29C91; --faint: #7A746B; --line: #2E2C28; --accent: var(--c-red-dark);
    --btn: #F1ECE2; --btn-ink: var(--c-ink-2);
    --grad: linear-gradient(120deg, #FF9124, #FF4A2C 30%, #FF2440 55%, #FF008E);
    --tint-xp: #15302A; --tint-tb: #3A2320; --tint-fb: #1E1640;
    color-scheme: dark;
}
/* Same rule as the live site: follow the system unless the visitor picked a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--c-ink-2); --surface: var(--c-ink-3); --surface-2: #24221F; --card: var(--c-ink-3);
    --text: #F1ECE2; --muted: #A29C91; --faint: #7A746B; --line: #2E2C28; --accent: var(--c-red-dark);
    --btn: #F1ECE2; --btn-ink: var(--c-ink-2);
    --grad: linear-gradient(120deg, #FF9124, #FF4A2C 30%, #FF2440 55%, #FF008E);
    --tint-xp: #15302A; --tint-tb: #3A2320; --tint-fb: #1E1640;
    color-scheme: dark;
  }
}

/* 3. Base */
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--bg); color: var(--text); font: 400 var(--t-body)/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--s2); top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: var(--s2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.kicker { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kicker .n { color: var(--accent); margin-right: 10px; }

/* The dots live on one fixed canvas behind the page */
#dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .site-foot { position: relative; z-index: 1; }

/* 4. Header */
.site-head { position: fixed; z-index: 20; top: 0; left: 0; right: 0; transition: transform .5s var(--ease), background .4s var(--ease); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s3); height: 76px; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--display); letter-spacing: .01em; min-height: 44px; }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: var(--s1); }
.nav a { text-decoration: none; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 12px; border-radius: 999px; transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.btn { color: var(--btn-ink); margin-left: var(--s1); padding: 0 18px; }
.nav a.btn:hover { color: var(--btn-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu-btn { display: none; }

/* 5. Buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; border: 1.5px solid var(--text); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.link span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link i { font-style: normal; transition: translate .35s var(--ease); }
.link:hover i { translate: 4px 0; }

/* 6. Stages: copy on one side, the dot artwork on the other */
.stage { min-height: 88svh; display: flex; align-items: center; padding-block: var(--s7); }
.stage > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.stage.flip > .wrap > .art { order: -1; }
.art { position: relative; width: 100%; aspect-ratio: 1; max-height: min(64svh, 600px); justify-self: center; }
.art[data-small] { width: min(100%, 280px); justify-self: start; }
.art[data-wide] { aspect-ratio: 2.4; max-height: none; }
.copy { max-width: 560px; }
.copy h2 { font: 600 var(--t-h1)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-top: var(--s3); }
.copy p.lead { font-size: var(--t-lead); color: var(--muted); margin-top: var(--s3); max-width: 44ch; }
.copy .btns, .copy .link { margin-top: var(--s4); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); padding: 0; list-style: none; }
.tags li { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* Hero */
.hero { min-height: 100svh; padding-top: 120px; }
.hero h1 { font: 600 var(--t-hero)/.86 var(--display); letter-spacing: -.02em; margin-top: var(--s3); }
.hero h1 .ac { color: var(--accent); }
.nw { white-space: nowrap; }
.hero .lead { font-size: var(--t-lead); color: var(--muted); max-width: 40ch; margin-top: var(--s4); }
.hero .btns { margin-top: var(--s5); }
.hero .facts { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 560px; }
.facts b { display: block; font: 600 40px/1 var(--display); }
.facts span { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Section heads for normal content */
.section { padding-block: var(--s7); }
.section + .stage { padding-top: var(--s5); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s6); align-items: end; margin-bottom: var(--s5); }
.section > .head:only-child, .section > .wrap.head:last-child { margin-bottom: 0; }
.head h2 { font: 600 var(--t-h1)/.9 var(--display); text-transform: uppercase; margin-top: var(--s2); }
.head p { color: var(--muted); font-size: var(--t-lead); max-width: 46ch; }

/* 7. Phones: one frame for every app */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: var(--s3); padding: var(--s5) var(--s4) 0; border-radius: var(--radius); overflow: hidden; height: min(520px, 62svh); background: var(--tint, var(--surface)); }
/* iPhone Pro proportions (iPhone 17 Pro figures as the stand-in): body 71.9 x 150 mm, screen 402 x 874 pt,
   about 16 pt of bezel, screen corner 62 pt, body corner 78 pt. Everything scales from --pw, so it never stretches. */
.phone { --pw: clamp(176px, 15.5vw, 236px); flex: none; width: var(--pw); height: auto; align-self: flex-start; aspect-ratio: 71.9 / 150; border-radius: calc(var(--pw) * .18); padding: calc(var(--pw) * .0373);
  background: linear-gradient(145deg, #2B2B2D, #0C0C0D 40%, #1A1A1C); box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone img { width: 100%; height: 100%; aspect-ratio: 402 / 874; object-fit: cover; object-position: top center; border-radius: calc(var(--pw) * .143); background: #fff; }
.phone:nth-child(2) { margin-top: var(--s6); }
.phones.xp { --tint: var(--tint-xp); } .phones.tb { --tint: var(--tint-tb); } .phones.fb { --tint: var(--tint-fb); }

/* App block */
.app > .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.app .copy .art { margin-bottom: var(--s3); }
.app h2 { margin-top: var(--s2); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 4px rgba(43,182,115,.18); }
.status.test::before { background: #E8A317; box-shadow: 0 0 0 4px rgba(232,163,23,.2); }

/* 8. Work rows (client work): plain rows with the real cover, no hover tricks */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 220px; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows .no { color: var(--muted); }
.rows h3 { font: 600 var(--t-h3)/1 var(--display); text-transform: uppercase; }
.rows p { color: var(--muted); font-size: 15px; }
.rows .kind { display: block; color: var(--accent); margin-bottom: 6px; }
.rows figure { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.rows figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rows a:hover figure img { transform: scale(1.04); }
.rows a:hover h3 { color: var(--accent); }

/* Product cards (work page) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.card { text-decoration: none; display: block; }
.card figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover figure img { transform: scale(1.03); }
.card .badge { position: absolute; left: 14px; top: 14px; background: rgba(21,19,15,.84); color: #F3EFE7; padding: 8px 11px; border-radius: 999px; }
.card .meta { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); color: var(--muted); }
.card h3 { font: 600 var(--t-h3)/1 var(--display); text-transform: uppercase; margin-top: var(--s1); }
.card p { color: var(--muted); margin-top: var(--s1); max-width: 52ch; }
.card .phones { height: auto; aspect-ratio: 4 / 3; padding-top: var(--s4); border-radius: var(--radius); }
.cards > .card:first-child { grid-column: 1 / -1; }
.cards > .card:first-child .phones { aspect-ratio: 21 / 9; }
.cards > .card:first-child .phones .phone { --pw: clamp(150px, 15vw, 236px); }
.card .phones .phone { --pw: clamp(130px, 13vw, 190px); }

/* Filters (work page) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Gallery */
.gallery { columns: 3 280px; column-gap: var(--s3); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; margin-bottom: var(--s3); break-inside: avoid; cursor: zoom-in; }
.gallery figure { border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap { display: flex; justify-content: space-between; gap: var(--s2); margin-top: 10px; }
.gallery .cap b { font: 600 18px/1.1 var(--display); text-transform: uppercase; }
.gallery .cap span { color: var(--muted); font-size: 13px; text-align: right; }
.gallery button[hidden] { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92svh; }
.lightbox::backdrop { background: rgba(10,9,8,.9); }
.lightbox img { max-height: 84svh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #F1ECE2; text-align: center; margin-top: 12px; }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #F1ECE2; color: #15130F; font-size: 22px; cursor: pointer; }

/* Lists: services, steps, habits, facts */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); min-height: 240px; display: flex; flex-direction: column; }
.tile .kicker { color: var(--accent); }
.tile h3 { font: 600 var(--t-h3)/1 var(--display); text-transform: uppercase; margin-top: auto; padding-top: var(--s4); }
.tile p { color: var(--muted); margin-top: var(--s1); }
.deflist { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--line); }
.deflist dt, .deflist dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose p { font-size: var(--t-lead); color: var(--muted); max-width: 60ch; }
.prose p + p { margin-top: var(--s3); }
.prose p strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; min-height: 44px; font: 600 var(--t-h3)/1.1 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; transition: rotate .4s var(--ease); }
.faq details[open] summary i { rotate: 45deg; }
.faq details p { color: var(--muted); max-width: 64ch; padding-bottom: var(--s3); font-size: var(--t-lead); }

/* Form */
.form { display: grid; gap: var(--s3); }
.form fieldset { border: 0; padding: 0; }
.form legend, .form label { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 17px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hint { color: var(--muted); font-size: 14px; }
.error { color: var(--accent); font-size: 14px; margin-top: 6px; }

/* Marquee wrapper spacing */
.marquee { margin-block: 0; }

/* 9. Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s4); background: var(--bg); }
.site-foot .big { font: 600 var(--t-h2)/1 var(--display); text-decoration: none; display: inline-block; margin-top: var(--s2); overflow-wrap: anywhere; }
.site-foot .big:hover { color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s4); margin-top: var(--s6); }
.foot-cols h4 { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: var(--s2); }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.foot-cols a { text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-cols a:hover { color: var(--accent); }
.foot-row { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* 10. Reveal */
.rv { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; translate: 0 0; }
.no-js .rv { opacity: 1; translate: 0; }

/* 11. Small screens */
@media (max-width: 899px) {
  .nav { display: none; position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; padding: var(--s2) var(--gutter) var(--s4); background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .stage { min-height: auto; padding-block: var(--s6); }
  .stage > .wrap, .app > .wrap, .head { grid-template-columns: 1fr; gap: var(--s4); }
  .stage > .wrap > .art { width: min(100%, 360px); max-height: none; }
  .art[data-small] { width: 200px; }
  .hero { padding-top: 100px; }
  .hero > .wrap > .art { width: min(78%, 320px); }
  .phones { height: 400px; padding: var(--s4) var(--s2) 0; gap: var(--s2); }
  .phone { --pw: min(37vw, 170px); }
  .phone:nth-child(2) { margin-top: var(--s5); }
  .rows a { grid-template-columns: 1fr 120px; gap: var(--s2); }
  .rows .no { display: none; }
  .rows .desc { display: none; }
  .cards, .grid3, .two { grid-template-columns: 1fr; }
  .cards > .card:first-child .phones { aspect-ratio: 4 / 3; }
  .deflist { grid-template-columns: 120px 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .site-foot .big { font-size: clamp(26px, 7.6vw, 40px); overflow-wrap: normal; }
  .tile { min-height: 0; padding: var(--s3); }
  .tile h3 { padding-top: var(--s3); }
  .foot-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; translate: 0; transition: none; }
  .btn, .link i, .rows figure img, .card figure img, .gallery img { transition: none; }
}

/* 12. Work page: an index, not a run of showcase sections.
   One dot drawing stays pinned on the left; the project list scrolls on the right and the drawing follows it. */
.hero h1 .ln { display: block; white-space: nowrap; }
.worklist { padding-top: 120px; }
.wl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); }
.wl-pin { position: sticky; top: 14svh; align-self: start; display: grid; gap: var(--s3); }
.wl-pin .art { width: 100%; max-height: min(60svh, 520px); }
.wl-now { display: flex; gap: 12px; color: var(--muted); }
.wl-now .n { color: var(--accent); }
.wl-intro { padding-block: var(--s6); }
.wl-intro h1 { font: 600 var(--t-hero)/.86 var(--display); letter-spacing: -.02em; margin-top: var(--s3); }
.wl-intro h1 .ac { color: var(--accent); }
.wl-intro .lead { font-size: var(--t-lead); color: var(--muted); max-width: 44ch; margin-top: var(--s4); }
.wl-jump { list-style: none; padding: 0; margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 8px; }
.wl-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 15px; transition: border-color .3s var(--ease); }
.wl-jump a:hover { border-color: var(--text); }
.wl-jump .mono { color: var(--accent); font-size: 11px; }
.wl-rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.wl-row { border-bottom: 1px solid var(--line); scroll-margin-top: 20svh; }
.wl-row > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "meta shot" "title shot" "kind shot" "desc shot" "link shot"; grid-template-rows: auto auto auto auto 1fr; column-gap: var(--s5); padding-block: var(--s5); text-decoration: none; }
.wl-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); }
.wl-meta .n { color: var(--accent); }
.wl-meta .status { text-transform: none; letter-spacing: 0; font: 500 13px/1 var(--body); color: var(--text); }
.wl-row h2 { grid-area: title; font: 600 clamp(36px, 3.3vw, 60px)/.9 var(--display); overflow-wrap: anywhere; text-transform: uppercase; margin-top: var(--s2); transition: color .4s var(--ease); }
.wl-kind { grid-area: kind; color: var(--muted); margin-top: var(--s1); }
.wl-desc { grid-area: desc; color: var(--muted); margin-top: var(--s2); max-width: 40ch; }
.wl-row .shot { grid-area: shot; align-self: start; aspect-ratio: 4 / 3; }
.wl-row .link { grid-area: link; align-self: end; margin-top: var(--s2); }
.wl-row .shot img { transition: transform .9s var(--ease); }
.wl-row > a:hover .shot img { transform: scale(1.03); }
.wl-row > a:hover h2, .wl-row.on h2 { color: var(--accent); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 899px) {
  .worklist { padding-top: 72px; }
  .wl { grid-template-columns: 1fr; gap: 0; }
  .wl-pin { display: none; }
  .wl-intro { padding-block: var(--s5); }
  .wl-row > a { grid-template-columns: 1fr; grid-template-areas: "shot" "meta" "title" "kind" "desc" "link"; grid-template-rows: none; padding-block: var(--s4); }
  .wl-row .shot { margin-bottom: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { .wl-row .shot img, .wl-row h2 { transition: none; } }

/* 13. About: story, fixes, one process timeline (not the home page's sections again) */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.story-photo { margin: 0; position: sticky; top: 14svh; }
.story-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.story-photo figcaption { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); color: var(--muted); font-size: 11px; }
.story h2, .fixes h2 { font: 600 var(--t-h1)/.9 var(--display); text-transform: uppercase; margin-top: var(--s2); }
.fixes .head .art { margin-bottom: var(--s3); width: 160px; }
.fixes { padding-bottom: var(--s5); }
.process-sec { padding-top: var(--s6); }
.fixes .head p strong { color: var(--text); }
.fx-list { list-style: none; padding: 0; columns: 3 320px; column-gap: var(--s3); }
.fx-list .fx { break-inside: avoid; margin-bottom: var(--s3); }
.fx[hidden] { display: none; }
.fx-app { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text); }
.fx-app img { width: 20px; height: 20px; border-radius: 6px; }
.fx-more { display: flex; flex-wrap: wrap; gap: 4px var(--s4); margin-top: var(--s2); }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.fx-n { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); }
.fx-n .n { color: var(--accent); }
.fx h3 { font: 600 var(--t-h3)/1.05 var(--display); text-transform: uppercase; }
.fx-pair { display: grid; grid-template-columns: 1fr; gap: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s3); }
.fx-pair .mono { color: var(--muted); margin-bottom: 8px; }
.fx-pair div:last-child .mono { color: var(--accent); }
.fx-pair p:not(.mono) { color: var(--text); font-size: 16px; }
.fx-vis { height: 132px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: var(--s3); overflow: hidden; }
/* contrast: the real FreshBit colours, lime #C8F550 and electric violet #5B2BFF on paper #F5F5F7 (rebrand 19 Nov 2026) */
.fx-contrast span { display: grid; justify-items: center; gap: 6px; padding: 14px 22px; border-radius: 12px; background: #F5F5F7; font: 600 20px/1 var(--body); }
.fx-contrast small { font: 500 11px/1 var(--mono); color: #55555F; }
.fx-contrast .bad { color: #C8F550; } .fx-contrast .good { color: #5B2BFF; }
.fx-brand { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: 0 var(--s3); }
.fx-pal { display: grid; grid-template-columns: 52px 1fr 1fr 1fr 1fr; align-items: center; gap: 6px; }
.fx-pal small { font: 500 12px/1 var(--mono); color: var(--muted); }
.fx-pal i { height: 34px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.fx-pal i.big { grid-column: span 2; }
/* motion: a stiff bounce next to a smooth morph */
.fx-col { flex: 1; max-width: 42%; height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding-bottom: 12px; }
.fx-col small { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx-motion .fx-bar { width: 80%; height: 30px; border-radius: 999px; background: var(--text); opacity: .18; animation: fx-bounce 2.4s cubic-bezier(.3, 1.8, .5, 1) infinite; }
.fx-col + .fx-col .fx-bar { opacity: .9; background: #C8F550; animation: fx-morph 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes fx-bounce { 0%, 20% { transform: translateY(16px) scaleX(1); } 55%, 100% { transform: translateY(-14px) scaleX(.7); } }
@keyframes fx-morph { 0%, 20% { transform: translateY(16px); width: 80%; border-radius: 999px; } 55%, 100% { transform: translateY(-14px); width: 56%; border-radius: 12px; } }
/* process: one timeline whose line fills as you scroll */
.process { --p: 0; position: relative; list-style: none; padding: var(--s4) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
.process::before, .process::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.process::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.process li { position: relative; padding-top: var(--s3); opacity: .35; transition: opacity .6s var(--ease); }
.process li::before { content: ""; position: absolute; top: calc(-1 * var(--s4) - 5px); left: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--bg); border: 2px solid var(--line); transition: background .4s, border-color .4s; }
.process li.on { opacity: 1; }
.process li.on::before { background: var(--accent); border-color: var(--accent); }
.process .mono { color: var(--accent); }
.process b { display: block; font: 600 var(--t-h3)/1 var(--display); text-transform: uppercase; margin-top: var(--s1); }
.process p { color: var(--muted); margin-top: var(--s1); font-size: 16px; }
@media (max-width: 899px) {
  .story { grid-template-columns: 1fr; gap: var(--s5); }
  .story-photo { position: static; max-width: 360px; }
  .fx-pair { grid-template-columns: 1fr; }
  .fx { padding: var(--s3); }
  .process { grid-template-columns: 1fr; padding: 0 0 0 var(--s4); gap: var(--s4); }
  .process::before, .process::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { transform-origin: top; transform: scaleY(var(--p)); }
  .process li { padding-top: 0; }
  .process li::before { top: 4px; left: calc(-1 * var(--s4) - 5px); }
}
@media (prefers-reduced-motion: reduce) { .fx-motion .fx-bar { animation: none; } .process li { opacity: 1; transition: none; } .process::after { transform: none; } }

/* Theme switch: only the circular reveal animates (as on the live site), never the browser's default crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (max-width: 820px) { body { padding-bottom: 84px; } }

/* 14. Brand gradient for the big accents (headline words, active states, the process line).
   Small text (numbers, labels, links) keeps the solid accent red for contrast, as the brand rules ask. */
.hero h1 .ac, .wl-intro h1 .ac, .copy h2 .ac { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-row > a:hover h2, .wl-row.on h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process::after { background: var(--grad); }
.process li.on::before { background: var(--grad); border-color: transparent; }
.marquee .marquee-track b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Portrait in a gradient ring, as on the live home page */
.me-chip { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; max-width: 560px; }
.me-chip img { flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; padding: 2px; border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; }
.me-chip b { color: var(--text); font-weight: 600; }
.hero .me-chip + h1 { margin-top: var(--s4); }
@media (max-width: 899px) { .me-chip { font-size: 15px; align-items: flex-start; } .me-chip img { width: 44px; height: 44px; } }

/* 15. Phones: the heading comes first, then its dot drawing, then the text.
   The copy column is unwrapped (display: contents) so its children and the drawing can be ordered together. */
@media (max-width: 899px) {
  .stage > .wrap { gap: 0; }
  .stage > .wrap > .copy { display: contents; }
  .stage > .wrap > * , .stage > .wrap > .copy > * { order: 4; }
  .stage > .wrap > .copy > .kicker, .stage > .wrap > .copy > .me-chip { order: 1; }
  .stage > .wrap > .copy > h1, .stage > .wrap > .copy > h2 { order: 2; }
  .stage > .wrap > .art, .stage.flip > .wrap > .art, .stage > .wrap > .copy > .art { order: 3; margin-block: var(--s4) var(--s1); justify-self: center; }
  .stage > .wrap > .copy > .art[data-small] { justify-self: start; width: 180px; }
  .stage > .wrap > .phones { order: 5; margin-top: var(--s5); }
  .stage > .wrap > .copy > h1, .stage > .wrap > .copy > h2 { max-width: 100%; }
  .stage > .wrap > .copy > .lead, .stage > .wrap > .copy > p.lead { margin-top: var(--s3); }
  .hero > .wrap > .art { width: min(72%, 300px); }
  .faq-stage > .wrap > .copy > .faq { margin-top: var(--s4) !important; }
  /* hero facts as a 2 x 2 grid */
  .hero .facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
  /* touch targets: at least 44 px tall */
  .foot-cols a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .foot-cols ul { gap: 0; }
  .site-foot .big { display: inline-flex; align-items: center; min-height: 44px; }
  .dock .dk-item, .dock .dk-item.theme-btn { width: 44px; height: 44px; }
}
/* labels never below 12 px */
.facts span, .wl-jump .mono, .story-photo figcaption, .fx-contrast small, .fx-col small { font-size: 12px; }

/* 16. Heroes on desktop: the drawing's top lines up with the headline's top, whatever the height of the text column */
@media (min-width: 900px) {
  .hero > .wrap { row-gap: 0; align-items: start; }
  .hero > .wrap > .copy { display: contents; }
  .hero > .wrap > .copy > * { grid-column: 1; max-width: 560px; }
  .hero > .wrap > .copy > .kicker, .hero > .wrap > .copy > .me-chip { grid-row: 1; }
  .hero > .wrap > .copy > h1 { grid-row: 2; }
  .hero > .wrap > .art { grid-column: 2; grid-row: 2 / span 4; align-self: start; margin-top: var(--s4); }
}

/* 17. The home hero fits in one screen on laptops: headline size and gaps follow the screen's height as well as its width */
@media (min-width: 900px) {
  .hero:has(.me-chip) { padding-top: clamp(84px, 11svh, 120px); padding-bottom: clamp(20px, 3svh, 40px); }
  .hero:has(.me-chip) h1 { font-size: clamp(52px, min(8.6vw, 10.4svh), 148px); }
  .hero:has(.me-chip) .lead { max-width: 52ch; }
  .hero:has(.me-chip) > .wrap > .copy > * { max-width: 600px; }
  .hero:has(.me-chip) .me-chip + h1 { margin-top: clamp(14px, 2.6svh, 32px); }
  .hero:has(.me-chip) > .wrap > .art { margin-top: clamp(14px, 2.6svh, 32px); max-height: min(60svh, 600px); }
  .hero:has(.me-chip) .lead { margin-top: clamp(12px, 2.2svh, 32px); }
  .hero:has(.me-chip) .btns { margin-top: clamp(16px, 3svh, 48px); }
  .hero:has(.me-chip) .facts { margin-top: clamp(16px, 3svh, 64px); padding-top: clamp(10px, 1.8svh, 24px); }
  .hero:has(.me-chip) .facts b { font-size: clamp(26px, 4.2svh, 40px); }
}
@media (min-width: 900px) and (max-height: 720px) {
  .hero:has(.me-chip) { padding-top: 72px; }
  .hero:has(.me-chip) h1 { font-size: clamp(48px, 9.4svh, 148px); }
}
/* FreshBit's real renders have no Dynamic Island: draw it at iPhone 17 Pro size (125 x 37 pt at 11 pt) */
.phones.fb .phone { position: relative; }
.phones.fb .phone::after { content: ""; position: absolute; left: calc(var(--pw) * .3561); top: calc(var(--pw) * .0627); width: calc(var(--pw) * .2878); height: calc(var(--pw) * .0851); border-radius: 999px; background: #000; }
