@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/portfolio/assets/fonts/atkinson-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/portfolio/assets/fonts/atkinson-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/portfolio/assets/fonts/atkinson-800.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  --paper: oklch(0.965 0.018 88);
  --paper-deep: oklch(0.925 0.025 82);
  --white: oklch(0.995 0.004 88);
  --ink: oklch(0.17 0.012 38);
  --muted: oklch(0.43 0.018 48);
  --quiet: oklch(0.67 0.02 70);
  --red: oklch(0.49 0.18 28);
  --line: oklch(0.79 0.025 72);
  --dark-line: oklch(0.38 0.014 45);
  --focus: 0 0 0 3px oklch(0.83 0.13 82);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page-x: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(76px, 9vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Atkinson Hyperlegible Next", "PingFang SC", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a, button { font: inherit; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--page-x); }
.wordmark { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span { color: var(--red); }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 38px); font-size: 0.9rem; font-weight: 600; }
.site-header nav a { text-decoration-color: transparent; text-underline-offset: 5px; transition: color 160ms var(--ease); }
.site-header nav a:hover { color: var(--red); }

.hero { min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.65fr); gap: clamp(44px, 7vw, 110px); align-items: end; padding: clamp(130px, 14vw, 190px) var(--page-x) clamp(68px, 8vw, 110px); }
.hero-kicker { margin: 0 0 30px; color: var(--red); font-weight: 800; }
.hero h1 { max-width: 13ch; margin: 0; font-size: clamp(3.2rem, 7.6vw, 7rem); line-height: 0.92; letter-spacing: -0.045em; text-wrap: balance; }
.hero-foot { display: flex; justify-content: space-between; gap: 36px; align-items: end; max-width: 67rem; margin-top: clamp(40px, 6vw, 76px); border-top: 2px solid var(--ink); padding-top: 18px; }
.hero-foot p { max-width: 42rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.65; }
.hero-foot a { flex: none; border-bottom: 2px solid currentColor; padding: 6px 0; font-weight: 600; text-decoration: none; }
.hero-foot a:hover { color: var(--red); }

.field-note { position: relative; background: var(--ink); color: var(--white); padding: clamp(28px, 3.7vw, 48px); transform: rotate(0.8deg); }
.field-note-top { display: flex; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: 0.76rem; }
.field-note-title { margin: clamp(62px, 8vw, 110px) 0 42px; font-size: clamp(2rem, 3.3vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
.field-note dl { margin: 0; }
.field-note dl div { display: grid; grid-template-columns: 1fr auto; gap: 20px; border-top: 1px solid var(--dark-line); padding: 12px 0; }
.field-note dl div:last-child { border-bottom: 1px solid var(--dark-line); }
.field-note dt { color: var(--quiet); font-size: 0.78rem; }
.field-note dd { margin: 0; font-weight: 600; text-align: right; }
.red-stamp { position: absolute; right: 28px; top: 68px; display: grid; place-items: center; width: 88px; height: 88px; border: 3px double var(--red); border-radius: 50%; color: oklch(0.69 0.19 28); font-size: 0.67rem; font-weight: 800; line-height: 1.15; text-align: center; transform: rotate(-12deg); }

.metric-ledger { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--white); border-block: 1px solid var(--line); padding-inline: var(--page-x); }
.metric-ledger article { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 38px); }
.metric-ledger article:first-child { padding-left: 0; }
.metric-ledger article:last-of-type { border-right: 0; padding-right: 0; }
.metric-ledger strong { font-size: clamp(2.35rem, 4.8vw, 4.8rem); letter-spacing: -0.05em; line-height: 0.9; }
.metric-ledger span { margin-top: 14px; font-weight: 800; }
.metric-ledger small { margin-top: 5px; color: var(--muted); }
.metric-ledger > p { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding: 12px 0 15px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }

