:root {
  --bg: #0c0d0b;
  --surface: #131411;
  --text: #f2ebdd;
  --muted: #9d9a90;
  --line: rgba(242, 235, 221, .16);
  --accent: #c8ff00;
  --shell: min(1480px, calc(100% - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  width: var(--shell); height: 96px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
.brand { font-family: "Courier New", monospace; font-weight: 700; font-size: 20px; letter-spacing: .16em; }
.brand span, em { color: var(--accent); font-style: normal; }
nav { display: flex; align-items: center; gap: clamp(26px, 3.2vw, 58px); }
nav a { font-family: "Courier New", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #ccc6ba; position: relative; padding-block: 14px; }
nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: 8px; background: var(--accent); transition: right .25s ease; }
nav a:hover::after { right: 0; }
.menu-button { display: none; border: 1px solid var(--line); background: transparent; color: var(--accent); padding: 10px 13px; font: 11px "Courier New", monospace; letter-spacing: .12em; cursor: pointer; }

.hero { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; position: relative; padding: 80px 0 100px; overflow: hidden; }
.eyebrow, .section-label { font-family: "Courier New", monospace; color: var(--muted); letter-spacing: .18em; font-size: 12px; }
.eyebrow span, .section-label span { color: var(--accent); }
.hero h1 { max-width: 920px; font-size: clamp(62px, 6.5vw, 112px); line-height: .94; letter-spacing: -.065em; margin: 50px 0 42px; font-weight: 700; }
.hero-lead { border-top: 1px solid var(--line); padding-top: 28px; max-width: 600px; color: var(--muted); font-size: clamp(18px, 1.55vw, 25px); line-height: 1.55; }
.button { width: 310px; border: 1px solid var(--accent); display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding: 21px 28px; color: var(--accent); font-size: 16px; transition: background .25s, color .25s; }
.button span { font-size: 26px; line-height: 0; transition: transform .25s; }
.button:hover { background: var(--accent); color: var(--bg); }
.button:hover span { transform: translateX(7px); }
.hero-visual { display: flex; justify-content: flex-end; color: #514f48; opacity: .88; }
.hero-mark { width: min(100%, 620px); overflow: visible; animation: reveal 1.1s ease both; }
.accent-stroke { stroke: var(--accent); stroke-width: 1.2; }
.accent-fill { fill: var(--accent); }
.guide { stroke: #777369; stroke-width: .8; stroke-dasharray: 8 6; }
.corners, .ticks { fill: none; stroke: #afa99c; stroke-width: 2; }
.coordinate { fill: #777369; font: 10px "Courier New", monospace; letter-spacing: .08em; }
.scroll-note { position: absolute; bottom: 36px; left: 0; font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.scroll-note span { width: 48px; height: 1px; background: var(--accent); }

.ruled { border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; padding: 34px 0 145px; }
.section-content { min-width: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
h2 { font-size: clamp(45px, 5vw, 78px); line-height: 1.02; letter-spacing: -.052em; margin: 0; font-weight: 700; }
.large-copy { color: var(--text) !important; font-size: clamp(23px, 2vw, 32px) !important; line-height: 1.38 !important; margin-top: 8px !important; }
.about-grid p, .stack-grid p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 680px; margin: 26px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 65px; padding-top: 28px; gap: 22px; }
.stats strong { font-size: 28px; font-weight: 600; display: block; }
.stats span { color: var(--muted); font: 11px "Courier New", monospace; text-transform: uppercase; letter-spacing: .09em; display: block; margin-top: 9px; }
.career { margin-top: 110px; display: grid; grid-template-columns: .48fr 1.52fr; gap: 60px; border-top: 1px solid var(--line); padding-top: 35px; }
.career-heading h3 { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.04em; font-weight: 600; margin: 28px 0 0; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 25px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
.timeline-item > span { color: var(--accent); font: 10px "Courier New", monospace; letter-spacing: .07em; }
.timeline-item strong { font-size: 16px; font-weight: 600; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 14px; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 72px; }
.section-heading h2 { max-width: 720px; }
.section-heading p { color: var(--muted); max-width: 350px; line-height: 1.6; }
.project-list { border-top: 1px solid var(--line); }
.project { min-height: 175px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 80px 1.1fr 1.1fr 1fr 40px; gap: 25px; align-items: center; position: relative; transition: padding .25s, background .25s; }
.project::before { content: ""; position: absolute; inset: 0 100% 0 0; background: var(--surface); transition: right .35s ease; z-index: -1; }
.project:hover::before { right: 0; }
.project:hover { padding-inline: 18px; }
.project-no { color: var(--accent); font: 12px "Courier New", monospace; }
.project-title h3 { font-size: clamp(25px, 2.2vw, 37px); letter-spacing: -.035em; font-weight: 600; margin: 0; }
.project-title > span { display: block; margin-top: 11px; color: var(--muted); font: 9px "Courier New", monospace; text-transform: uppercase; letter-spacing: .09em; }
.project > p { color: var(--muted); line-height: 1.55; max-width: 440px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span, .tool-cloud span { border: 1px solid var(--line); color: #bbb7ac; padding: 9px 12px; font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }
.project-arrow { font-size: 28px; color: var(--accent); }

.stack-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: start; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-cloud span { font-size: 13px; padding: 16px 18px; transition: border-color .2s, color .2s, transform .2s; }
.tool-cloud span:hover, .tool-cloud .featured { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.contact { min-height: 76vh; padding: 70px 0 95px; display: flex; flex-direction: column; justify-content: center; }
.contact-meta { display: flex; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid var(--line); font: 11px "Courier New", monospace; letter-spacing: .13em; color: var(--muted); }
.contact > p { color: var(--muted); font-size: 20px; margin: auto 0 25px; }
.contact h2 { font-size: clamp(64px, 9vw, 150px); }
.contact-link { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: clamp(20px, 2vw, 31px); color: var(--accent); padding: 40px 0 25px; transition: padding .25s; }
.contact-link:hover { padding-inline: 15px; }
.site-footer { height: 90px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 10px "Courier New", monospace; letter-spacing: .12em; }

@keyframes reveal { from { opacity: 0; transform: scale(.96) rotate(-2deg); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  :root { --shell: calc(100% - 48px); }
  nav { gap: 20px; }
  .hero { grid-template-columns: 1fr .55fr; }
  .hero h1 { font-size: clamp(57px, 7.7vw, 82px); }
  .ruled { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { gap: 55px; }
  .career { grid-template-columns: 1fr; gap: 35px; }
  .project { grid-template-columns: 55px 1fr 1fr; padding-block: 30px; }
  .project .tags { grid-column: 2 / 3; }
  .project-arrow { grid-column: 3; grid-row: 2; justify-self: end; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 36px); }
  .site-header { height: 76px; }
  .brand { font-size: 16px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 75px; left: 0; right: 0; padding: 18px; background: var(--bg); border: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  nav.is-open { display: flex; }
  nav a { padding: 16px; border-bottom: 1px solid var(--line); }
  nav a:last-child { border-bottom: 0; }
  .hero { min-height: calc(100svh - 76px); grid-template-columns: 1fr; padding: 72px 0 100px; }
  .hero h1 { font-size: clamp(50px, 14.5vw, 73px); margin: 36px 0 34px; }
  .hero-visual { position: absolute; width: 75vw; right: -27vw; top: 17%; opacity: .19; z-index: -1; }
  .button { width: 100%; }
  .ruled { padding: 26px 0 95px; gap: 48px; }
  .about-grid, .stack-grid { grid-template-columns: 1fr; gap: 45px; }
  .career { margin-top: 75px; }
  .timeline-item { grid-template-columns: 105px 1fr; gap: 12px; padding: 18px 0; }
  .timeline-item p { grid-column: 2; }
  .stats { gap: 12px; }
  .stats strong { font-size: 21px; }
  .stats span { font-size: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 45px; }
  .project { display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px 14px; min-height: 0; padding: 28px 0; }
  .project-title { grid-column: 2 / 3; }
  .project > p { grid-column: 2 / 4; margin: 7px 0 10px; }
  .project .tags { grid-column: 2 / 4; }
  .project-arrow { grid-column: 3; grid-row: 1; }
  .contact { min-height: 65vh; }
  .contact-meta span:last-child { display: none; }
  .contact h2 { font-size: clamp(58px, 18vw, 88px); }
  .contact-link { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
