/*
  Poster pattern: light grey paper, a heavy serif, typewriter details, huge
  condensed lettering in orange-red, menu down the left edge, links down the right.
*/
:root {
  --bg: #ececec;
  --ink: #171413;
  --soft: #524d4a;
  --line: #cbc7c4;
  --accent: #e4553a;         /* big lettering and artwork */
  --accent-ink: #ab3620;     /* small red text on grey */
  --accent-light: #ff7a5e;   /* red text on black */
  --tint: #f5d8d1;
  --serif: "Young Serif", Georgia, serif;
  --type: "Courier Prime", "Courier New", monospace;
  --cond: "Big Shoulders Display", Impact, sans-serif;
  --sans: Archivo, system-ui, sans-serif;
  --rail: clamp(66px, 6.5vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
canvas { display: block; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }
main { padding: 0 var(--rail); }

/* frame */
.logo { position: fixed; left: 0; top: 22px; z-index: 40; width: var(--rail); text-align: center; font: 900 50px/1 var(--cond); letter-spacing: -.01em; text-transform: uppercase; }
.rail { position: fixed; left: 0; top: 110px; bottom: 30px; z-index: 40; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; }
.rail a { writing-mode: vertical-rl; padding: 6px 4px; font: 700 15px/1 var(--type); text-transform: uppercase; transition: color .2s; }
.rail a:hover, .rail a.is-on { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.side { position: fixed; right: 0; top: 0; bottom: 0; z-index: 40; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.side a { pointer-events: auto; }
.side__link { font: 400 22px/1 var(--serif); padding: 4px; transition: color .2s, translate .2s; }
.side__link:hover { color: var(--accent-ink); translate: 0 -3px; }
.langs { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 26px; }
.langs a { padding: 3px 7px; font: 700 14px/1.2 var(--type); }
.langs a:hover { background: var(--tint); }
.langs a[aria-current] { background: var(--ink); color: #fff; }

/* hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.wordmark { position: absolute; top: 24px; right: 4px; z-index: 2; font: 400 clamp(30px, 3.6vw, 56px)/1.1 var(--serif); letter-spacing: -.02em; }
.hero__info { position: absolute; left: 56%; top: 17%; width: 42%; pointer-events: none; }
.uiux { display: block; width: min(100%, 440px, 46vh); height: auto; fill: var(--accent); overflow: visible; }
.hero__role { margin-top: 20px; font: 400 min(4vw, 6.4vh, 66px)/1.14 var(--serif); letter-spacing: -.01em; text-transform: uppercase; }
.hero__role strong { font-weight: 400; color: #fff; padding: 0 .1em; background: linear-gradient(var(--accent), var(--accent)) left / 100% 100% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__role::after { content: ""; display: block; width: 16px; height: 3px; margin: 12px 0 10px; background: var(--ink); }
.hero__lines { font: 700 clamp(14px, 1.3vw, 19px)/1.3 var(--type); text-transform: uppercase; }
.hero__lines span { display: block; }
.hero__tagline { position: absolute; left: 54%; top: 50%; translate: 0 -48%; width: 44%; pointer-events: none; }
.hero__big { font: 400 clamp(26px, 2.8vw, 46px)/1.22 var(--serif); }
.hero__intro { margin-top: 22px; font-size: clamp(15px, 1.25vw, 19px); color: var(--soft); }
.hero__intro strong { color: var(--ink); }
.hero__tagline span { background: linear-gradient(var(--accent), var(--accent)) left / 0 100% no-repeat; transition: background-size .35s, color .35s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__tagline span.is-lit { background-size: 100% 100%; color: #fff; }
.cascade { position: absolute; left: 3%; bottom: 3.5vh; z-index: 2; font-family: var(--serif); }
.cascade li { width: max-content; line-height: .86; letter-spacing: -.025em; transition: color .25s; cursor: default; }
.cascade li:hover, .cascade li.is-on { color: var(--accent); }
.cascade li:nth-child(1) { font-size: min(2.6vw, 4.4vh); }
.cascade li:nth-child(2) { font-size: min(3.7vw, 6.2vh); margin-left: 1.1em; }
.cascade li:nth-child(3) { font-size: min(5vw, 8.4vh); margin-left: 1.5em; }
.cascade li:nth-child(4) { font-size: min(6.4vw, 11vh); margin-left: 1.75em; }
.scroll { position: absolute; right: 4px; bottom: 30px; z-index: 2; writing-mode: vertical-rl; font: 700 15px/1 var(--type); text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.scroll b { display: inline-block; text-decoration: none; rotate: 0deg; }
.js-motion .hero__tagline { opacity: 0; }
.static .hero { height: auto; min-height: 0; padding: 120px 0 20px; display: grid; gap: 32px; }
.static .hero__info, .static .hero__tagline, .static .cascade { position: static; translate: none; width: auto; }
.static canvas.hero__canvas, .static .art, .static .scroll { display: none; }

/* shared: every section opens like the poster */
.section { padding-top: clamp(80px, 10vw, 150px); scroll-margin-top: 0; }
.title { margin-bottom: 36px; }
.h2 { font: 900 clamp(68px, 11vw, 180px)/.86 var(--cond); text-transform: uppercase; color: var(--accent); }
.h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .02em; margin-top: -.1em; }
.h2 .w > i { display: inline-block; font-style: normal; }
.sub { margin-top: 14px; font: 400 clamp(24px, 2.8vw, 42px)/1.15 var(--serif); text-transform: uppercase; }
.sub::after { content: ""; display: block; width: 16px; height: 3px; margin-top: 14px; background: currentColor; }
.type { max-width: 52ch; margin-top: 16px; font: 700 clamp(15px, 1.4vw, 20px)/1.35 var(--type); text-transform: uppercase; }
.art { width: 100%; height: 100%; min-height: 0; }
.tabs { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 6px; margin-top: 18px; }
.tabs button { font: 700 15px/1.6 var(--type); text-transform: uppercase; border-bottom: 3px solid transparent; }
.tabs button:hover { color: var(--accent-ink); }
.tabs button[aria-pressed="true"] { border-color: var(--accent); }
.tabs sup { margin-left: 3px; font-size: 10px; }

/* skills: the whole package, one word per block */
.pillars { border-top: 2px solid var(--ink); }
.pillar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) minmax(0, 1.4fr); gap: clamp(14px, 2vw, 32px); align-items: center; padding: 12px 0; border-bottom: 2px solid var(--ink); }
.echo { position: relative; justify-self: start; font: 400 clamp(34px, 3.8vw, 60px)/1.15 var(--serif); letter-spacing: -.025em; cursor: default; }
.echo span { display: block; transition: color .25s; }
.echo span:first-child { position: relative; z-index: 1; }
.echo span + span { position: absolute; left: 0; top: 0; opacity: 0; color: var(--accent); pointer-events: none; }
.pillar:hover .echo span:first-child { color: var(--accent); }
.pillar__lines > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; padding: 2px 0; }
.pillar__lines dt { font: 400 13px/1.9 var(--type); text-transform: uppercase; color: var(--soft); }
.pillar__lines ul { display: flex; flex-wrap: wrap; column-gap: 4px; }
.pillar__lines li { padding: 0 5px; font: 700 15px/1.55 var(--type); text-transform: uppercase; transition: background-color .15s, color .15s; }
.pillar__lines li:hover { background: var(--accent); color: #fff; }
.pillar__art { height: 80px; }

/* work */
.head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.head .title { margin-bottom: 34px; }
.art--head { height: 250px; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; border-top: 2px solid var(--ink); padding-top: 26px; }
.card { display: block; width: 100%; text-align: left; align-self: start; }
.card__media { aspect-ratio: 5 / 4; overflow: hidden; background: #ddd; }
.card__inner { width: 100%; height: 100%; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover img, .card:focus-visible img { scale: 1.07; }
.card h3 { margin-top: 16px; font: 400 20px/1.35 var(--serif); text-wrap: balance; }
.card:hover h3 { color: var(--accent-ink); }
.card p { margin-top: 8px; font: 700 13px/1.4 var(--type); text-transform: uppercase; color: var(--soft); }

/* how I work: traits on the left, account work on the right */
.traits { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 32px 0 40px; border-top: 2px solid var(--ink); }
.traits__big { font: 400 clamp(28px, 3.5vw, 58px)/1.3 var(--serif); }
.traits__big strong { font-weight: 400; color: #fff; padding: 0 .1em; background: linear-gradient(var(--accent), var(--accent)) left / 100% 100% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.traits__big strong:nth-of-type(2) { white-space: nowrap; }   /* keeps self-disciplined on one line */
.traits h3 { margin-bottom: 14px; font: 700 15px/1.4 var(--type); text-transform: uppercase; }
.traits li { padding: 7px 0; border-top: 1px solid var(--line); font: 400 19px/1.35 var(--serif); transition: color .2s, translate .2s; }
.traits li:hover { color: var(--accent-ink); translate: 8px 0; }

/* design process: the step in the middle of the screen drives the artwork beside it */
.process { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.steps { counter-reset: step; border-top: 2px solid var(--ink); }
.step { counter-increment: step; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 2px solid var(--ink); }
.step::before { content: counter(step, decimal-leading-zero); font: 900 84px/.8 var(--cond); color: var(--line); transition: color .25s; }
.step h3 { font: 400 clamp(22px, 2.3vw, 34px)/1.15 var(--serif); text-transform: uppercase; }
.step p { margin-top: 8px; max-width: 54ch; font: 400 17px/1.45 var(--type); color: var(--soft); }
.step.is-on::before { color: var(--accent); }
.step.is-on p { color: var(--ink); }
.process__side { position: sticky; top: 110px; align-self: start; }
.process__art { height: min(420px, 60vh); }

/* about: black, so it stands apart */
.about { --soft: #b3ada9; --line: #3a3431; margin-top: clamp(80px, 10vw, 150px); padding: clamp(40px, 5vw, 76px) clamp(20px, 3.5vw, 56px); background: #0c0a09; color: #f1eeec; }
.about .h2 { color: var(--accent-light); }
.about__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.portrait { width: 100%; max-width: 560px; height: auto; aspect-ratio: 5 / 6; object-fit: cover; }
@media (min-width: 901px) { .portrait { position: sticky; top: 40px; max-height: calc(100vh - 60px); } }
.about__text p { max-width: 54ch; font-size: clamp(17px, 1.45vw, 21px); white-space: pre-line; }
.about__text p + p { margin-top: 18px; }
.about__text [data-bio] p:first-child { font: 400 clamp(23px, 2.4vw, 36px)/1.3 var(--serif); }
.about blockquote { margin-top: 44px; }
.about blockquote::before { content: ""; display: block; width: 16px; height: 3px; margin-bottom: 20px; background: var(--accent-light); }
.about blockquote p { font: 400 clamp(23px, 2.4vw, 36px)/1.32 var(--serif); color: var(--accent-light); }
.about footer { margin-top: 12px; font: 700 14px var(--type); text-transform: uppercase; }
.about__exp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 80px; }
.about__art { position: sticky; top: 90px; height: 320px; }
.about h3 { margin-bottom: 12px; font: 700 15px var(--type); text-transform: uppercase; color: var(--soft); }
.job { border-top: 1px solid var(--line); }
.job summary, .job__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 28px; gap: 16px; align-items: center; padding: 18px 0; }
.job summary { cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary:hover .job__role { color: var(--accent-light); }
.job summary i { justify-self: end; font: 400 30px var(--type); color: var(--accent-light); transition: rotate .25s; }
.job summary i::before { content: "+"; }
.job[open] summary i { rotate: 45deg; }
.job__role { font: 400 clamp(19px, 1.9vw, 27px)/1.25 var(--serif); transition: color .2s; }
.job__when { font: 700 15px/1.4 var(--type); text-transform: uppercase; }
.job small { display: block; margin-top: 3px; font: 400 14px var(--type); text-transform: none; color: var(--soft); }
.job__more { padding: 0 0 22px; max-width: 70ch; color: #d8d3d0; }
.job__more ul { margin-top: 12px; list-style: square; padding-left: 20px; }
.job__more li::marker { color: var(--accent-light); }
.about__lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); margin-top: 80px; }
.about__lists li { padding: 13px 0; border-top: 1px solid var(--line); font: 400 19px/1.35 var(--serif); transition: color .2s, translate .2s; }
.about__lists li:hover { color: var(--accent-light); translate: 8px 0; }
.about__lists small { display: block; margin-top: 3px; font: 400 14px var(--type); color: var(--soft); }

/* manufacturing: one big obvious button */
.mfg { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); width: 100%; text-align: left; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transition: translate .2s, box-shadow .2s; }
.mfg:hover, .mfg:focus-visible { translate: 4px 4px; box-shadow: 4px 4px 0 var(--ink); }
.mfg:active { translate: 8px 8px; box-shadow: 0 0 0 var(--ink); }
.mfg__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(22px, 4vw, 48px); }
.mfg__big { font: 900 clamp(90px, 13vw, 200px)/.84 var(--cond); color: #fff; }
.mfg__copy strong { margin-top: 14px; font: 400 clamp(24px, 2.8vw, 42px)/1.15 var(--serif); text-transform: uppercase; }
.mfg__sub { max-width: 50ch; margin-top: 14px; font: 700 16px/1.4 var(--type); }
.mfg__cta { display: inline-flex; gap: 12px; margin-top: 24px; padding: 15px 24px; background: var(--ink); color: #fff; font: 700 16px var(--type); text-transform: uppercase; }
.mfg__cta i { font-style: normal; transition: translate .25s; }
.mfg:hover .mfg__cta { background: #fff; color: var(--ink); }
.mfg:hover .mfg__cta i { translate: 6px 0; }
.mfg__art { height: 100%; min-height: 260px; --accent: #171413; }
.mfg__strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); gap: 2px; background: var(--ink); }
.mfg__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); transition: filter .35s; }
.mfg:hover .mfg__strip img { filter: none; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 90px; }
.contact .h2 { font-size: clamp(110px, 20vw, 330px); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__art { height: 340px; }
.btn { display: inline-block; padding: 14px 22px; border: 2px solid var(--ink); font: 700 16px var(--type); text-transform: uppercase; transition: background-color .15s, color .15s; }
.btn--solid { background: var(--ink); color: #fff; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* case view: a side sheet */
.case { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(760px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; border-left: 2px solid var(--ink); background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(18px, 4vw, 48px) 56px; }
.case::backdrop { background: rgb(0 0 0 / .65); }
.case__close { position: sticky; top: 16px; float: right; z-index: 2; margin-top: 16px; background: var(--ink); color: #fff; padding: 8px 16px; font: 700 14px var(--type); text-transform: uppercase; }
.case__body { clear: both; padding-top: 22px; }
.case h2 { font: 400 clamp(28px, 3.6vw, 44px)/1.18 var(--serif); }
.case .lead { max-width: 60ch; margin: 18px 0 22px; font: 400 18px/1.45 var(--type); }
.case img { width: 100%; margin-top: 26px; }
.case h3 { margin-top: 28px; font: 700 15px var(--type); text-transform: uppercase; color: var(--accent-ink); }
.case .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.case .chips li { padding: 4px 10px; border: 1.5px solid var(--ink); font: 700 13px var(--type); text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }

.cursor { position: fixed; left: 0; top: 0; z-index: 60; margin: 14px 0 0 14px; padding: 8px 14px; background: var(--ink); color: #fff; font: 700 14px var(--type); text-transform: uppercase; pointer-events: none; scale: 0; transform-origin: left top; transition: scale .18s; }
.cursor.is-on { scale: 1; }

@media (max-width: 900px) {
  /* the two edges fold into a top bar and a language switch in the corner */
  main { padding: 0 16px; }
  .logo, .side__link { display: none; }
  .rail { inset: 0 0 auto; width: auto; height: 50px; flex-direction: row; justify-content: space-between; gap: 6px; padding: 0 12px; background: var(--bg); border-bottom: 2px solid var(--ink); }
  .rail a { writing-mode: horizontal-tb; padding: 6px 0; font-size: 12px; }
  .side { inset: auto 8px 8px auto; width: auto; }
  .langs { flex-direction: row; margin: 0; background: var(--bg); border: 2px solid var(--ink); pointer-events: auto; }
  .langs a { padding: 6px 9px; }
  .section { scroll-margin-top: 20px; }
  .wordmark { top: 64px; left: 0; right: auto; }
  .hero__info { left: 0; top: 118px; width: 100%; }
  .uiux { width: min(62%, 22vh); }
  .hero__role { margin-top: 12px; font-size: min(7.4vw, 3.7vh); }
  .hero__role::after { margin: 8px 0 6px; }
  .hero__lines { font-size: 13px; }
  .hero__tagline { left: 0; top: auto; bottom: 7svh; translate: none; width: 100%; }
  .hero__big { font-size: clamp(21px, 5.4vw, 34px); }
  .hero__intro { margin-top: 12px; font-size: 14px; }
  .cascade { left: 0; bottom: 14px; }
  .cascade li:nth-child(1) { font-size: min(5.5vw, 3vh); }
  .cascade li:nth-child(2) { font-size: min(7.5vw, 4vh); }
  .cascade li:nth-child(3) { font-size: min(9.5vw, 5.2vh); }
  .cascade li:nth-child(4) { font-size: min(11vw, 6.2vh); margin-left: 1.2em; }
  .scroll { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .head, .contact { grid-template-columns: 1fr; }
  .art--head { height: 150px; }
  .contact__art { height: 220px; }
  .pillar { grid-template-columns: minmax(0, 1fr) 110px; }
  .pillar__lines { grid-column: 1 / -1; grid-row: 2; }
  .pillar__art { grid-column: 2; grid-row: 1; height: 90px; }
  .about__top, .about__exp, .about__lists, .mfg, .process, .traits { grid-template-columns: 1fr; }
  .process__side { order: -1; top: 50px; z-index: 5; background: var(--bg); border-bottom: 2px solid var(--ink); }
  .process__art { height: 130px; }
  .about__art { position: static; order: -1; height: 130px; }
  .mfg__art { height: 180px; min-height: 0; }
  .mfg__strip { grid-template-columns: repeat(3, 1fr); }
  .job summary, .job__row { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 4px; }
  .job__when { grid-column: 1; grid-row: 2; }
  .job summary i { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .contact { padding-bottom: 96px; }
  .pillar__lines > div { grid-template-columns: 1fr; gap: 0; }
  .pillar__lines li { font-size: 14px; }
  .pillar__lines li:first-child { padding-left: 0; }
  .step { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .step::before { font-size: 52px; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
