/* ==========================================================================
   Paper Dart Creative — design system v1
   Paper white. Ink black. Things that move.
   ========================================================================== */

:root {
  --paper: #F6F5F1;
  --ink: #0C0C0C;
  --ink-soft: #1A1A1A;
  --muted: #6B6963;
  --line: #E2E0DA;
  --line-dark: #2A2A2A;
  --muted-dark: #9A978F;
  --font-display: "Archivo", "Inter Tight", sans-serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --track: -0.035em;
  --track-tighter: -0.045em;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem; --s11: 12rem;
  --max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper); color: var(--ink);
  line-height: 1.55; font-size: 17px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 18px; } }
::selection { background: var(--ink); color: var(--paper); }

/* --- type --- */
.display-xl, .display-l, .display-m, h1, h2 {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: var(--track-tighter); line-height: 0.92;
  text-transform: uppercase;
}
.display-xl { font-size: clamp(3.2rem, 11vw, 10rem); font-weight: 900; }
.display-l  { font-size: clamp(2.4rem, 6.5vw, 5.5rem); font-weight: 900; }
.display-m  { font-size: clamp(1.7rem, 4vw, 3.4rem); }
.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; letter-spacing: -0.01em; max-width: 58ch; }
p { max-width: 66ch; }
strong, b { font-weight: 600; }
.muted { color: var(--muted); }
.mt-2{margin-top:var(--s2)} .mt-4{margin-top:var(--s4)} .mt-5{margin-top:var(--s5)}
.mt-6{margin-top:var(--s6)} .mt-7{margin-top:var(--s7)} .mt-8{margin-top:var(--s8)}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--s10) 0; }
@media (max-width: 767px) { .section { padding: var(--s8) 0; } }

/* --- header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .3s ease, border-color .3s ease, transform .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) 0; }
.nav-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 900; letter-spacing: var(--track); font-size: 1rem; text-transform: uppercase; line-height: 1; }
.nav-brand svg { width: 26px; height: auto; transition: transform .4s var(--ease-out); }
.nav-brand:hover svg { transform: translate(3px, -3px); }
.nav-list { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.nav-list a { font-weight: 500; font-size: .92rem; position: relative; padding: var(--s2) 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--ink); transition: right .3s var(--ease-out); }
.nav-list a:hover::after, .nav-list a.is-current::after { right: 0; }
.nav-cta { border: 1.5px solid var(--ink); padding: .45rem 1rem !important; border-radius: 99px; font-weight: 600 !important; transition: background .2s ease, color .2s ease; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.on-dark .site-header.is-scrolled { background: color-mix(in srgb, var(--ink) 88%, transparent); border-bottom-color: var(--line-dark); }

/* --- hero --- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding: var(--s11) 0 var(--s7); overflow: clip; }
.hero-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--s5); }
.hero-kicker .rule { width: 48px; height: 2px; background: var(--ink); transform-origin: left; }
.hero h1 { position: relative; z-index: 2; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: riseUp 1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes riseUp { to { transform: translateY(0); } }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-top: var(--s6); border-top: 1px solid var(--ink); padding-top: var(--s5); }
.hero-sub .lede { max-width: 44ch; }
.hero-scroll { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: .5rem; }
.hero-scroll .arr { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

/* flight path + dart in hero */
.flight { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flight path.trail { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 8; opacity: .35; }
.dart-flyer { position: absolute; width: clamp(40px, 5vw, 72px); z-index: 2; offset-rotate: auto; will-change: transform; }

/* --- marquee (trusted by) --- */
.trust { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); position: relative; z-index: 3; padding: var(--s5) 0 var(--s5); }
.trust .eyebrow { text-align: center; display: block; margin-bottom: var(--s4); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: clamp(1.75rem, 3vw, 3rem); padding-right: clamp(1.75rem, 3vw, 3rem); }
.logo-chip { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.logo-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.logo-chip em { font-style: normal; font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: var(--ink-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- manifesto --- */
.manifesto { position: relative; }
.manifesto-inner { max-width: 880px; }
.manifesto .big {
  font-family: var(--font-display); font-weight: 800; text-transform: none;
  font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: var(--track);
  max-width: 24ch;
}
.manifesto p.body-text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.manifesto p.body-text + p.body-text { margin-top: var(--s5); }
.manifesto .beat {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: var(--track);
  font-size: clamp(1.9rem, 5vw, 4.2rem); line-height: .95; margin: var(--s8) 0;
}
.manifesto .beat .word { display: inline-block; }
.manifesto .footnote { font-size: .9rem; font-style: italic; color: var(--muted); margin-top: var(--s7); max-width: 48ch; }

/* --- positioning --- */
.positioning { border-top: 1.5px solid var(--ink); }
.split { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 4fr; gap: var(--s9); align-items: start; } }

/* --- hero footnote --- */
.hero-footnote { margin-top: var(--s4); font-size: .92rem; font-style: italic; color: var(--muted); max-width: 52ch; }

/* --- work with us --- */
.offers { border-top: 1.5px solid var(--ink); }
.offer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); margin-top: var(--s7); }
@media (min-width: 860px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer { border-top: 1.5px solid var(--ink); padding-top: var(--s4); }
.offer .num { font-size: .75rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.offer h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--track); font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-top: var(--s2); }
.offer .get { margin-top: var(--s3); font-size: .95rem; color: var(--ink-soft); }
.offer .get strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.offer-cta { margin-top: var(--s7); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* --- non-cropping media --- */
.case-row .media.contain img { object-fit: contain; background: #161616; }
.media-grid figure.native { aspect-ratio: auto; grid-column: 1 / -1; background: transparent; }
.media-grid figure.native img { height: auto; }

/* --- dark work section --- */
.work-dark { background: var(--ink); color: var(--paper); position: relative; }
.work-dark .eyebrow { color: var(--muted-dark); }
.work-dark .muted { color: var(--muted-dark); }
.case-list { margin-top: var(--s7); border-top: 1px solid var(--line-dark); }
.case-row { display: grid; grid-template-columns: 1fr; gap: var(--s4); padding: var(--s6) 0; border-bottom: 1px solid var(--line-dark); position: relative; align-items: center; transition: padding-left .35s var(--ease-out); }
@media (min-width: 900px) { .case-row { grid-template-columns: 90px 1fr 340px 40px; gap: var(--s6); } }
.case-row:hover { padding-left: var(--s4); }
.case-row .num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--muted-dark); }
.case-row h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--track); font-size: clamp(1.5rem, 3.4vw, 2.75rem); line-height: .95; }
.case-row .tag { margin-top: var(--s2); font-size: .85rem; color: var(--muted-dark); }
.case-row .media { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: #161616; }
.case-row .media img, .case-row .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), opacity .4s ease; }
.case-row .media video { position: absolute; inset: 0; opacity: 0; }
.case-row:hover .media video.loaded { opacity: 1; }
.case-row:hover .media img { transform: scale(1.04); }
.case-row .go { font-size: 1.4rem; transition: transform .35s var(--ease-out); }
.case-row:hover .go { transform: translate(6px, -6px); }
.case-row .type-tile { display: flex; align-items: center; justify-content: center; background: #161616; }
.case-row .type-tile span { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: var(--track); font-size: 1.1rem; color: var(--paper); opacity: .85; text-align: center; padding: 0 1rem; line-height: 1.1; }

/* --- stats band --- */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s8); }
@media (min-width: 800px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line-dark); padding-top: var(--s4); }
.on-light .stat { border-top-color: var(--ink); }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: var(--track-tighter); line-height: 1; }
.stat .l { margin-top: var(--s2); font-size: .85rem; color: var(--muted-dark); }
.on-light .stat .l { color: var(--muted); }

