/* By Design Co. work site. Brand Guidelines v2.0 Light-Led. */
:root {
  --cream: #F5F0E5;
  --cream-deep: #ECE4D3;
  --warm-white: #FCFAF4;
  --hairline: #E0D6C4;
  --ink: #1A0F0A;
  --muted: #5C4F44;
  --orange: #F87B1B;
  --orange-deep: #C85A0A;
  --yellow: #FFCB05;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--warm-white); padding: 8px 14px; z-index: 50; }

/* Wordmark */
.logo { font-family: var(--serif); font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo em { color: var(--orange); }
.logo sup { font-family: var(--sans); font-size: 10px; font-weight: 600; margin-left: 2px; vertical-align: super; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245, 240, 229, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } .site-nav { gap: 16px; } .logo { font-size: 22px; } }

/* Buttons */
.btn { display: inline-block; white-space: nowrap; font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink); transition: background-color .15s, color .15s; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--warm-white); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--muted); max-width: var(--measure); }
.small { font-size: 15px; color: var(--muted); }
.kicker { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }

/* Hero */
.hero { padding: clamp(64px, 11vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(46px, 8.4vw, 124px); max-width: 13ch; }
.hero .hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.hero .manifesto { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; max-width: 30ch; margin: 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .lede { margin-top: 28px; }
@media (max-width: 760px) { .hero .hero-foot { grid-template-columns: 1fr; } }

/* Section scaffolding */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.band-deep { background: var(--cream-deep); }

/* Work index: the memorable move */
.work-list { list-style: none; margin: 0; padding: 0; }
.work-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.work-row:first-child { padding-top: 0; }
.work-row:nth-child(even) .work-media { order: -1; }
.work-row h3 { font-size: clamp(40px, 5.4vw, 80px); transition: color .15s; }
.work-row .meta { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.work-row .summary { margin: 18px 0 22px; max-width: 40ch; font-size: 19px; }
.work-row .read { font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.work-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); border-radius: 4px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-row:hover h3 { color: var(--orange-deep); }
.work-row:hover .work-media img { transform: scale(1.03); }
@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; }
  .work-row:nth-child(even) .work-media { order: 0; }
  .work-row .work-media { order: -1; }
}

/* Archive list */
.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.archive a { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.archive .name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); }
.archive .what { color: var(--muted); font-size: 16px; }
.archive .go { font-size: 15px; font-weight: 600; }
.archive a:hover .name { color: var(--orange-deep); }
@media (max-width: 640px) { .archive a { grid-template-columns: 1fr auto; } .archive .what { grid-column: 1; grid-row: 2; } .archive .go { grid-row: 1 / 3; grid-column: 2; align-self: center; } }

/* Video facades */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.video-feature { margin-bottom: 40px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--ink); cursor: pointer; overflow: hidden; border-radius: 4px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.yt .play::after { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.yt iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--ink); }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .portrait { border-radius: 4px; overflow: hidden; background: var(--cream-deep); }
.about-copy p { max-width: var(--measure); margin: 0 0 20px; }
.about-copy .big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; margin-bottom: 28px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.timeline .yr { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 16px; }
.awards { margin: 32px 0 0; padding-left: 1.1em; font-size: 16px; color: var(--muted); }
.awards li { margin-bottom: 6px; }
.awards li::marker { color: var(--orange-deep); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait { max-width: 420px; } }

/* Ink band: one per page */
.ink { background: var(--ink); color: var(--cream); }
.ink .muted { color: rgba(245, 240, 229, 0.7); }
.cta { padding: clamp(72px, 10vw, 136px) 0; }
.cta h2 { font-size: clamp(36px, 5vw, 72px); max-width: 18ch; }
.cta h2 em { color: var(--orange); }
.cta p { max-width: 48ch; margin: 24px 0 36px; }
.cta .btn-quiet { color: var(--cream); border-color: var(--cream); }
.cta .btn-quiet:hover { background: var(--cream); color: var(--ink); }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ink :focus-visible { outline-color: var(--yellow); }

/* Footer */
.site-foot { padding: 40px 0 48px; border-top: 1px solid var(--hairline); font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { color: var(--muted); width: 100%; margin: 0; }

/* Case study */
.crumb { display: inline-block; margin-top: 32px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.case-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.case-hero h1 { font-size: clamp(52px, 9vw, 132px); }
.case-hero .lede { margin-top: 24px; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1.5px solid var(--ink); }
.facts dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; gap: 14px; } }
.cover { border-radius: 4px; overflow: hidden; background: var(--cream-deep); max-height: 78vh; }
.cover img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }

.story { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--hairline); }
.story:first-child { border-top: 1px solid var(--hairline); }
.story h2 { font-size: clamp(28px, 2.8vw, 38px); }
.story p, .story ul { margin: 0; max-width: var(--measure); }
.story ul { padding-left: 1.1em; }
.story li { margin-bottom: 10px; }
.story li::marker { color: var(--orange-deep); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; gap: 12px; } }

.results { padding: clamp(56px, 8vw, 104px) 0; }
.results h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 0; }
.stats div { border-top: 1px solid rgba(245, 240, 229, 0.25); padding-top: 16px; }
.stats dt { font-family: var(--serif); font-size: clamp(48px, 5.4vw, 76px); line-height: 1; color: var(--orange); }
.stats dd { margin: 10px 0 0; max-width: 28ch; }
.outcomes { margin: 0; padding-left: 1.1em; font-size: 20px; }
.outcomes li { margin-bottom: 10px; }
.outcomes li::marker { color: var(--orange); }
.kept { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 229, 0.25); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); }
.kept h3 { font-size: clamp(24px, 2.4vw, 32px); }
.kept p { margin: 0; font-size: 20px; max-width: var(--measure); }
@media (max-width: 760px) { .kept { grid-template-columns: 1fr; gap: 10px; } }

.pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; max-width: 30ch; margin: 0; padding: clamp(48px, 7vw, 96px) 0 0; }
.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--muted); margin-top: 16px; }

.gallery { columns: 3 300px; column-gap: 20px; }
.gallery button { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; background: var(--cream-deep); cursor: zoom-in; break-inside: avoid; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; height: auto; }

.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(40px, 6vw, 72px) 0; border-top: 1.5px solid var(--ink); text-decoration: none; flex-wrap: wrap; }
.next .label { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.next .title { font-family: var(--serif); font-size: clamp(40px, 6vw, 88px); line-height: 1; }
.next:hover .title { color: var(--orange-deep); }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(26, 15, 10, 0.94); }
.lightbox::backdrop { background: rgba(26, 15, 10, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox .lb-btn { position: fixed; background: var(--cream); color: var(--ink); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; font-family: var(--sans); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox .lb-count { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--cream); font-size: 14px; }
@media (max-width: 640px) { .lightbox img { max-width: 100vw; max-height: calc(100vh - 160px); } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 56px; margin: 0; } }
