:root {
  --ink: #111318;
  --muted: #6d7178;
  --paper: #fbfaf7;
  --line: #deddd8;
  --soft: #f1f0eb;
  --signal: #f07045;
  --cyan: #1ca6c9;
  --night: #18212b;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #e9e8e3; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { width: min(calc(100% - 48px), var(--max)); min-height: 100vh; margin: 0 auto; padding: 0 0 72px; background: var(--paper); }
.site-header { min-height: 88px; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 42px; height: 42px; padding: 7px; display: grid; place-items: center; background: var(--night); border-bottom: 4px solid var(--signal); }
.brand-mark img { max-height: 27px; object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 13px; letter-spacing: -.03em; }
.brand small, .eyebrow, .section-index { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 28px; align-items: center; font-size: 12px; color: #4f5359; }
.site-header nav a:hover { color: var(--signal); }
.desk-link { color: var(--ink) !important; font-weight: 750; }
.arrow { margin-left: 4px; color: var(--signal); }

.hero { min-height: 488px; padding: 96px 30px 70px; display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px; gap: 34px; align-items: center; border-bottom: 1px solid var(--line); }
.status-list { font-size: 10px; color: var(--muted); line-height: 2.55; align-self: end; padding-bottom: 14px; }
.status-list span { display: block; }
.status-list span:first-child { color: #3d6554; font-weight: 700; }
.status-list span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7ecc9c; }
.status-list span:not(:first-child)::before { content: "•"; padding-right: 8px; color: #a9aaa6; }
.identity { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: center; gap: 42px; }
.portrait-card { position: relative; margin: 0; border: 1px solid var(--ink); background: var(--night); box-shadow: 11px 11px 0 var(--signal); }
.portrait-card > img { width: 100%; height: 270px; object-fit: cover; object-position: center; padding: 8px; }
.portrait-card figcaption { position: absolute; inset: auto 0 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: white; background: rgba(18, 27, 37, .9); }
.portrait-card figcaption img { width: 16px; height: 16px; object-fit: contain; }
.portrait-card figcaption span { font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.hero-copy .eyebrow { margin: 0 0 19px; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { max-width: 690px; margin-bottom: 15px; font-size: clamp(48px, 5vw, 84px); line-height: .88; letter-spacing: -.075em; }
.role-line { display: flex; align-items: center; gap: 8px; font-size: clamp(13px, 1.4vw, 18px); font-weight: 700; color: #526069; }
.role-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.hero-copy > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.scroll-cue { align-self: center; writing-mode: vertical-rl; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.scroll-cue::after { content: "↓"; color: var(--signal); padding-top: 9px; }

.intro { display: grid; grid-template-columns: 190px minmax(0, 840px); gap: 34px; padding: 82px 30px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 7px; color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.section-label::before { content: "✦"; font-size: 14px; }
.intro-copy { font-size: clamp(25px, 2.7vw, 40px); line-height: 1.18; letter-spacing: -.05em; }
.text-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 29px; font-size: 12px; color: var(--muted); }
.text-links a:hover { color: var(--signal); }

.section { padding: 70px 30px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; margin-bottom: 31px; }
.section-heading > div:first-child { min-width: 0; }
.section-heading h2 { margin: 4px 0 5px; font-size: clamp(30px, 3vw, 45px); letter-spacing: -.06em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.section-heading > a { color: var(--muted); font-size: 11px; font-weight: 700; }
.section-heading > a:hover { color: var(--signal); }
.experience-list { border-top: 1px solid var(--line); }
.experience-row { display: grid; grid-template-columns: 40px minmax(220px, 1.25fr) minmax(240px, 2fr) 170px; gap: 17px; padding: 18px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.record-mark, .education-mark { width: 24px; height: 24px; display: grid; place-items: center; background: #eef0ec; color: #526069; font-size: 10px; font-weight: 800; }
.record-role strong, .record-role em { display: block; }
.record-role strong { font-size: 13px; }
.record-role em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.experience-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.experience-meta { color: var(--muted); text-align: right; font-size: 10px; line-height: 1.6; }
.experience-meta b { display: block; color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1.25fr .72fr; gap: 46px; }
.education-list { border-top: 1px solid var(--line); }
.education-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 17px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.education-row strong, .education-row small { display: block; }
.education-row strong { font-size: 12px; }
.education-row p, .education-row small { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.language-card { padding: 30px; color: white; background: var(--night); box-shadow: 10px 10px 0 var(--signal); }
.language-card .eyebrow { color: #bac2c9; }
.language-card h3 { margin: 12px 0; font-size: 27px; line-height: 1; letter-spacing: -.05em; }
.language-card p { color: #c8ced1; font-size: 11px; line-height: 1.65; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills span { padding: 6px 8px; border: 1px solid #56616b; color: white; font-size: 9px; }

.skills { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.skill-card { min-height: 157px; padding: 18px; border-right: 1px solid var(--line); }
.skill-card:last-child { border: 0; }
.skill-card h3 { margin: 10px 0; font-size: 13px; }
.skill-card p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.skill-icon { color: var(--signal); font-size: 14px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { border: 1px solid var(--line); background: white; overflow: hidden; }
.project-image { height: 185px; overflow: hidden; background: var(--night); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project:hover .project-image img { transform: scale(1.035); }
.project-body { padding: 17px; }
.project-meta, .project-footer { display: flex; gap: 10px; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.project-body h3 { margin: 12px 0 7px; font-size: 21px; letter-spacing: -.04em; }
.project-body p { min-height: 48px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tech { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.tech span { padding: 4px 5px; color: #56616b; background: #f0f1ee; font-size: 8px; }
.project-footer b { color: #408060; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme { position: relative; height: 220px; overflow: hidden; color: white; background: var(--night); }
.theme img { width: 100%; height: 100%; object-fit: cover; opacity: .64; transition: transform .35s ease; }
.theme:hover img { transform: scale(1.04); }
.theme::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 10%, rgba(10, 16, 20, .91)); }
.theme > div, .theme > span { position: absolute; z-index: 1; }
.theme > span { top: 15px; left: 16px; font-size: 10px; font-weight: 800; }
.theme > div { right: 16px; bottom: 14px; left: 16px; }
.theme h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.035em; }
.theme p { margin: 0; color: #e3e5e4; font-size: 10px; }

.case-callout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; padding: 34px; background: #f1f0eb; }
.case-callout h2 { margin: 8px 0 10px; font-size: 35px; letter-spacing: -.06em; }
.case-callout p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.case-record { display: block; padding: 24px; color: white; background: var(--night); box-shadow: 8px 8px 0 var(--signal); }
.case-record small { color: #c2ccd3; text-transform: uppercase; letter-spacing: .08em; }
.case-record strong { display: block; margin: 10px 0; font-size: 20px; }
.case-record span { color: #d0d6d9; font-size: 11px; line-height: 1.5; }

.footer { display: flex; justify-content: space-between; gap: 36px; padding: 72px 30px 20px; }
.footer h2 { margin: 8px 0 10px; max-width: 550px; font-size: 44px; letter-spacing: -.065em; }
.footer p { color: var(--muted); font-size: 12px; }
.contact-actions { display: grid; align-content: center; gap: 11px; font-size: 12px; }
.contact-actions a:hover { color: var(--signal); }
.privacy-note { margin: 0 30px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

.case-page { min-height: 100vh; padding: 80px 30px; }
.case-hero { max-width: 1000px; padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.case-hero h1 { margin: 16px 0; font-size: clamp(52px, 7vw, 92px); line-height: .88; letter-spacing: -.08em; }
.case-hero p { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.boundary-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; color: #436d5a; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.boundary-bar span:first-child::before { content: "●"; color: #72c990; margin-right: 6px; }
.case-list { margin-left: 210px; border-top: 1px solid var(--line); }
.case-list a { display: grid; grid-template-columns: 60px 1fr 24px; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.case-list a:hover h2 { color: var(--signal); }
.case-list > a > span { font-size: 11px; color: var(--signal); font-weight: 800; }
.case-list h2 { margin: 5px 0; font-size: 31px; letter-spacing: -.05em; }
.case-list p { margin: 0; max-width: 600px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.case-list small { font-size: 9px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.case-detail { max-width: 880px; margin: 0 auto; padding: 110px 0; }
.back { display: inline-block; margin-bottom: 70px; color: var(--muted); font-size: 11px; font-weight: 700; }
.back:hover { color: var(--signal); }
.case-detail h1 { margin: 16px 0 22px; font-size: clamp(48px, 7vw, 88px); line-height: .9; letter-spacing: -.08em; }
.case-detail > p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.next-action { margin: 60px 0; padding: 26px; border-left: 5px solid var(--signal); background: #f1f0eb; }
.next-action span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.next-action strong { font-size: 21px; letter-spacing: -.03em; }
.case-disclosure { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .site-shell { width: 100%; }
  .site-header { padding: 0 18px; }
  .site-header nav { gap: 15px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 20px; gap: 24px; }
  .status-list { order: 2; padding: 0; }
  .identity { grid-template-columns: 155px minmax(0, 1fr); gap: 25px; }
  .portrait-card > img { height: 205px; }
  .scroll-cue { display: none; }
  .intro, .two-col { grid-template-columns: 1fr; gap: 25px; padding: 56px 20px; }
  .section { padding: 56px 20px; }
  .experience-row { grid-template-columns: 30px 1fr; }
  .experience-row > p { grid-column: 2; }
  .experience-meta { grid-column: 2; text-align: left; }
  .skills, .projects, .gallery { grid-template-columns: repeat(2, 1fr); }
  .skill-card:nth-child(3) { border-left: 0; }
  .case-callout { grid-template-columns: 1fr; }
  .footer { display: block; padding: 56px 20px 20px; }
  .contact-actions { margin-top: 34px; }
  .case-page { padding: 45px 20px; }
  .case-list { margin-left: 0; }
}

@media (max-width: 590px) {
  .site-shell { padding-bottom: 35px; }
  .site-header { min-height: 73px; }
  .brand-mark { width: 36px; height: 36px; }
  .site-header nav a:not(.desk-link) { display: none; }
  .identity { grid-template-columns: 118px minmax(0, 1fr); gap: 17px; }
  .portrait-card > img { height: 165px; }
  .hero-copy h1 { font-size: 42px; }
  .role-line { font-size: 11px; line-height: 1.35; }
  .hero-copy > p:last-child { font-size: 11px; }
  .intro-copy { font-size: 25px; }
  .skills, .projects, .gallery { grid-template-columns: 1fr; }
  .skill-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .skill-card:last-child { border-bottom: 0; }
  .case-callout { padding: 24px; }
  .case-callout h2, .footer h2 { font-size: 34px; }
  .case-list a { grid-template-columns: 35px 1fr 14px; gap: 12px; }
  .case-list h2 { font-size: 24px; }
  .case-detail { padding: 62px 0; }
}