/* --- principal --- */
.principal-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
@media (min-width: 860px) { .principal-grid { grid-template-columns: 380px 1fr; gap: var(--s9); align-items: center; } }
.principal-photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.principal-photo:hover img { transform: scale(1.03); }
.principal-copy p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; }
.principal-copy p + p { margin-top: var(--s4); }

/* --- contact --- */
.contact { border-top: 1.5px solid var(--ink); text-align: center; }
.contact p, .contact .eyebrow { margin-inline: auto; }
.contact .big-link {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: var(--track); line-height: 1;
  font-size: clamp(1.15rem, 4.6vw, 3.6rem);
  display: inline-block; position: relative; margin-top: var(--s5);
  max-width: 100%; overflow-wrap: anywhere;
}
.contact .big-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 4px; background: var(--ink); transition: right .4s var(--ease-out); }
.contact .big-link:hover::after { right: 0; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0; font-size: .85rem; color: var(--muted); }
.work-dark + .site-footer, .site-footer.dark { background: var(--ink); color: var(--muted-dark); border-top-color: var(--line-dark); }
.site-footer .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.site-footer a { border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: currentColor; }

/* ==========================================================================
   Work page
   ========================================================================== */
.work-hero { padding: var(--s11) 0 var(--s8); }
.case-study { padding: var(--s9) 0; border-top: 1.5px solid var(--ink); }
.case-study .case-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.case-study h2 { font-size: clamp(2rem, 5.5vw, 4.5rem); max-width: 20ch; }
.case-section { display: grid; grid-template-columns: 1fr; gap: var(--s4); margin-top: var(--s7); }
@media (min-width: 900px) { .case-section { grid-template-columns: 220px 1fr; gap: var(--s8); } }
.case-section h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case-section .body p { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; }
.case-section .body p + p { margin-top: var(--s4); }
.case-section .body .layer + .layer { margin-top: var(--s5); }
.layer-label { font-weight: 700; letter-spacing: -0.01em; }

