@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 499;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --paper: #F4EEE1;
  --paper-2: #EAE1CC;
  --ink: #191510;
  --signal: #C2451E;
  --muted: #6E6353;
  --rule: rgba(25, 21, 16, .18);
  --display: Fraunces, Georgia, serif;
  --sans: Archivo, Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --side: 300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
::selection { background: var(--paper-2); color: var(--signal); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
svg { display: block; }
ul, ol { padding: 0; margin: 0; }
section, article, footer, header { scroll-margin-top: 34px; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 1.6; letter-spacing: .055em; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: 10px; padding: 10px 18px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* The book's spine: fixed identity, moving section dot, and reading line. */
.rail { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--side); padding: 44px 34px 30px 36px; display: flex; flex-direction: column; border-right: 1px solid var(--rule); background: var(--paper); }
.wordmark { display: inline-block; font-family: var(--display); font-size: 58px; line-height: 1; font-weight: 600; letter-spacing: -.055em; }
.rail-descriptor { margin-top: 17px; font-size: 9px; letter-spacing: .045em; white-space: nowrap; }
.rail-nav { margin-top: 66px; }
.nav-list { position: relative; display: flex; flex-direction: column; gap: 8px; }
.nav-list a { position: relative; display: block; width: fit-content; padding: 3px 0 3px 18px; font-size: 20px; line-height: 1.5; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--signal); }
.nav-marker { position: absolute; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); transform: translate(0, 15px); transition: transform 350ms cubic-bezier(.2,.7,.2,1); }
.rail-intro { margin-top: auto; padding-top: 56px; }
.rail-intro > p { max-width: 214px; font-size: 14px; line-height: 1.65; }
.rail-instagram { display: block; width: fit-content; margin-top: 26px; font-size: 11px; text-underline-offset: 4px; }
.rail-instagram:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--signal); color: var(--paper); font-size: 13px; line-height: 1.5; padding: 15px 19px; border: 1px solid var(--signal); transition: transform 200ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline-offset: 4px; }
.rail-button { display: flex; margin-top: 22px; }
.rail-button span { font-size: 18px; line-height: 1; }
.rail-colophon { margin-top: 55px; max-width: 205px; color: var(--muted); font-size: 9px; line-height: 1.8; letter-spacing: .035em; }
.reading-track { position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; pointer-events: none; }
.reading-line { display: block; width: 100%; height: 100%; background: var(--signal); transform: scaleY(0); transform-origin: top; }

