:root {
  --paper: #e8e1d4;
  --paper-light: #f3eee4;
  --ink: #171b1b;
  --gunmetal: #303838;
  --blue: #315f78;
  --blue-dark: #294f62;
  --blue-light: #9bb8c6;
  --brass: #d7bc82;
  --frame: min(1280px, calc(100% - 96px));
  --rule-dark: rgba(23, 27, 27, .34);
  --rule-light: rgba(243, 238, 228, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; color: var(--ink); background: var(--ink); font: 16px/1.55 "IBM Plex Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.frame { width: var(--frame); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; color: var(--paper-light); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; color: var(--paper-light); background: rgba(23,27,27,.97); border-bottom: 1px solid var(--rule-light); backdrop-filter: blur(10px); }
.header-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; }
.wordmark-mark { color: var(--blue-light); font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { font-size: 13px; font-weight: 500; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue-light); }
.menu-toggle { display: none; }

.hero { position: relative; width: 100%; overflow: hidden; color: var(--paper-light); background: #111515; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,20,20,.98), rgba(16,20,20,.9) 38%, rgba(16,20,20,.35) 72%, rgba(16,20,20,.08)); }
.hero-grid, .hero-statement { position: relative; z-index: 1; }
.hero-grid { width: var(--frame); min-height: 570px; margin-inline: auto; padding: 46px 0 64px; }
.hero-content { width: min(1080px, 88%); }
.hero-kicker { margin: 0; padding-bottom: 15px; border-bottom: 1px solid var(--rule-light); color: #c3cac7; font-size: 12px; letter-spacing: .01em; }
.hero h1 { max-width: 1080px; margin: 58px 0 0; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(70px, 6.35vw, 92px); font-weight: 500; letter-spacing: -.045em; line-height: .9; }
.hero h1 em { font-style: normal; }
.hero-intro { width: min(610px, 64%); margin: 42px 0 0; color: #d9dcd7; font-size: 18px; line-height: 1.5; }
.hero-statement { border-top: 1px solid var(--rule-light); background: rgba(13,17,17,.8); }
.hero-statement > a { display: flex; width: var(--frame); min-height: 112px; align-items: center; justify-content: space-between; margin-inline: auto; text-decoration: none; }
.hero-statement > a > span { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(31px, 2.7vw, 40px); font-weight: 500; letter-spacing: -.02em; }
.hero-statement > a > small { padding: 17px 20px; color: var(--ink); background: var(--brass); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }

.section-label, .project-status { margin: 0; color: var(--blue-dark); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.work-section { width: 100%; max-width: none; padding: 88px max(48px, calc((100% - 1280px)/2)) 70px; background: var(--paper); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-bottom: 0; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-note { max-width: 440px; margin: 0; color: var(--gunmetal); font-size: 14px; }
.case-list { border-top: 0; }
.case-file { padding: 48px 0 80px; }
.case-file + .case-file { border-top: 1px solid var(--ink); }
.project-header { display: grid; grid-template-columns: 48% 52%; align-items: end; }
.project-header h3 { margin: 9px 0 0; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(68px, 7vw, 100px); font-weight: 500; letter-spacing: -.045em; line-height: .9; }
.project-header > p { max-width: 650px; margin: 0 0 5px; color: var(--gunmetal); font-size: 20px; line-height: 1.5; }
.project-status::before { content: "Status · "; color: #8d6f39; }
.project-image { position: relative; margin: 46px 0 0; overflow: hidden; background: var(--ink); }
.project-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 75px 12px rgba(12,16,16,.28); pointer-events: none; }
.project-image img { display: block; width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.project-image figcaption { position: absolute; z-index: 2; right: 16px; bottom: 16px; padding: 9px 12px; color: #e8e4dc; background: rgba(17,21,21,.88); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.case-file:nth-child(2) { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); align-items: start; gap: 54px; padding-top: 62px; }
.case-file:nth-child(2) .project-header { grid-column: 2; display: block; }
.case-file:nth-child(2) .project-header > p { margin-top: 30px; font-size: 18px; }
.case-file:nth-child(2) .project-image { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }

.closing-section { color: var(--paper-light); background: #303938; }
.closing-grid { display: grid; grid-template-columns: 42% 58%; min-height: 530px; }
.closing-about, .closing-contact { padding: 85px 55px 82px 0; }
.closing-about { border-right: 1px solid var(--rule-light); }
.closing-contact { padding-left: 60px; }
.closing-section .section-label { color: var(--brass); }
.closing-section h2 { margin: 24px 0 0; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(46px, 4.8vw, 69px); font-weight: 500; letter-spacing: -.035em; line-height: .96; }
.closing-about h2 { font-size: clamp(43px, 4vw, 57px); }
.closing-about > p:last-child, .closing-contact > p { max-width: 560px; margin: 34px 0 0; color: #d7ddda; font-size: 18px; line-height: 1.58; }
.closing-contact a { display: flex; justify-content: space-between; max-width: 560px; margin-top: 48px; padding: 18px 20px; color: var(--ink); background: var(--brass); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-footer { color: #d5d7d2; background: #090c0c; }
.footer-grid { display: grid; grid-template-columns: 24% 1fr auto; min-height: 86px; align-items: center; font-size: 11px; }
.footer-grid p { margin: 0; }
.copyright { text-align: right; }

@media (max-width: 900px) {
  :root { --frame: min(100% - 40px, 760px); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(62px, 10vw, 78px); }
  .hero-intro { width: min(610px, 82%); }
  .project-header { grid-template-columns: 1fr; gap: 24px; }
  .case-file:nth-child(2) { display: block; }
  .case-file:nth-child(2) .project-image { margin-top: 34px; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-about { border-right: 0; border-bottom: 1px solid var(--rule-light); }
  .closing-contact { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid > p:first-of-type { display: none; }
}

@media (max-width: 640px) {
  :root { --frame: calc(100% - 32px); }
  html { scroll-padding-top: 60px; }
  .header-inner { min-height: 60px; }
  .wordmark { font-size: 14px; }
  .menu-toggle { display: flex; align-items: center; gap: 11px; border: 0; padding: 0; color: var(--paper-light); background: transparent; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .menu-glyph, .menu-glyph::before { display: block; width: 18px; height: 1px; background: currentColor; }
  .menu-glyph::before { content: ""; transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] .menu-glyph { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-glyph::before { transform: rotate(90deg); }
  .site-nav { position: absolute; top: 60px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--rule-light); background: var(--ink); }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; min-height: 54px; align-items: center; border-bottom: 1px solid var(--rule-light); }
  .hero-image { display: none; }
  .hero { background: #111515 url("hero-workbench.png") 62% center / cover no-repeat; }
  .hero::after { background: linear-gradient(90deg, rgba(16,20,20,.96), rgba(16,20,20,.64)); }
  .hero-grid { min-height: 0; padding: 30px 0 44px; }
  .hero-kicker { font-size: 10px; line-height: 1.5; }
  .hero h1 { margin-top: 40px; font-size: clamp(46px, 13vw, 56px); line-height: .92; }
  .hero h1 br { display: block; }
  .hero-intro { width: 100%; margin-top: 32px; font-size: 16px; }
  .hero-statement > a { min-height: 0; flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 0; }
  .hero-statement > a > span { font-size: 30px; line-height: 1.07; }
  .hero-statement > a > small { width: 100%; }
  .work-section { padding: 66px 16px 54px; }
  .section-heading { align-items: flex-start; }
  .case-file { padding: 40px 0 64px; }
  .project-header h3 { font-size: 58px; }
  .project-header > p, .case-file:nth-child(2) .project-header > p { margin-top: 0; font-size: 17px; }
  .project-image, .case-file:nth-child(2) .project-image { margin-top: 32px; }
  .project-image img { aspect-ratio: 4 / 3; }
  .project-image figcaption { right: 8px; bottom: 8px; left: 8px; font-size: 9px; }
  .closing-about, .closing-contact { padding: 68px 0; }
  .closing-section h2, .closing-about h2 { font-size: 48px; }
  .footer-grid { min-height: 76px; }
  .footer-wordmark > span:last-child { display: none; }
}

@media (max-width: 640px) {
  .section-heading { flex-direction: column; gap: 12px; padding-bottom: 20px; }
  .section-note { max-width: 31rem; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