.stat-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.stat-block { border-top: 1.5px solid var(--ink); padding-top: var(--s4); }
.stat-block .stat-name { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--s3); }
.stat-block .stat-line { font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.45; font-weight: 500; }

.insight { margin-top: var(--s8); border-top: 1.5px solid var(--ink); padding-top: var(--s5); }
.insight .label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.insight p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: var(--track); line-height: 1.05; margin-top: var(--s3); max-width: 24ch; text-transform: uppercase; }
.attribution { margin-top: var(--s6); font-style: italic; color: var(--muted); font-size: .95rem; }

.media-grid { display: grid; gap: var(--s3); margin-top: var(--s7); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .media-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.media-grid figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1/1; background: #EAE8E2; margin: 0; }
.media-grid figure.wide { grid-column: span 2; aspect-ratio: 16/9; }
.media-grid figure.full { grid-column: 1 / -1; aspect-ratio: 21/9; }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.media-grid figure:hover img { transform: scale(1.04); }
.media-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .85rem .6rem; font-size: .75rem; letter-spacing: .05em; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .3s ease; }
.media-grid figure:hover figcaption { opacity: 1; }

/* --- out in the wild (click-out collage) --- */
.wild-group { padding: var(--s7) 0 0; }
.wild-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s5); }
.wild-head h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--track); font-size: clamp(1.3rem, 2.6vw, 2rem); }
.wild-head .role-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.wild-group > p { margin-top: var(--s3); color: var(--ink-soft); }
.wild-collage { column-count: 2; column-gap: clamp(.75rem, 1.6vw, 1.15rem); margin-top: var(--s5); }
@media (min-width: 780px) { .wild-collage { column-count: 3; } }
@media (min-width: 1200px) { .wild-collage { column-count: 4; } }
.wild-item { break-inside: avoid; margin-bottom: clamp(.75rem, 1.6vw, 1.15rem); display: block; position: relative; border-radius: 4px; overflow: hidden; transition: transform .3s var(--ease-out); }
.wild-item img { width: 100%; height: auto; }
.wild-item:hover { transform: translateY(-3px); }
a.wild-item::after { content: "\2197"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(12,12,12,.72); color: var(--paper); border-radius: 50%; font-size: .8rem; transition: background .2s ease; }
a.wild-item:hover::after { background: rgba(12,12,12,.95); }
.wild-credit { margin-top: .3rem; font-size: .75rem; font-style: italic; color: var(--muted); }

/* --- hangar / dart of the day --- */
.hangar-hero { padding: var(--s11) 0 var(--s7); }
.hangar-card { margin-top: var(--s7); border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 1fr; background: #FFFEFB; }
@media (min-width: 880px) { .hangar-card { grid-template-columns: 1.1fr 1fr; } }
.hangar-visual { background: repeating-linear-gradient(-45deg, #F1EFE9, #F1EFE9 16px, #ECEAE3 16px, #ECEAE3 32px); display: flex; align-items: center; justify-content: center; padding: var(--s6); min-height: 320px; }
.hangar-visual img { max-width: 100%; max-height: 420px; width: auto; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.14)); }
.hangar-info { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); border-top: 1.5px solid var(--ink); }
@media (min-width: 880px) { .hangar-info { border-top: none; border-left: 1.5px solid var(--ink); } }
.hangar-info h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.spec-list { border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; align-self: center; }
.spec-list .v { font-weight: 600; text-align: right; }
.hangar-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: auto; }
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid var(--ink); border-radius: 99px; padding: .55rem 1.2rem; font-weight: 600; font-size: .92rem; transition: background .2s ease, color .2s ease, transform .15s ease; }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--ink-soft); }
.hangar-note { font-size: .85rem; color: var(--muted); font-style: italic; }

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-line { transition-delay: calc(var(--i, 0) * 90ms); }

/* --- mobile nav: keep it to the essentials --- */
@media (max-width: 720px) {
  .nav-list { gap: .8rem; }
  .nav-list a { font-size: .84rem; }
  .nav-list li:nth-child(2), .nav-list li:nth-child(3) { display: none; } /* Manifesto + Studio collapse; content still reachable by scroll */
  .nav-brand { font-size: .9rem; }
  .nav-brand img { width: 24px !important; }
  .nav-cta { white-space: nowrap; padding: .4rem .8rem !important; }
}
/* below 580px the wordmark yields to the dart alone */
@media (max-width: 580px) {
  .nav-brand .brand-text { display: none; }
  .nav-brand img { width: 30px !important; }
  .nav-list { gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
