@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0c1018;
  --bg-soft: #111722;
  --panel: #171e2c;
  --panel-raised: #202a3b;
  --ink: #f2f4f8;
  --ink-muted: #b1bac8;
  --ink-faint: #8792a4;
  --line: rgba(184, 198, 218, 0.12);
  --line-strong: rgba(184, 198, 218, 0.22);
  --accent: #ff774b;
  --accent-dark: #2b1813;
  --accent-ink: #2a130b;
  --orange: #ffa06f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-small: 14px;
  --container: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --bg-soft: #edf0f6;
  --panel: #ffffff;
  --panel-raised: #f5f7fb;
  --ink: #182133;
  --ink-muted: #536074;
  --ink-faint: #68758a;
  --line: rgba(24, 33, 51, 0.12);
  --line-strong: rgba(24, 33, 51, 0.22);
  --accent: #ed6842;
  --accent-dark: #ffe1d8;
  --accent-ink: #32160d;
  --orange: #bd4c2b;
  --shadow: 0 24px 70px rgba(37, 49, 74, 0.13);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding-block: 112px; }
.section-shell { position: relative; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: -0.04em; transform: rotate(-4deg); }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--ink-faint); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.site-nav a { color: var(--ink-muted); font-size: 13px; font-weight: 600; transition: color 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .nav-contact { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.nav-contact span { color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); }
.theme-toggle span { color: var(--accent); font-size: 13px; }
.menu-toggle { display: none; }

.hero { padding-top: 86px; background: radial-gradient(ellipse at 76% 40%, rgba(131, 174, 82, .10), transparent 34%), linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy { max-width: 850px; padding-bottom: 38px; }
.hero-intro { max-width: 780px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 65%, transparent); }
.eyebrow-divider { color: var(--ink-faint); }
.hero h1 { margin: 0; font-size: clamp(44px, 6.1vw, 78px); font-weight: 680; letter-spacing: -.075em; line-height: .99; }
.hero h1 span { color: var(--ink-muted); font-weight: 500; }
.hero-role { margin: 23px 0 12px; color: var(--accent); font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.hero-role span { padding-inline: 5px; color: var(--ink-faint); }
.hero-intro { max-width: 780px; margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.78; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 19px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 13px; font-weight: 700; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 84%, white); }
.button-quiet { color: var(--ink); }
.button-quiet:hover { border-color: var(--accent); }
.button span { font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 42px; color: var(--ink-muted); font-size: 12px; }
.hero-meta > span { display: grid; gap: 4px; }
.meta-label { color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: .14em; }

.hero-visual-wrap { position: relative; max-width: 480px; justify-self: end; width: 100%; }
.hero-visual { position: relative; margin: 0; padding: 12px; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: var(--shadow); }
.visual-topline { display: flex; justify-content: space-between; padding: 5px 4px 12px; color: var(--ink-faint); font: 700 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .13em; }
.hero-visual img { width: 100%; height: 354px; object-fit: cover; object-position: center 54%; filter: saturate(.88); }
.visual-caption { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 16px 4px 4px; }
.visual-caption > span:first-child { display: grid; gap: 2px; }
.caption-label { color: var(--ink-faint); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.visual-caption strong { font-size: 15px; letter-spacing: .02em; }
.caption-tech { color: var(--ink-muted); font: 12px "SFMono-Regular", Consolas, monospace; }
.caption-tech i { color: var(--accent); font-style: normal; }
.visual-coordinate { position: absolute; z-index: 1; color: rgba(255,255,255,.72); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; writing-mode: vertical-rl; }
.coordinate-top { top: 79px; right: 22px; }
.coordinate-bottom { bottom: 94px; left: 21px; transform: rotate(180deg); }
.visual-note { display: flex; align-items: center; gap: 13px; position: absolute; right: -32px; bottom: 44px; padding: 13px 16px; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--ink-muted); font: 10px "SFMono-Regular", Consolas, monospace; box-shadow: var(--shadow); }
.visual-note b { padding-inline: 3px; color: var(--accent); font-weight: 500; }
.note-line { display: inline-block; width: 21px; height: 1px; background: var(--accent); }
.focus-strip { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); min-height: 82px; margin-top: 56px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.focus-label { color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.focus-strip b { margin-right: 9px; color: var(--accent); font: 10px "SFMono-Regular", Consolas, monospace; }
.interest-chip { margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-muted); font-size: 10px; }

.section-projects { background: var(--bg); }
.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.5vw, 55px); font-weight: 610; letter-spacing: -.065em; line-height: 1.06; }
.heading-period { color: var(--accent); }
.section-heading-split { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-lead { max-width: 365px; margin: 0 0 5px; color: var(--ink-muted); font-size: 13px; line-height: 1.75; }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar-label { margin: 0; color: var(--ink-faint); font-size: 11px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 11px; transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
.filter-button:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.filter-button span { font-size: 9px; opacity: .7; }
.filter-status { min-height: 0; margin: 0; color: var(--ink-faint); font-size: 11px; }
.filter-status:not(:empty) { padding-top: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.project-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-card-featured { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); }
.project-image { position: relative; overflow: hidden; min-height: 260px; background: #171b18; }
.project-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center 47%; transition: transform 500ms ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-image-featured { min-height: 100%; }
.project-image-featured img { min-height: 100%; object-position: center; }
.image-index, .image-caption { position: absolute; z-index: 1; color: white; font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.image-index { top: 17px; left: 17px; padding: 7px 9px; background: rgba(16,20,18,.74); }
.image-caption { right: 17px; bottom: 17px; padding: 7px 9px; background: rgba(16,20,18,.74); }
.project-card-content { padding: 24px; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.project-type { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.project-type i { color: var(--ink-faint); font-style: normal; }
.project-date { color: var(--ink-faint); font: 10px "SFMono-Regular", Consolas, monospace; }
.project-card h3 { margin: 0; font-size: clamp(22px, 2.3vw, 29px); font-weight: 640; letter-spacing: -.05em; line-height: 1.14; }
.project-subtitle { margin: 6px 0 13px; color: var(--ink-muted); font-size: 12px; }
.project-summary { max-width: 560px; margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag-list span { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-muted); font: 9px/1.3 "SFMono-Regular", Consolas, monospace; }
.case-outline { margin-top: 19px; border-top: 1px solid var(--line); }
.case-outline summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 45px; padding-top: 8px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.case-outline summary::-webkit-details-marker { display: none; }
.case-outline summary span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 15px; font-weight: 400; transition: transform 160ms ease; }
.case-outline[open] summary span { transform: rotate(45deg); }
.case-outline-content { padding: 3px 0 2px; animation: show-details 180ms ease-out; }
.case-outline-content dl { display: grid; gap: 13px; margin: 0; }
.case-outline-content dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; }
.case-outline-content dt { color: var(--accent); font-size: 10px; font-weight: 750; }
.case-outline-content dd { margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.6; }
.asset-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 9px; margin-top: 18px; }
.asset-gallery figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.asset-gallery img { width: 100%; height: 94px; object-fit: contain; background: #111714; }
.asset-gallery figcaption { padding: 7px 8px; color: var(--ink-faint); font-size: 9px; line-height: 1.4; }
.lora-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lora-gallery img { height: clamp(150px, 20vw, 230px); }
.lora-gallery figure:last-child { grid-column: 1 / -1; }
.lora-gallery figure:last-child img { height: auto; max-height: 270px; }
.project-image-lora img { object-position: center 40%; }
.case-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 17px; }
.case-links a { color: var(--ink); font-size: 10px; font-weight: 750; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.case-links a span { margin-left: 4px; color: var(--accent); }
.evidence-note { margin: 16px 0 0; padding: 10px 12px; border-left: 2px solid var(--orange); background: color-mix(in srgb, var(--orange) 7%, transparent); color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.evidence-note strong, .case-outline-content dd strong { color: var(--ink); }

.project-art { position: relative; display: grid; min-height: 210px; overflow: hidden; place-items: center; isolation: isolate; background: var(--bg-soft); }
.project-art::before, .project-art::after { position: absolute; z-index: -1; content: ""; }
.project-art::before { inset: 0; opacity: .24; background: linear-gradient(90deg, transparent 49.7%, var(--line-strong) 50%, transparent 50.3%), linear-gradient(transparent 49.7%, var(--line-strong) 50%, transparent 50.3%); background-size: 36px 36px; }
.project-art::after { width: 220px; height: 220px; border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: 0 0 0 22px color-mix(in srgb, var(--accent) 3%, transparent), 0 0 0 48px color-mix(in srgb, var(--accent) 2%, transparent); }
.art-code { position: absolute; top: 17px; left: 18px; color: var(--ink-faint); font: 10px "SFMono-Regular", Consolas, monospace; }
.art-center { z-index: 1; color: var(--accent); font: 700 25px/1.05 "SFMono-Regular", Consolas, monospace; letter-spacing: -.06em; text-align: center; }
.art-footnote { position: absolute; right: 14px; bottom: 12px; color: var(--ink-faint); font: 8px "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; }
.project-art-lora { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 8%, var(--bg-soft)), var(--bg-soft) 67%); }
.project-art-lora::after { width: 115px; height: 115px; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 30px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 0 61px color-mix(in srgb, var(--accent) 5%, transparent); }
.project-art-lora .art-center { font-size: 19px; }
.art-orbit { position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.orbit-one { top: 31%; left: 34%; }.orbit-two { right: 30%; bottom: 30%; width: 5px; height: 5px; background: var(--orange); }
.project-art-plc { background: radial-gradient(ellipse at 52% 47%, color-mix(in srgb, #74a6c4 13%, var(--bg-soft)), var(--bg-soft) 65%); }
.project-art-plc::after { width: 165px; height: 112px; border-radius: 5px; box-shadow: 0 0 0 10px var(--bg-soft), 0 0 0 11px var(--line-strong), 0 0 0 35px color-mix(in srgb, #74a6c4 5%, transparent); }
.project-art-plc .art-center { font-size: 15px; color: #9dc8dd; }
.ladder-lines { position: absolute; z-index: 1; display: grid; width: 100px; gap: 14px; transform: translate(-12px, 2px); opacity: .54; }
.ladder-lines i { height: 1px; background: #9dc8dd; }
.ladder-lines i:nth-child(2) { width: 64%; }.ladder-lines i:nth-child(3) { width: 82%; }.ladder-lines i:nth-child(4) { width: 52%; }
.project-art-gas { background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--orange) 9%, var(--bg-soft)), var(--bg-soft) 70%); }
.project-art-gas::after { width: 128px; height: 128px; border-color: color-mix(in srgb, var(--orange) 46%, var(--line)); box-shadow: 0 0 0 18px color-mix(in srgb, var(--orange) 6%, transparent), 0 0 0 43px color-mix(in srgb, var(--orange) 4%, transparent); }
.project-art-gas .art-center { color: var(--orange); font-size: 12px; letter-spacing: .07em; }
.signal-bars { position: absolute; top: calc(50% - 2px); display: flex; align-items: center; gap: 7px; }
.signal-bars i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: .65; }
.signal-bars i:nth-child(2), .signal-bars i:nth-child(4) { width: 12px; height: 1px; border-radius: 0; }.signal-bars i:nth-child(3) { width: 18px; height: 1px; border-radius: 0; }
.project-art-repair { background: radial-gradient(ellipse at 45% 50%, color-mix(in srgb, #9bb4a2 9%, var(--bg-soft)), var(--bg-soft) 70%); }
.project-art-repair::after { width: 145px; height: 145px; border-color: color-mix(in srgb, #9bb4a2 40%, var(--line)); box-shadow: 0 0 0 25px color-mix(in srgb, #9bb4a2 5%, transparent), 0 0 0 50px color-mix(in srgb, #9bb4a2 3%, transparent); }
.project-art-repair .art-center { color: #c4d1c6; font-size: 10px; letter-spacing: .04em; line-height: 1.8; }
.trace-path { position: absolute; z-index: -1; top: 50%; left: 0; width: 100%; height: 1px; background: color-mix(in srgb, #9bb4a2 55%, transparent); }
.asset-callout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); background: var(--bg-soft); }
.callout-symbol { color: var(--accent); font: 22px monospace; }
.asset-callout p { margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.6; }
.asset-callout strong { color: var(--ink); font-size: 12px; }
.asset-callout a { color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap; }
.asset-callout a span { margin-left: 4px; }

.section-experience { border-top: 1px solid var(--line); background: var(--bg-soft); }
.experience-list { border-top: 1px solid var(--line-strong); }
.experience-item { display: grid; grid-template-columns: 150px 1fr 42px; gap: 26px; align-items: start; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.experience-period { padding-top: 5px; color: var(--ink-faint); font: 11px "SFMono-Regular", Consolas, monospace; }
.experience-type { display: inline-flex; margin-bottom: 7px; color: var(--accent); font: 8px "SFMono-Regular", Consolas, monospace; font-weight: 700; letter-spacing: .12em; }
.experience-main h3 { max-width: 650px; margin: 0; font-size: 18px; font-weight: 620; letter-spacing: -.03em; line-height: 1.35; }
.experience-org { margin: 6px 0 10px !important; color: var(--accent) !important; font-size: 11px !important; font-weight: 650; }
.experience-org span { padding-inline: 4px; color: var(--ink-faint); }
.experience-main > p:last-child { max-width: 650px; margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.65; }
.experience-index { justify-self: end; color: var(--ink-faint); font: 10px "SFMono-Regular", Consolas, monospace; }

.section-skills { background: var(--bg); }
.section-skills .section-heading { margin-bottom: 40px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 40px 1fr; gap: 16px; min-height: 206px; padding: 26px 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill-number { padding-top: 4px; color: var(--accent); font: 10px "SFMono-Regular", Consolas, monospace; }
.skill-group h3 { margin: 0 0 9px; font-size: 16px; font-weight: 620; letter-spacing: -.025em; }
.skill-group p { max-width: 450px; margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.7; }
.skill-group .tag-list { margin-top: 16px; }
.skills-note { display: flex; align-items: center; gap: 10px; margin: 21px 0 0; color: var(--ink-muted); font-size: 11px; }
.skills-note span { color: var(--accent); }

.section-education { border-top: 1px solid var(--line); background: var(--bg-soft); }
.education-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(38px, 8vw, 106px); }
.section-education .section-heading { margin-bottom: 32px; }
.section-education h2 { font-size: clamp(31px, 4vw, 47px); }
.education-card { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding-block: 19px; border-top: 1px solid var(--line); }
.education-card:last-child { border-bottom: 1px solid var(--line); }
.education-year { padding-top: 3px; color: var(--accent); font: 10px "SFMono-Regular", Consolas, monospace; }
.education-card h3 { margin: 0; font-size: 15px; font-weight: 650; }
.education-card p { margin: 5px 0 0; color: var(--ink-muted); font-size: 11px; }
.education-card p span { color: var(--ink-faint); }
.education-card .education-thesis { max-width: 490px; margin-top: 10px; color: var(--ink-faint); line-height: 1.6; }
.training-panel { align-self: end; padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.training-panel .eyebrow { margin-bottom: 8px; font-size: 9px; }
.training-panel h3 { margin: 0 0 15px; font-size: 19px; font-weight: 620; letter-spacing: -.04em; }
.training-list { margin: 0; padding: 0; list-style: none; }
.training-list li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding-block: 10px; border-top: 1px solid var(--line); }
.training-list li > span { color: var(--accent); font: 10px "SFMono-Regular", Consolas, monospace; }
.training-list p { margin: 0; color: var(--ink); font-size: 11px; font-weight: 600; }
.training-list small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 10px; font-weight: 450; }
.language-block { margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.language-block .meta-label { display: block; margin-bottom: 8px; }
.language-block p { display: flex; justify-content: space-between; gap: 15px; margin: 5px 0; color: var(--ink-muted); font-size: 10px; }
.language-block p span { color: var(--ink); }

.contact-section { padding-block: 100px; background: var(--accent); color: var(--accent-ink); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(330px, .8fr); align-items: center; gap: clamp(40px, 8vw, 120px); }
.contact-section .eyebrow { color: color-mix(in srgb, var(--accent-ink) 63%, transparent); }
.contact-section .eyebrow-divider { color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.contact-section h2 { margin: 0; font-size: clamp(43px, 6.4vw, 73px); font-weight: 640; letter-spacing: -.075em; line-height: .98; }
.contact-section h2 span { opacity: .58; }
.contact-intro { max-width: 420px; margin: 23px 0 0; color: color-mix(in srgb, var(--accent-ink) 76%, transparent); font-size: 13px; line-height: 1.7; }
.contact-card { padding: 7px 22px; border: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent); background: color-mix(in srgb, white 12%, transparent); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 19%, transparent); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.contact-row small { color: color-mix(in srgb, var(--accent-ink) 62%, transparent); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.contact-row strong { overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.contact-row > span:last-child { flex: 0 0 auto; font-size: 16px; }
.contact-pending { cursor: default; }
.contact-pending strong { font-size: 11px; }
.pending-mark { color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }
.resume-note { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0 11px; color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.resume-icon { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); border-radius: 50%; }
.resume-note p { margin: 0; font-size: 10px; line-height: 1.6; }
.resume-note strong { color: var(--accent-ink); font-size: 11px; }

.site-footer { padding-block: 24px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 50px 1fr auto auto; align-items: center; gap: 25px; }
.footer-brand { color: var(--ink); font-size: 14px; font-weight: 850; letter-spacing: -.07em; }
.footer-brand span { color: var(--accent); }
.footer-inner p { margin: 0; color: var(--ink-faint); font-size: 10px; }
.back-to-top { color: var(--ink-muted); font-size: 10px; font-weight: 700; }
.back-to-top:hover { color: var(--accent); }
.footer-copy { color: var(--ink-faint); font-size: 9px; white-space: nowrap; }

@keyframes show-details { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero { padding-top: 68px; }
  .hero-grid { gap: 48px; }
  .hero-visual img { height: 300px; }
  .focus-strip { flex-wrap: wrap; gap: 13px 24px; padding-block: 17px; }
  .interest-chip { margin-left: 0; }
  .project-card-featured { grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr); }
  .project-card-content { padding: 21px; }
  .case-outline-content dl > div { grid-template-columns: 88px 1fr; }
  .education-grid { gap: 42px; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding-block: 78px; }
  .header-inner { min-height: 66px; }
  .brand-name { font-size: 13px; }
  .brand-name span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 9px 0 9px 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 750; }
  .menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { display: block; width: 18px; height: 1.5px; background: var(--accent); transition: transform 160ms ease; }
  .menu-toggle-icon { position: relative; }
  .menu-toggle-icon::before, .menu-toggle-icon::after { position: absolute; left: 0; content: ""; }
  .menu-toggle-icon::before { top: -5px; }.menu-toggle-icon::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; gap: 0; padding: 7px 18px 15px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: grid; }
  .no-js .site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding: 12px 18px; }
  .site-nav a { padding: 11px 3px; }
  .site-nav .nav-contact { width: fit-content; margin-top: 5px; padding: 8px 12px; }
  .theme-toggle { width: fit-content; margin-top: 9px; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(43px, 11vw, 67px); }
  .hero-role { margin-top: 17px; font-size: 13px; }
  .hero-intro { font-size: 14px; }
  .hero-meta { margin-top: 28px; gap: 11px 25px; }
  .hero-visual-wrap { max-width: 510px; justify-self: center; }
  .hero-visual img { height: clamp(245px, 70vw, 360px); }
  .visual-note { right: -6px; bottom: 39px; padding: 11px 12px; font-size: 9px; }
  .focus-strip { gap: 13px 20px; min-height: 0; margin-top: 42px; padding-block: 21px; }
  .focus-label { width: 100%; }
  .focus-strip > span:not(.focus-label):not(.interest-chip) { font-size: 10px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading-split { display: block; }
  .section-heading h2 { font-size: clamp(33px, 8vw, 47px); }
  .section-lead { max-width: 500px; margin-top: 18px; }
  .project-toolbar { align-items: flex-start; }
  .toolbar-label { width: 100%; }
  .filter-list { gap: 4px; }
  .filter-button { padding: 7px 10px; font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .project-card-featured { display: block; grid-column: auto; }
  .project-image-featured { min-height: 230px; }
  .project-image-featured img { min-height: 230px; max-height: 300px; object-position: center 43%; }
  .project-art { min-height: 185px; }
  .project-card-content { padding: 19px; }
  .project-card h3 { font-size: 24px; }
  .case-outline-content dl > div { grid-template-columns: 92px 1fr; gap: 10px; }
  .asset-callout { grid-template-columns: auto 1fr; gap: 12px; padding: 17px; }
  .asset-callout a { grid-column: 2; }
  .experience-item { grid-template-columns: 104px 1fr 23px; gap: 12px; padding: 21px 2px; }
  .experience-period { font-size: 9px; }
  .experience-main h3 { font-size: 15px; }
  .experience-main > p:last-child { font-size: 11px; }
  .experience-index { font-size: 9px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { min-height: 0; padding: 22px 18px; }
  .education-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-education .section-heading h2 { font-size: clamp(31px, 8vw, 44px); }
  .training-panel { align-self: auto; }
  .contact-section { padding-block: 76px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-section h2 { font-size: clamp(42px, 10vw, 65px); }
  .contact-card { padding-inline: 16px; }
  .footer-inner { grid-template-columns: 38px 1fr auto; gap: 12px; }
  .footer-inner p { grid-column: 2 / -1; grid-row: 2; }
  .back-to-top { grid-column: 3; grid-row: 1; }
  .footer-copy { grid-column: 2 / -1; grid-row: 3; }
}

@media (max-width: 420px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero-actions { gap: 9px; }
  .button { min-height: 44px; padding-inline: 13px; font-size: 11px; }
  .hero-meta { display: grid; }
  .hero-visual { padding: 9px; }
  .visual-topline { padding-bottom: 9px; font-size: 8px; }
  .visual-caption { align-items: flex-start; flex-direction: column; gap: 7px; padding: 12px 3px 3px; }
  .visual-coordinate { display: none; }
  .visual-note { right: -2px; bottom: 71px; }
  .focus-strip > span:not(.focus-label):not(.interest-chip) { width: calc(50% - 12px); }
  .interest-chip { font-size: 9px; }
  .filter-list { display: grid; grid-template-columns: repeat(3, auto); }
  .project-card-top { align-items: flex-start; }
  .project-type { max-width: 65%; }
  .case-outline-content dl > div { grid-template-columns: 1fr; gap: 3px; }
  .experience-item { grid-template-columns: 1fr 24px; }
  .experience-period { grid-column: 1; grid-row: 1; }
  .experience-main { grid-column: 1; grid-row: 2; }
  .experience-index { grid-column: 2; grid-row: 1; }
  .education-card { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { grid-template-columns: 30px 1fr; }
  .footer-inner p { grid-column: 2; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 3; }
  .footer-copy { grid-column: 2; grid-row: 4; }
}

.no-js .filter-button { display: none; }
.no-js .filter-status { display: none; }
.no-js .theme-toggle, .no-js .menu-toggle { display: none; }

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

/* Dashboard-style layout inspired by the selected engineering reference. */
body {
  background: radial-gradient(ellipse at 83% 3%, rgba(59, 78, 115, .15), transparent 34%), var(--bg);
}

body::before {
  opacity: .12;
  background-image:
    linear-gradient(rgba(166, 187, 218, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 187, 218, .035) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 96%, rgba(255, 119, 75, .10) 96% 96.12%, transparent 96.12%);
  background-size: 42px 42px, 42px 42px, 100% 220px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

html { scroll-padding-top: 24px; }

.site-header {
  position: fixed;
  z-index: 60;
  inset: 16px auto 16px 16px;
  width: 252px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-inner {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 17px 14px 15px;
}

.sidebar-inner::after {
  position: absolute;
  right: 22px;
  bottom: 58px;
  width: 66px;
  height: 76px;
  border-right: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-bottom-right-radius: 18px;
  content: "";
  opacity: .45;
  pointer-events: none;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 3px 16px;
  border-bottom: 1px solid var(--line);
}

.brand { min-width: 0; gap: 10px; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; transform: none; }
.brand-name { display: grid; gap: 1px; font-size: 13px; }
.brand-name span { color: var(--ink-faint); font-size: 9px; font-weight: 550; letter-spacing: .02em; }
.theme-toggle { width: 38px; height: 38px; flex: 0 0 auto; justify-content: center; gap: 0; padding: 0; border-color: var(--line); border-radius: 50%; background: var(--panel-raised); color: var(--ink); font-size: 0; }
.theme-toggle span { color: var(--accent); font-size: 15px; }
.theme-toggle .theme-label { display: none; }
.menu-toggle { display: none !important; }

.site-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  margin-top: 17px;
}

.site-nav a,
.site-nav .nav-contact {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover { border-color: var(--line); background: var(--panel-raised); color: var(--ink); transform: translateX(2px); }
.site-nav a[aria-current="location"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.nav-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); color: var(--ink-faint); font: 9px "SFMono-Regular", Consolas, monospace; }
.site-nav a[aria-current="location"] .nav-icon { border-color: color-mix(in srgb, var(--accent-ink) 15%, transparent); background: color-mix(in srgb, white 18%, transparent); color: var(--accent-ink); }
.nav-copy { display: grid; gap: 1px; }
.nav-copy > span { color: inherit; font-size: 12px; line-height: 1.25; }
.nav-copy small { color: var(--ink-faint); font-size: 9px; font-weight: 500; line-height: 1.25; }
.site-nav a[aria-current="location"] .nav-copy small { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.site-nav .nav-contact { margin-top: 0; padding: 8px 10px; border-radius: 15px; color: var(--ink-muted); }
.site-nav .nav-contact .nav-icon { color: var(--ink-faint); }
.site-nav .nav-contact .nav-copy > span { color: var(--ink-muted); }
.site-nav .nav-contact[aria-current="location"] .nav-copy > span { color: var(--accent-ink); }
.site-nav .nav-contact[aria-current="location"] .nav-copy small { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.sidebar-foot { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 6px 8px; margin-top: auto; padding: 15px 5px 2px; border-top: 1px solid var(--line); color: var(--ink-faint); font: 8px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.sidebar-foot .status-dot { width: 6px; height: 6px; }
.sidebar-foot i { color: var(--accent); font-style: normal; }
.sidebar-foot small { grid-column: 2; color: var(--ink-muted); font: 10px Inter, "Segoe UI", sans-serif; letter-spacing: 0; }

.page-shell { width: auto; margin-left: 286px; }
.site-footer.page-shell { padding-inline: 0; }
.section { overflow: visible; margin-block: 16px; padding-block: 0; background: transparent; }
.section > .container {
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

.hero { padding-top: 16px; background: transparent; }
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: clamp(38px, 4.5vw, 66px); padding: clamp(25px, 3.7vw, 46px); border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: var(--shadow); }
.hero-copy { padding-bottom: 0; }
.hero h1 { font-size: clamp(43px, 4.8vw, 64px); letter-spacing: -.065em; }
.hero-visual { overflow: hidden; border-radius: 19px; }
.hero-visual img { border-radius: 11px; }
.visual-note { border-radius: 12px; }
.focus-strip { min-height: 0; gap: 18px 26px; margin-top: 14px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.interest-chip { border-color: var(--line-strong); }

.section-heading h2 { letter-spacing: -.055em; }
.project-toolbar { border-color: var(--line); }
.filter-button { border-radius: 12px; }
.filter-button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.project-card { border-radius: 19px; background: var(--panel-raised); }
.project-card-featured { background: var(--panel-raised); }
.project-image, .project-art { background-color: var(--bg-soft); }
.case-outline summary { min-height: 48px; }
.asset-callout { border-radius: 16px; background: var(--panel-raised); }
.experience-list { border-color: var(--line); }
.experience-item { padding-inline: 10px; }
.skills-grid { overflow: hidden; border-radius: 16px; }
.skill-group { background: color-mix(in srgb, var(--panel-raised) 55%, transparent); }
.education-card, .education-card:last-child { border-color: var(--line); }

.contact-section { margin-block: 16px; padding-block: 0; background: transparent; color: var(--ink); }
.contact-grid { padding: clamp(24px, 3.2vw, 42px); border: 1px solid var(--line); border-radius: 25px; background: var(--panel); box-shadow: var(--shadow); }
.contact-section .eyebrow { color: var(--accent); }
.contact-section .eyebrow-divider { color: var(--ink-faint); }
.contact-section h2 { font-size: clamp(38px, 5vw, 58px); }
.contact-section h2 span { color: var(--ink-muted); opacity: 1; }
.contact-intro { color: var(--ink-muted); }
.contact-card { border-color: var(--line); border-radius: 17px; background: var(--panel-raised); }
.contact-row { border-color: var(--line); }
.contact-row small { color: var(--ink-faint); }
.contact-row strong { color: var(--ink); }
.contact-pending strong { color: var(--ink-muted); }
.resume-note { color: var(--ink-muted); }
.resume-note strong { color: var(--ink); }
.resume-icon { border-color: var(--line-strong); color: var(--accent); }
.site-footer { padding-block: 17px; }

@media (max-width: 980px) and (min-width: 741px) {
  .site-header { width: 222px; }
  .page-shell { margin-left: 254px; }
  .sidebar-inner { padding-inline: 11px; }
  .brand-name { font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); gap: 25px; }
  .hero h1 { font-size: clamp(38px, 5vw, 52px); }
  .hero-visual img { height: 270px; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 142px; }
  .site-header { position: sticky; inset: auto; width: auto; height: auto; margin: 8px 10px 0; border-radius: 20px; }
  .sidebar-inner { display: block; height: auto; overflow: visible; padding: 10px 12px 7px; }
  .sidebar-inner::after { display: none; }
  .sidebar-top { gap: 8px; padding: 0 2px 9px; border-bottom: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 35px; height: 35px; font-size: 11px; }
  .brand-name { font-size: 12px; }
  .brand-name span { font-size: 8px; }
  .theme-toggle { width: 35px; height: 35px; }
  .site-nav { display: flex; gap: 6px; margin: 0; padding: 0 0 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--accent) var(--panel-raised); scrollbar-width: thin; }
  .site-nav a, .site-nav .nav-contact { width: auto; min-width: max-content; min-height: 36px; gap: 0; padding: 7px 11px; border-radius: 12px; font-size: 10px; }
  .site-nav a:hover { transform: none; }
  .nav-icon, .nav-copy small { display: none; }
  .nav-copy > span { font-size: 10px; }
  .site-nav .nav-contact { margin-top: 0; padding: 7px 11px; }
  .sidebar-foot { display: none; }
  .page-shell, .site-footer.page-shell { margin-left: 0; }
  .section { margin-block: 11px; padding: 0; }
  .section > .container { padding: 23px 18px; border-radius: 21px; }
  .hero { padding-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding: 23px 18px; border-radius: 21px; }
  .hero-visual img { height: clamp(240px, 66vw, 350px); }
  .focus-strip { gap: 12px 18px; margin-top: 10px; padding: 16px; border-radius: 17px; }
  .project-card-featured { display: block; }
  .project-card-featured .project-image { min-height: 0; aspect-ratio: 1 / 1; }
  .project-card-featured .project-image img { min-height: 0; max-height: none; height: 100%; }
  .contact-section { margin-block: 11px; padding: 0; }
  .contact-grid { padding: 23px 18px; border-radius: 21px; }
  .site-footer { padding-block: 14px; }
}

@media (max-width: 420px) {
  .site-header { margin-inline: 7px; }
  .sidebar-inner { padding-inline: 9px; }
  .brand-name { max-width: 155px; }
  .section > .container { padding-inline: 15px; }
  .hero { padding-top: 30px; }
  .hero-grid { padding-inline: 15px; }
  .focus-strip > span:not(.focus-label):not(.interest-chip) { width: calc(50% - 10px); }
  .contact-grid { padding-inline: 15px; }
}

/* Single access screen shown before the portfolio. */
.access-page { min-height: 100vh; }
.access-layout { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.access-card { width: min(100%, 490px); padding: clamp(25px, 6vw, 48px); border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: var(--shadow); }
.access-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 54px; color: var(--ink-muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.access-brand .brand-mark { display: grid; place-items: center; }
.access-brand i { color: var(--accent); font-style: normal; }
.access-card .eyebrow { margin-bottom: 17px; }
.access-card h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 7vw, 50px); font-weight: 850; letter-spacing: -.065em; line-height: 1.04; }
.access-card h1 span { color: var(--accent); }
.access-description { max-width: 340px; margin: 16px 0 28px; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.access-form label { display: block; margin-bottom: 8px; color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.access-input-row { display: flex; gap: 9px; }
.access-input-row input { min-width: 0; flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: var(--bg-soft); color: var(--ink); font: inherit; }
.access-input-row input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.access-input-row input[aria-invalid="true"] { border-color: #ef6a68; }
.access-input-row .button { min-height: 48px; }
.access-message { min-height: 20px; margin: 10px 0 0; color: var(--ink-faint); font-size: 11px; }
.access-message.is-error { color: #ff8a80; }
.access-footnote { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }

@media (max-width: 480px) {
  .access-layout { padding: 16px; }
  .access-card { border-radius: 21px; }
  .access-brand { margin-bottom: 42px; }
  .access-input-row { align-items: stretch; flex-direction: column; }
  .access-input-row .button { justify-content: center; }
}

/* Portfolio visual direction: compact engineering rail and evidence-led cards. */
@media (min-width: 741px) {
  .site-header { inset: 18px auto 18px 18px; width: 78px; border-radius: 30px; }
  .sidebar-inner { align-items: center; padding: 16px 10px 14px; }
  .sidebar-top { width: 100%; flex-direction: column; padding: 0 0 15px; }
  .brand { justify-content: center; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-name { display: none; }
  .theme-toggle { margin: 2px auto 0; }
  .site-nav { justify-items: center; gap: 9px; margin-top: 15px; }
  .site-nav a, .site-nav .nav-contact { width: 48px; min-height: 48px; justify-content: center; padding: 0; border-radius: 50%; }
  .site-nav a:hover { transform: translateY(-2px); }
  .nav-icon { width: 46px; height: 46px; border-radius: 50%; font: 18px "Segoe UI Symbol", "Segoe UI", sans-serif; }
  .nav-copy { position: absolute; left: 68px; z-index: 2; display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-raised); color: var(--ink); opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity 140ms ease, transform 140ms ease; white-space: nowrap; }
  .site-nav a:hover .nav-copy, .site-nav a:focus-visible .nav-copy { opacity: 1; transform: translateX(0); }
  .nav-copy small { display: none; }
  .sidebar-foot { display: none; }
  .page-shell { margin-left: 116px; margin-right: 28px; }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding: 54px clamp(24px, 4vw, 58px) 42px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .hero-copy { align-self: center; }
  .focus-strip { margin: 0 clamp(24px, 4vw, 58px) 26px; }
  .section { margin-block: 22px; }
  .section > .container { padding: clamp(28px, 4vw, 54px); border-radius: 22px; }
  .section-heading { margin-bottom: 38px; }
  .project-card { overflow: hidden; border-radius: 15px; }
  .project-card-content { padding: 25px; }
  .project-art, .project-evidence-pending { min-height: 225px; }
}

.project-evidence-pending { display: flex; min-height: 200px; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 23px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--panel-raised), var(--bg-soft)); color: var(--ink); }
.project-image-sorting { min-height: 0; aspect-ratio: 16 / 9; background: #efefed; }
.project-image-sorting img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; background: #efefed; }
.project-evidence-pending > span { color: var(--accent); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.project-evidence-pending strong { font-size: clamp(23px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.08; }
.project-evidence-pending small { color: var(--ink-faint); font-size: 10px; }
.case-detail-pending { align-self: stretch; min-height: 300px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at 72% 20%, rgba(255,119,75,.12), transparent 42%), linear-gradient(145deg, var(--panel-raised), var(--bg-soft)); }
.experience-index { text-align: right; }
.experience-index:hover { color: var(--accent); }

.hero-visual { position: relative; }
.visual-caption { min-width: 0; }
.visual-caption > span:first-child { min-width: 0; }
.visual-caption strong { font-size: 13px; line-height: 1.35; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 clamp(24px, 4vw, 58px) 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-stats > div { display: grid; gap: 5px; }
.profile-stats strong { color: var(--ink); font-size: clamp(24px, 3vw, 36px); letter-spacing: -.05em; line-height: 1; }
.profile-stats strong span { color: var(--ink-muted); font-size: .56em; letter-spacing: -.02em; }
.profile-stats small { color: var(--accent); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.about-section { margin: 22px 28px 28px 116px; }
.about-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: clamp(28px, 5vw, 68px); align-items: center; padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.about-copy h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.about-copy > p:not(.eyebrow) { max-width: 680px; color: var(--ink-muted); font-size: 14px; line-height: 1.8; }
.about-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--bg-soft); }
.about-photo img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: center 22%; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 23px; color: var(--ink-faint); font-size: 11px; }
.about-links a { color: var(--ink-muted); font-weight: 650; }
.about-links a:hover { color: var(--accent); }

@media (max-width: 740px) {
  .project-evidence-pending { min-height: 175px; }
  .project-evidence-pending strong { font-size: 25px; }
  .profile-stats { gap: 13px; margin: 0 18px 15px; padding: 17px 0; }
  .profile-stats small { max-width: 105px; font-size: 8px; line-height: 1.5; }
  .about-section { margin: 11px 10px 15px; }
  .about-panel { grid-template-columns: 1fr; gap: 22px; padding: 23px 18px; border-radius: 21px; }
  .about-photo { max-width: 340px; }
  .about-photo img { max-height: 390px; }
}

/* Separate, evidence-led project case study. */
.case-card-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-card-action > span { max-width: 250px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.case-detail-shell { max-width: 1440px; padding-bottom: 24px; }
.case-detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(28px, 5vw, 70px); padding: clamp(30px, 5vw, 70px) clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.case-back-link { display: inline-block; margin-bottom: 30px; color: var(--ink-muted); font-size: 11px; text-underline-offset: 4px; }
.case-back-link:hover { color: var(--accent); }
.case-detail-hero .eyebrow { margin-bottom: 16px; }
.case-detail-hero h1 { margin: 0; font-size: clamp(42px, 6.3vw, 82px); letter-spacing: -.075em; line-height: .98; }
.case-detail-hero h1 span { color: var(--ink-muted); }
.case-detail-deck { max-width: 650px; margin: 20px 0 0; color: var(--ink-muted); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.75; }
.case-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-detail-facts > div { display: grid; align-content: start; gap: 7px; }
.case-detail-facts span, .case-layer-grid article > span { color: var(--accent); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.case-detail-facts strong { color: var(--ink); font-size: 11px; line-height: 1.45; }
.case-detail-hero .tag-list { gap: 6px; }
.case-detail-hero-image { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); }
.image-expand { position: relative; display: block; cursor: zoom-in; }
.image-expand::after { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: rgba(16,20,18,.86); color: #fff; content: "Lihat ukuran penuh ↗"; font: 9px "SFMono-Regular", Consolas, monospace; }
.image-expand:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.case-detail-hero-image img { display: block; width: 100%; max-height: 480px; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.case-plc-reference > a { display: grid; min-height: 360px; place-items: center; padding: 16px; background: #eeece8; }
.case-plc-reference img { width: auto; height: clamp(260px, 38vw, 400px); max-width: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
.case-plc-reference figcaption a { color: var(--accent); }
.case-detail-hero-image figcaption, .case-architecture-figure figcaption, .case-image-pair figcaption, .case-result-figure figcaption, .case-app-images figcaption, .case-evidence-gallery figcaption { padding: 10px 12px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.case-detail-section { padding: clamp(34px, 5vw, 64px) clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.case-section-heading { max-width: 800px; margin-bottom: 20px; }
.case-section-heading .eyebrow { margin-bottom: 10px; }
.case-section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.06em; line-height: 1.1; }
.case-prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 50px); max-width: 1050px; }
.case-prose-grid p, .case-section-intro { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.85; }
.case-section-intro { max-width: 800px; margin-bottom: 23px; }
.case-architecture-figure { margin: 0; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: 15px; background: var(--panel-raised); }
.case-architecture-figure img { display: block; width: 100%; max-height: 650px; object-fit: contain; }
.case-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.case-layer-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.case-layer-grid h3, .case-implementation-card h3, .case-app-evidence h3 { margin: 11px 0 8px; color: var(--ink); font-size: 16px; letter-spacing: -.025em; }
.case-layer-grid p, .case-implementation-card p, .case-app-evidence p { margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.75; }
.case-implementation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case-implementation-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.case-step { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font: 10px "SFMono-Regular", Consolas, monospace; }
.case-implementation-card h3 { margin-top: 3px; }
.case-image-pair, .case-evidence-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.case-image-pair figure, .case-evidence-gallery figure, .case-result-figure, .case-app-images figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.case-image-pair img, .case-evidence-gallery img { display: block; width: 100%; height: clamp(190px, 25vw, 340px); object-fit: cover; }
.case-poster-figure { width: min(100%, 720px); margin: 22px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.case-poster-figure a { display: block; padding: 12px; background: var(--bg-soft); }
.case-poster-figure img { display: block; width: 100%; max-height: 930px; margin-inline: auto; object-fit: contain; }
.case-poster-figure figcaption { padding: 11px 14px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.case-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.case-result-grid article { min-height: 165px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.case-result-grid strong { display: block; color: var(--accent); font-size: clamp(25px, 3.5vw, 42px); letter-spacing: -.06em; line-height: 1.05; }
.case-result-grid strong small { font-size: .44em; letter-spacing: 0; }
.case-result-grid p { margin: 12px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.65; }
.case-result-figure { margin-top: 14px; padding: 12px; }
.case-result-figure img { display: block; width: 100%; max-height: 430px; object-fit: contain; background: #111714; }
.case-app-evidence { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); gap: 24px; align-items: start; margin-top: 32px; }
.case-app-evidence .eyebrow { margin: 0; }
.case-app-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case-app-images img { display: block; width: 100%; height: clamp(250px, 32vw, 420px); object-fit: contain; background: #111714; }
.case-detail-bottom-nav { display: flex; justify-content: space-between; gap: 12px; padding: 24px clamp(20px, 4vw, 56px); }
.case-detail-page .site-footer .container { max-width: none; }

@media (max-width: 980px) and (min-width: 741px) {
  .case-detail-shell { margin-left: 244px; }
  .case-detail-hero { grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); }
  .case-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .case-detail-shell { margin-inline: 10px; }
  .case-detail-hero { grid-template-columns: 1fr; gap: 23px; padding: 24px 16px; }
  .case-back-link { margin-bottom: 23px; }
  .case-detail-hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .case-detail-facts { gap: 10px; }
  .case-detail-facts strong { font-size: 10px; }
  .case-detail-hero-image img { max-height: 350px; }
  .case-detail-section { padding: 32px 16px; scroll-margin-top: 155px; }
  .case-prose-grid, .case-layer-grid, .case-implementation-grid, .case-image-pair, .case-evidence-gallery, .case-app-evidence { grid-template-columns: 1fr; }
  .case-layer-grid { gap: 8px; }
  .case-layer-grid article { padding: 16px; }
  .case-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-result-grid article { min-height: 145px; padding: 15px; }
  .case-app-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-app-images img { height: clamp(230px, 76vw, 330px); }
  .case-detail-bottom-nav { padding: 20px 16px; }
}
@media (max-width: 420px) {
  .case-detail-shell { margin-inline: 7px; }
  .case-detail-facts { grid-template-columns: 1fr; gap: 12px; }
  .case-app-images { grid-template-columns: 1fr; }
  .case-app-images img { height: 330px; }
  .case-detail-bottom-nav { flex-direction: column; }
  .case-detail-bottom-nav .button { justify-content: center; }
}