.featured-project { position: relative; overflow: hidden; scroll-margin-top: 18px; background: var(--ink); color: var(--white); padding: var(--section-y) var(--page-x); }
.case-index { position: absolute; inset: -0.08em -0.03em auto auto; color: oklch(0.23 0.015 35); font-size: clamp(12rem, 32vw, 34rem); font-weight: 800; letter-spacing: -0.09em; line-height: 0.7; pointer-events: none; }
.project-heading { position: relative; display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr); gap: clamp(42px, 7vw, 118px); }
.project-label { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.project-label > span, .project-title > p, .outreach-details > header > p { color: oklch(0.69 0.19 28); font-weight: 800; }
.project-label p { margin: 0; color: var(--quiet); font-size: 0.82rem; line-height: 1.5; text-align: right; }
.project-title > p { margin: 0 0 18px; }
.project-heading h2 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 6.2vw, 6.1rem); line-height: 0.92; letter-spacing: -0.045em; }
.project-statement { max-width: 51rem; margin: clamp(28px, 4vw, 46px) 0 0; color: oklch(0.77 0.018 72); font-size: clamp(1.08rem, 1.7vw, 1.38rem); line-height: 1.58; }

.hero-proof { position: relative; margin: clamp(54px, 8vw, 104px) 0 0; background: var(--white); color: var(--ink); }
.hero-proof img { width: 100%; max-height: 900px; object-fit: cover; object-position: top; }
.hero-proof figcaption { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 0.78rem; }
.hero-proof figcaption strong { color: var(--red); }

.case-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1px; background: var(--paper); color: var(--ink); }
.case-brief article { border-right: 1px solid var(--line); padding: clamp(26px, 3.6vw, 46px); }
.case-brief article:last-child { border-right: 0; }
.case-brief span { color: var(--red); font-weight: 800; }
.case-brief p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

.capability-proof { display: grid; grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr); gap: clamp(48px, 8vw, 120px); margin-top: clamp(70px, 9vw, 126px); border-top: 2px solid var(--white); padding-top: 24px; }
.capability-proof > div p { margin: 0; color: oklch(0.69 0.19 28); font-weight: 800; }
.capability-proof > div span { display: block; max-width: 18rem; margin-top: 8px; color: var(--quiet); line-height: 1.5; }
.capability-proof ol { margin: 0; padding: 0; list-style: none; }
.capability-proof li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; border-bottom: 1px solid var(--dark-line); padding: 0 0 22px; }
.capability-proof li + li { padding-top: 22px; }
.capability-proof b { color: oklch(0.69 0.19 28); }
.capability-proof li span { color: oklch(0.78 0.016 72); line-height: 1.6; }

.outreach-details { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); gap: clamp(54px, 9vw, 132px); margin-top: clamp(78px, 10vw, 138px); }
.outreach-details > header > p { margin: 0 0 18px; }
.outreach-details h3 { max-width: 12ch; margin: 0; font-size: clamp(2.2rem, 4vw, 4.1rem); letter-spacing: -0.04em; line-height: 0.98; }
.outreach-details header small { display: block; max-width: 26rem; margin-top: 24px; color: var(--quiet); line-height: 1.55; }
.outreach-steps { border-top: 1px solid var(--dark-line); }
.outreach-steps details { border-bottom: 1px solid var(--dark-line); }
.outreach-steps summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 16px; align-items: center; padding: 22px 0; }
.outreach-steps summary > span { color: oklch(0.69 0.19 28); font-weight: 800; }
.outreach-steps summary strong { font-size: 1.06rem; line-height: 1.35; }
.outreach-steps summary i { position: relative; width: 28px; height: 28px; }
.outreach-steps summary i::before, .outreach-steps summary i::after { position: absolute; inset: 50% auto auto 50%; width: 16px; height: 2px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.outreach-steps summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 160ms var(--ease); }
.outreach-steps details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.step-copy { padding: 0 44px 22px 58px; }
.step-copy p { max-width: 44rem; margin: 0; color: oklch(0.76 0.018 72); line-height: 1.65; }
.step-proof { overflow: hidden; margin: 0 0 28px 58px; background: var(--paper); color: var(--ink); }
.step-proof img { width: 100%; max-height: 660px; object-fit: cover; object-position: top; }
.step-proof figcaption { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 12px 14px; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.step-proof figcaption span { color: var(--red); font-weight: 800; }
.step-proof-portrait { max-width: 560px; }

.module-index { display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr); gap: clamp(42px, 7vw, 118px); margin-top: clamp(72px, 9vw, 126px); border-top: 1px solid var(--dark-line); padding-top: 22px; }
.module-index p { margin: 0; color: oklch(0.69 0.19 28); font-weight: 800; }
.module-index div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.module-index span { border-bottom: 1px solid var(--dark-line); padding: 6px 0; color: oklch(0.78 0.016 72); font-size: 0.82rem; }
.human-line { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 8vw, 96px); border-top: 2px solid var(--white); }
.human-line p { margin: 0; padding: 24px 24px 0 0; font-size: clamp(1.35rem, 2.5vw, 2.35rem); font-weight: 600; line-height: 1.28; }
.human-line p + p { border-left: 1px solid var(--dark-line); padding-left: 24px; color: oklch(0.74 0.18 75); }