main { margin-left: var(--side); padding: 0 64px; max-width: 1740px; }
.masthead { padding: 51px 0 62px; }
.eyebrow { color: var(--muted); font-size: 10px; }
h1 { max-width: 960px; margin-top: 30px; font-family: var(--display); font-size: clamp(64px, 6.15vw, 104px); line-height: .99; letter-spacing: -.054em; font-weight: 500; }
.masthead-copy { margin-top: 29px; max-width: 713px; font-size: 16px; line-height: 1.65; }
.masthead-links { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 30px; }
.text-link { font-size: 13px; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.text-link:hover { color: var(--signal); border-color: currentColor; }
.section-label { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.work-index { margin-top: 20px; border-top: 1px solid var(--ink); }
.index-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 202px 47px 25px; align-items: center; column-gap: 14px; min-height: 78px; border-bottom: 1px solid var(--rule); padding: 10px 0; }
.index-number { color: var(--signal); font-size: 11px; }
.index-name { font-family: var(--display); font-size: clamp(25px, 2.35vw, 38px); line-height: 1.2; letter-spacing: -.045em; }
.index-type { font-size: 11px; line-height: 1.45; color: var(--muted); }
.index-year { font-size: 10px; color: var(--muted); }
.index-arrow { font-size: 25px; line-height: 1; justify-self: end; transform: translateX(-7px); opacity: .55; transition: transform 240ms ease, opacity 240ms ease; }
.index-row:hover, .index-row:focus-visible { background: var(--paper-2); }
.index-row:hover .index-name, .index-row:focus-visible .index-name { color: var(--signal); }
.index-row:hover .index-arrow, .index-row:focus-visible .index-arrow { transform: translateX(0); opacity: 1; color: var(--signal); }
.index-note { max-width: 610px; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.major-section { padding-top: 65px; border-top: 1px solid var(--ink); }
.services { margin-top: 16px; padding-bottom: 80px; }
.service-list { margin-top: 30px; list-style: none; }
.service-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.16fr); column-gap: 19px; align-items: baseline; padding: 24px 0; }
.service-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: left; }
.service-number { color: var(--signal); font-size: 10px; }
.service-row h3 { font-family: var(--display); font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.service-row p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.service-note { margin-top: 24px; max-width: 620px; font-size: 12px; color: var(--muted); }
.motion-ready .service-row::after { transform: scaleX(0); transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.motion-ready .service-row.is-visible::after { transform: scaleX(1); }
.process { padding-bottom: 85px; }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 38px; list-style: none; }
.process-list li { position: relative; padding-right: 24px; }
.process-node { position: relative; display: flex; align-items: center; margin-bottom: 25px; }
.process-node::after { content: ""; height: 1px; flex: 1; margin-left: 16px; background: var(--rule); }
.process-node .mono { color: var(--signal); font-size: 11px; }
.process-list li:last-child { padding-right: 0; }.process-list li:last-child .process-node::after { display: none; }
.process-list h3 { font-family: var(--display); font-size: 31px; letter-spacing: -.04em; line-height: 1.1; }
.process-list p { max-width: 200px; margin-top: 16px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.studio { padding-top: 72px; padding-bottom: 78px; }
.studio h2 { max-width: 920px; font-family: var(--display); font-size: clamp(48px, 4.9vw, 80px); line-height: 1.1; letter-spacing: -.05em; }
.studio > p { max-width: 550px; margin: 32px 0 0 auto; font-size: 14px; line-height: 1.8; }
.contact { padding-top: 58px; min-height: calc(100svh - 34px); display: flex; flex-direction: column; }
.contact-title { max-width: 1000px; margin-top: 32px; font-family: var(--display); font-size: clamp(60px, 6.1vw, 100px); line-height: 1.05; letter-spacing: -.05em; }
.footer-word { display: inline-block; }
.contact-details { margin: 30px 0 72px; display: flex; justify-content: space-between; gap: 35px; align-items: center; }
.contact-details > p { max-width: 440px; font-size: 14px; line-height: 1.75; }
.contact-button { flex-shrink: 0; padding: 18px 24px; font-size: 13px; }
.contact-actions { flex-shrink: 0; max-width: 100%; }
.contact-buttons { display: flex; gap: 14px; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--paper-2); }
.contact-reply { margin-top: 14px; color: var(--muted); }
.footer-colophon { margin-top: auto; padding: 22px 0 27px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 9px; line-height: 1.8; }
.motion-ready .footer-word { opacity: 0; transform: translateY(22px); transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 700ms ease; transition-delay: calc(var(--word) * 90ms); }
.motion-ready .contact.is-visible .footer-word { opacity: 1; transform: translateY(0); }

@media (min-width: 1740px) {
  main { padding-right: 80px; padding-left: 80px; }
}
@media (min-width: 960px) and (max-height: 780px) {
  .rail { padding-top: 30px; padding-bottom: 22px; }
  .rail-nav { margin-top: 36px; }
  .nav-list { gap: 4px; }
  .rail-intro { padding-top: 24px; }
  .rail-colophon { margin-top: 28px; }
}
@media (min-width: 960px) and (max-height: 620px) {
  .rail { overflow-y: auto; }
  .wordmark { font-size: 45px; }
  .rail-nav { margin-top: 24px; }
  .nav-list { gap: 0; }
  .nav-list a { font-size: 17px; }
  .rail-intro > p { font-size: 12px; }
  .rail-instagram { margin-top: 14px; }
  .rail-button { margin-top: 14px; padding-top: 10px; padding-bottom: 10px; }
  .rail-colophon { margin-top: 18px; }
}
@media (min-width: 960px) and (max-width: 1239px) {
  main { padding: 0 38px; }
  h1 { font-size: 72px; }
  .index-row { grid-template-columns: 26px minmax(0,1fr) 42px 20px; gap: 10px; }
  .index-name { font-size: 30px; }
  .index-name { grid-column: 2; }
  .index-type { display: block; grid-column: 2; grid-row: 2; }
  .index-year { grid-column: 3; grid-row: 1 / 3; }
  .index-arrow { grid-column: 4; grid-row: 1 / 3; }
  .service-row { grid-template-columns: 24px minmax(0,1fr); gap: 8px 16px; }
  .service-row p { grid-column: 2; }
  .process-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 20px; }
  .process-list li { padding-right: 0; }
  .process-list li:nth-child(2) .process-node::after { display: none; }
  .contact-details { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 959px) {
  html { scroll-padding-top: 0; }
  section, article, footer, header { scroll-margin-top: 145px; }
  .rail { position: sticky; inset: 0 0 auto; width: 100%; padding: 20px 26px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rail-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .wordmark { font-size: 37px; }
  .rail-descriptor { margin: 0; font-size: 8px; }
  .rail-nav { margin-top: 17px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .nav-list { flex-direction: row; gap: 23px; width: max-content; }
  .nav-list a { padding: 4px 0 4px 12px; font-size: 13px; }
  .nav-marker { width: 4px; height: 4px; }
  .rail-intro, .rail-colophon { display: none; }
  .reading-track { top: auto; bottom: -1px; left: 0; right: 0; height: 2px; width: 100%; }
  .reading-line { transform: scaleX(0); transform-origin: left; }
  main { margin-left: 0; padding: 0 36px; }
  .masthead { padding: 45px 0 51px; }
  h1 { font-size: clamp(62px,10vw,86px); }
  .masthead-copy { max-width: 650px; font-size: 15px; }
  .index-row { grid-template-columns: 28px minmax(0,1fr) 160px 39px 22px; gap: 10px; }
  .index-name { font-size: 29px; }
  .index-type { font-size: 10px; }
  .major-section { padding-top: 45px; }
  .service-row h3 { font-size: 23px; }
  .studio h2 { font-size: clamp(46px,7.4vw,68px); }
  .contact-title { font-size: clamp(56px,9vw,82px); }
  .contact { min-height: calc(100svh - 145px); }
}

@media (max-width: 699px) {
  main { padding: 0 24px; }
  .masthead { padding-top: 38px; }
  .eyebrow { font-size: 8px; letter-spacing: .04em; }
  h1 { margin-top: 26px; font-size: clamp(49px,10.5vw,72px); line-height: 1.02; }
  .masthead-copy { margin-top: 24px; font-size: 14px; line-height: 1.75; }
  .masthead-links { gap: 26px; margin-top: 22px; }
  .text-link { font-size: 12px; }
  .section-label { font-size: 8px; line-height: 1.8; }
  .work-index { margin-top: 16px; }
  .index-row { grid-template-columns: 21px minmax(0,1fr) 30px 16px; gap: 8px; min-height: 85px; padding: 14px 0; }
  .index-number { font-size: 9px; align-self: start; margin-top: 3px; }
  .index-name { grid-column: 2; font-size: clamp(22px,5vw,29px); }
  .index-type { display: block; grid-column: 2; grid-row: 2; font-size: 9px; }
  .index-year { grid-column: 3; grid-row: 1 / 3; font-size: 8px; }
  .index-arrow { grid-column: 4; grid-row: 1 / 3; font-size: 20px; transform: translateX(-3px); }
  .index-note { font-size: 10px; line-height: 1.7; margin-top: 17px; }
  .services { margin-top: 5px; padding-bottom: 48px; }
  .service-list { margin-top: 18px; }
  .service-row { grid-template-columns: 20px minmax(0,1fr); gap: 9px 13px; padding: 21px 0; }
  .service-number { font-size: 9px; }
  .service-row h3 { font-size: 24px; }
  .service-row p { grid-column: 2; font-size: 12px; }
  .service-note { margin-top: 22px; font-size: 11px; }
  .process { padding-bottom: 49px; }
  .process-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 31px 20px; margin-top: 27px; }
  .process-list li { padding-right: 0; }
  .process-list li:nth-child(2) .process-node::after { display: none; }
  .process-node { margin-bottom: 18px; }
  .process-list h3 { font-size: 28px; }
  .process-list p { margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .studio { padding-top: 45px; padding-bottom: 45px; }
  .studio h2 { font-size: clamp(41px,8.6vw,58px); line-height: 1.12; }
  .studio > p { margin-top: 25px; font-size: 13px; line-height: 1.8; }
  .contact { padding-top: 38px; }
  .contact-title { margin-top: 22px; font-size: clamp(49px,10vw,70px); line-height: 1.08; }
  .contact-details { flex-direction: column; align-items: flex-start; gap: 23px; margin: 25px 0 43px; }
  .contact-details > p { font-size: 13px; }
  .contact-button { padding: 16px 19px; font-size: 12px; }
  .contact-buttons { flex-direction: column; }
  .footer-colophon { padding: 20px 0; font-size: 8px; }
}

/* Work: browser captures, a loose mobile print, and a close look at each menu. */
html, body { overflow-x: clip; }
.index-type { font-family: var(--mono); font-size: 10px; }
.case-studies { margin-top: 83px; }
.case-panel { min-width: 0; padding: 0 0 76px; }
.case-panel + .case-panel { border-top: 1px solid var(--rule); padding-top: 42px; }
.case-heading { display: grid; grid-template-columns: 26px minmax(0, 1fr) 170px 38px 24px; align-items: center; column-gap: 15px; margin-bottom: 27px; }
.case-number { color: var(--signal); font-size: 11px; }
.case-heading h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 46px); line-height: 1.1; letter-spacing: -.045em; }
.case-type { color: var(--muted); font-size: 9px; line-height: 1.6; }
.case-year { color: var(--muted); }
.case-arrow { font-size: 25px; justify-self: end; }
.image-stage { position: relative; min-width: 0; padding-right: 48px; margin-bottom: 88px; }
.browser-frame { border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 0 12px 30px rgb(25 21 16 / 12%); overflow: hidden; }
.browser-bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--ink); }
.browser-bar i { width: 5px; height: 5px; border: 1px solid var(--muted); border-radius: 50%; }
.hero-viewport, .detail-frame { aspect-ratio: 16 / 10; }
.case-hero, .detail-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mobile-print { position: absolute; z-index: 1; width: 160px; right: 0; bottom: -48px; margin: 0; padding: 7px 7px 17px; background: #fff; box-shadow: 0 10px 28px rgb(25 21 16 / 12%); rotate: -2deg; }
.mobile-print img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.case-detail-row { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 32px; align-items: center; }
.detail-frame { border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; }
.case-info { min-width: 0; }
.case-description { font-size: 14px; line-height: 1.8; }
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 15px; margin-top: 23px; }
.swatches li { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.swatches span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); border: 1px solid rgb(25 21 16 / 16%); }
.type-note { margin-top: 19px; font-family: var(--mono); color: var(--muted); font-size: 10px; line-height: 1.8; }
.motion-ready [data-work-reveal] { opacity: 0; transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s ease; transition-delay: calc(var(--order, 0) * 90ms); }
.motion-ready [data-work-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (min-width: 960px) and (max-width: 1239px) {
  .case-heading { grid-template-columns: 24px minmax(0,1fr) 36px 20px; gap: 9px 12px; }
  .case-heading h3 { grid-column: 2; font-size: 34px; }
  .case-type { grid-column: 2; grid-row: 2; }
  .case-year { grid-column: 3; grid-row: 1 / 3; }
  .case-arrow { grid-column: 4; grid-row: 1 / 3; }
  .mobile-print { width: 150px; }
  .case-detail-row { gap: 24px; }
  .case-description { font-size: 13px; }
}
@media (max-width: 959px) {
  .case-heading { grid-template-columns: 24px minmax(0,1fr) 140px 35px 20px; gap: 12px; }
  .case-heading h3 { font-size: 32px; }
  .case-type { font-size: 8px; }
  .case-detail-row { gap: 24px; }
  .case-description { font-size: 13px; }
}
@media (max-width: 699px) {
  .case-studies { margin-top: 50px; }
  .case-panel { padding-bottom: 45px; }
  .case-panel + .case-panel { padding-top: 31px; }
  .case-heading { grid-template-columns: 19px minmax(0,1fr) 30px 16px; gap: 5px 8px; margin-bottom: 22px; }
  .case-number { font-size: 9px; align-self: start; padding-top: 3px; }
  .case-heading h3 { grid-column: 2; font-size: clamp(24px, 6vw, 32px); }
  .case-type { grid-column: 2; grid-row: 2; font-size: 8px; }
  .case-year { grid-column: 3; grid-row: 1 / 3; font-size: 8px; }
  .case-arrow { grid-column: 4; grid-row: 1 / 3; font-size: 20px; }
  .image-stage { padding-right: 19px; margin-bottom: 130px; }
  .browser-bar { height: 19px; gap: 4px; padding-inline: 7px; }
  .browser-bar i { width: 4px; height: 4px; }
  .mobile-print { width: 112px; bottom: -100px; padding: 5px 5px 12px; }
  .case-detail-row { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .case-description { font-size: 14px; line-height: 1.75; }
  .swatches { margin-top: 22px; gap: 10px 13px; }
  .swatches li { font-size: 9px; }
  .type-note { margin-top: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-work-reveal], .motion-ready [data-work-reveal] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* One complete reduced-motion override: instant content; no travel or loops.
   JS also stops scheduling reading-line transforms and skips reveal observers. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .motion-ready .footer-word,
  .footer-word,
  .index-arrow,
  .button {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-ready .service-row::after { transform: scaleX(1) !important; }
  .nav-marker { transition: none !important; }
  .reading-line { transform: none !important; opacity: 0 !important; }
  .skip-link { transition: none !important; }
}