.selected-work { padding: var(--section-y) var(--page-x); }
.section-heading { display: grid; grid-template-columns: minmax(150px, 0.35fr) minmax(300px, 0.8fr) minmax(260px, 0.65fr); gap: clamp(30px, 5vw, 72px); align-items: end; margin-bottom: clamp(66px, 8vw, 110px); }
.section-heading > span, .work-copy > span { color: var(--red); font-weight: 800; }
.section-heading h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 0.96; letter-spacing: -0.04em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.work-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: clamp(24px, 5vw, 78px); align-items: center; border-top: 1px solid var(--line); padding: clamp(54px, 7vw, 88px) 0; scroll-margin-top: 18px; }
.work-number { align-self: start; color: var(--red); font-weight: 800; }
.work-row figure { margin: 0; }
.work-row figure > img { width: 100%; }
.work-copy h3 { margin: 16px 0 20px; font-size: clamp(2rem, 4vw, 3.9rem); line-height: 0.98; letter-spacing: -0.04em; }
.work-copy > p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.work-copy .capability-line { margin-top: 22px; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.work-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.work-links a, .closing-bottom a { display: inline-flex; justify-content: space-between; gap: 28px; border-bottom: 2px solid currentColor; padding: 7px 0; font-weight: 600; text-decoration: none; }
.work-links a:hover, .closing-bottom a:hover { color: var(--red); }
.browser-shot { overflow: hidden; background: var(--white); box-shadow: 8px 8px 0 var(--paper-deep); }
.browser-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 14px; color: var(--quiet); font-size: 0.7rem; }
.browser-top span { letter-spacing: 3px; }
.browser-top i { color: var(--muted); font-style: normal; }
.coco-shot { overflow: hidden; background: var(--white); }
.coco-shot img { aspect-ratio: 16 / 9; object-fit: cover; }

.work-tarot { color: var(--white); background: oklch(0.2 0.035 35); margin-inline: calc(var(--page-x) * -1); border: 0; padding-inline: var(--page-x); }
.work-tarot .work-number, .work-tarot .work-copy > span { color: oklch(0.71 0.16 43); }
.work-tarot .work-copy > p { color: oklch(0.8 0.02 66); }
.work-tarot .work-copy .capability-line { color: var(--white); }
.mowen-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 0.32fr); gap: 12px; align-items: end; }
.mowen-proof figure { min-width: 0; }
.mowen-proof img { width: 100%; }
.mowen-site { overflow: hidden; background: var(--paper); }
.mowen-site figcaption { padding: 10px 12px; color: var(--ink); font-size: 0.72rem; }
.mowen-social { position: relative; overflow: hidden; background: var(--white); }
.mowen-social figcaption { position: absolute; inset: auto 8px 8px; display: flex; align-items: end; justify-content: space-between; gap: 10px; background: var(--red); color: var(--white); padding: 10px; }
.mowen-social figcaption strong { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 0.9; }
.mowen-social figcaption span { max-width: 5em; font-size: 0.68rem; line-height: 1.15; text-align: right; }

.experience { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(120px, 0.5fr)); background: var(--white); border-block: 1px solid var(--line); padding: 0 var(--page-x); }
.experience > div, .experience > p { margin: 0; border-right: 1px solid var(--line); padding: 28px clamp(18px, 3vw, 34px); }
.experience > div { display: grid; gap: 5px; padding-left: 0; }
.experience > div span { color: var(--red); font-weight: 800; }
.experience > div small { color: var(--muted); }
.experience > p:last-child { border-right: 0; padding-right: 0; }
.experience > p { display: flex; flex-direction: column; justify-content: center; color: var(--muted); }
.experience b { color: var(--ink); font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -0.04em; }

.closing { min-height: 72svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(60px, 9vw, 112px); background: var(--red); color: var(--white); padding: var(--section-y) var(--page-x) clamp(50px, 7vw, 80px); }
.closing > p { margin: 0; font-weight: 600; }
.closing h2 { max-width: 15ch; margin: 0; font-size: clamp(3rem, 6.8vw, 6.3rem); line-height: 0.96; letter-spacing: -0.045em; }
.closing-bottom { display: flex; justify-content: space-between; gap: 40px; align-items: end; border-top: 1px solid oklch(0.72 0.13 28); padding-top: 18px; }
.closing-bottom p { max-width: 38rem; margin: 0; line-height: 1.6; }
.closing-bottom a:hover { color: var(--paper); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; background: var(--ink); color: var(--white); padding: 25px var(--page-x); font-size: 0.86rem; }
footer p { margin: 0; color: var(--quiet); }
footer > a:last-child { justify-self: end; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .hero, .project-heading, .outreach-details { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .field-note { max-width: 650px; transform: none; }
  .project-heading, .outreach-details { gap: 38px; }
  .project-label { max-width: 440px; }
  .section-heading { grid-template-columns: 0.35fr 1fr; }
  .section-heading p { grid-column: 2; }
  .work-row { grid-template-columns: 42px minmax(0, 1fr); }
  .work-copy { grid-column: 2; }
}

@media (max-width: 820px) {
  .metric-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-ledger article:nth-child(even) { border-right: 0; padding-right: 0; }
  .metric-ledger article:nth-child(3), .metric-ledger article:nth-child(5) { padding-left: 0; }
  .metric-ledger article:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .metric-ledger article:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .case-brief { grid-template-columns: 1fr; }
  .case-brief article { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-brief article:last-child { border-bottom: 0; }
  .capability-proof, .module-index { grid-template-columns: 1fr; gap: 28px; }
  .experience { grid-template-columns: repeat(3, 1fr); }
  .experience > div { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --page-x: 20px; --section-y: 72px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-foot { align-items: start; flex-direction: column; }
  .hero-foot a { width: 100%; }
  .field-note-title { margin-top: 58px; }
  .metric-ledger strong { font-size: clamp(2rem, 11vw, 3.1rem); }
  .project-label { align-items: start; flex-direction: column; }
  .project-label p { text-align: left; }
  .project-heading h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-proof { margin-inline: calc(var(--page-x) * -1); }
  .hero-proof img { min-height: 360px; object-fit: cover; object-position: 25% top; }
  .capability-proof li { grid-template-columns: 58px 1fr; }
  .step-copy { padding-left: 0; }
  .step-proof { margin-left: 0; }
  .human-line { grid-template-columns: 1fr; }
  .human-line p + p { border-left: 0; border-top: 1px solid var(--dark-line); padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading p { grid-column: auto; }
  .work-row { grid-template-columns: 30px minmax(0, 1fr); gap: 18px; }
  .work-row figure, .work-row .mowen-proof { grid-column: 1 / -1; }
  .work-copy { grid-column: 1 / -1; }
  .mowen-proof { grid-template-columns: minmax(0, 1fr) minmax(105px, 0.32fr); }
  .experience { grid-template-columns: 1fr; }
  .experience > div, .experience > p { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .experience > p:last-child { border-bottom: 0; }
  .closing-bottom { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (max-width: 380px) {
  .site-header nav a:first-child { display: none; }
  .hero h1, .project-heading h2, .closing h2 { letter-spacing: -0.03em; }
  .metric-ledger { grid-template-columns: 1fr; }
  .metric-ledger article { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .metric-ledger article:nth-child(5) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
