@charset "UTF-8";

:root {
  --ink: #171b20;
  --dark: #090b0e;
  --deep: #07090c;
  --muted: #aab2bc;
  --paper: #eeefed;
  --line: #cbd0d3;
  --accent: #a4e9f4;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --header-height: 98px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; background: var(--dark); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--dark); }
:focus-visible { outline: 2px solid #67c9df; outline-offset: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); z-index: 100; background: var(--accent); color: var(--dark); padding: 15px; }
.skip-link:focus { transform: none; }

/* A quiet header keeps the content and hardware in focus. */
.header { height: var(--header-height); padding: 0 5%; display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid #ffffff12; background: #090b0ec9; backdrop-filter: blur(16px); transition: background .25s; }
.header.is-scrolled { background: #090b0ef2; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand > span { font-size: 24px; font-weight: 600; letter-spacing: 4px; line-height: 1; }
.brand small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 2px; margin-top: 9px; color: #a0a8b1; }
.header nav { display: flex; gap: 34px; font-size: 15px; color: #b6bdc5; }
.header nav a { padding: 12px 0; transition: color .2s; }
.header nav a:hover { color: white; }
.nav-contact { font-size: 15px; display: flex; align-items: center; gap: 25px; border: 1px solid #ffffff40; border-radius: 3px; padding: 12px 18px; }
.nav-contact span { font-size: 21px; line-height: 1; color: var(--accent); }
.nav-contact:hover { border-color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; height: 1px; width: 24px; margin: 6px 0; background: white; }

/* Normal-flow chapters sit next to the existing sticky 3D stage. */
.experience-layout { position: relative; display: grid; grid-template-columns: minmax(0,46fr) minmax(0,54fr); background: radial-gradient(ellipse at 90% 5%,#27354125,transparent 45%),var(--dark); }
.scroll-content { grid-column: 1; grid-row: 1; position: relative; z-index: 3; min-width: 0; }
.content-chapter { position: relative; min-height: 100svh; padding: 154px 3.5vw 110px 5vw; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid #d8e8fa10; scroll-margin-top: 0; max-width: 900px; }
.content-chapter:last-child { border-bottom: 0; }
.intro-chapter { padding-top: 180px; padding-bottom: 110px; }
.content-chapter h1, .content-chapter h2 { font-weight: 400; margin: 0 0 32px; text-wrap: balance; }
.content-chapter h1 { font-size: clamp(56px,5.2vw,88px); line-height: 1.08; letter-spacing: -.055em; }
.content-chapter h2 { font-size: clamp(40px,3.6vw,60px); line-height: 1.15; letter-spacing: -.045em; }
.content-chapter h1 em, .content-chapter h2 em { font-style: normal; font-weight: inherit; color: #a7b2bd; }
.content-chapter > p { font-size: 18px; line-height: 1.75; color: #acb5bf; max-width: 520px; margin: 0 0 24px; }
.content-chapter > .chapter-lead { font-size: 21px; line-height: 1.65; color: #e0e4e8; margin-bottom: 25px; }
.content-chapter p strong { font-weight: 500; color: #edf0f2; }
.intro-chapter > .chapter-lead { max-width: 490px; }
.intro-chapter > .hero-identity { font-size: 17px; line-height: 1.65; color: #acb5bf; margin: 3px 0 16px; }
.hero-actions { display: flex; align-items: center; margin-top: 17px; }
.expertise-details { max-width: 520px; display: grid; gap: 28px; margin-top: 8px; }
.expertise-item h3 { font-size: 21px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; color: #e0e4e8; margin: 0 0 9px; }
.expertise-item p { font-size: 18px; line-height: 1.75; color: #acb5bf; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding: 17px 22px; min-height: 55px; font-size: 16px; font-weight: 500; border: 1px solid transparent; border-radius: 3px; transition: background .2s, border-color .2s; }
.button span { font-size: 23px; font-weight: 400; line-height: .8; }
.button-light { color: #12181d; background: #e4e9ec; }
.button-light:hover { background: #c4e7ed; }
.text-link { font-size: 17px; display: inline-flex; gap: 22px; align-items: center; align-self: flex-start; color: #e0e7ed; padding: 12px 0; }
.text-link > span { color: var(--accent); }
.text-link:hover { color: var(--accent); }
.personal-chapter > .about-location { color: #a7b2bd; font-size: 16px; margin-top: 10px; margin-bottom: 16px; }

/* A sticky stage on desktop; a full-height background on small screens. */
.scene-aside { grid-column: 2; grid-row: 1; position: sticky; top: 0; align-self: start; height: 100svh; min-height: 550px; isolation: isolate; z-index: 2; pointer-events: none; overflow: clip; }
.scene-aside:after { content: ""; position: absolute; inset: 15% -8% 12% -5%; z-index: -1; background: radial-gradient(ellipse at 53% 48%,#466e8338 0%,#172b3924 36%,transparent 70%); }
.scene-backdrop { position: absolute; inset: 18% 0 15%; z-index: -1; }
.hardware-viewport { position: absolute; top: 100px; left: 0; width: 100%; height: calc(100% - 215px); display: block; z-index: 1; pointer-events: none; }
.hardware-viewport canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .65s ease; }
.hardware-viewport.is-ready canvas { opacity: 1; }
.hardware-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
.is-ready .hardware-fallback { opacity: 0; visibility: hidden; }
.hardware-load-card { padding: 30px; max-width: 350px; width: 80%; color: #a7b7c2; }
.hardware-load-card > span { font-size: 13px; }
.hardware-load-card strong { display: block; margin-top: 20px; font-size: 26px; font-weight: 400; letter-spacing: -.7px; color: #d1dee7; }
.hardware-load-card p { font-size: 15px; margin-top: 15px; line-height: 1.7; }
.scene-unavailable canvas { display: none; }
.scene-controls { position: absolute; bottom: 28px; right: 10%; display: flex; z-index: 4; pointer-events: auto; }
.scene-controls button { display: flex; gap: 9px; align-items: center; min-height: 40px; background: #090b0ed9; border: 1px solid #8e9daa40; border-radius: 3px; padding: 9px 13px; font-size: 13px; color: #c1cbd3; white-space: nowrap; }
.scene-controls button:hover { border-color: var(--accent); color: #e1faff; }

/* A direct, uncluttered contact area. */
.section-pad { padding: 120px 8%; }
.contact { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }
.contact h2 { font-size: clamp(40px,3.8vw,62px); font-weight: 400; line-height: 1.14; letter-spacing: -.045em; margin: 0 0 30px; }
.contact h2 em { font-style: normal; color: #6d7882; }
.contact-copy > p { font-size: 18px; line-height: 1.75; color: #505d66; margin: 0 0 25px; }
.contact-copy > .contact-location { margin-top: 45px; color: #36434c; font-size: 17px; }
.contact-status { font-size: 15px; line-height: 1.7; color: #596670; max-width: 350px; }
.contact-form { align-self: center; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.field { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.field label { font-size: 15px; color: #354550; }
.field input, .field textarea { font-size: 17px; background: transparent; border: 0; border-bottom: 1px solid #adb8be; padding: 0 0 14px; color: #263b49; width: 100%; border-radius: 0; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #707d86; }
.field input:focus, .field textarea:focus { outline: none; border-color: #317c98; box-shadow: 0 1px 0 #317c98; }
.field textarea { min-height: 115px; line-height: 1.7; }
.honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-privacy-note { font-size: 14px; line-height: 1.7; color: #53616b; margin: 0 0 26px; }
.inline-link { display: inline; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: #305f73; }
.button-dark { background: #15232c; color: #edf4f7; width: 100%; }
.button-dark:disabled { background: #d4dce0; color: #5e707b; }
.form-preview-note { font-size: 14px; line-height: 1.7; color: #596670; margin-top: 18px; }
.form-preview-note summary { cursor: pointer; }
.form-preview-note p { margin: 15px 0 0; }
.draft-download { padding: 12px 0 0; border: 0; background: none; font-size: 14px; display: flex; gap: 20px; color: #305f73; }
.form-feedback { font-size: 16px; line-height: 1.7; color: #336478; margin: 0; }
.form-feedback:not(:empty) { margin-top: 15px; padding: 12px; background: #dcebee; }
.form-feedback.error { color: #984c44; background: #f1e4df; }

.footer { background: #080b0f; color: #cad4dd; padding: 50px 5% 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: flex-end; font-size: 14px; color: #a7b3bd; }
.footer-links button { font: inherit; border: 0; background: none; padding: 10px 0; color: inherit; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid #7c98b325; padding-top: 24px; margin-top: 10px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: #93a1ad; }
.legal-dialog { background: var(--paper); color: var(--ink); border: 1px solid #aabcc7; width: calc(100% - 35px); max-width: 700px; padding: 40px; max-height: 85dvh; overflow: auto; }
.legal-dialog::backdrop { background: #040a11cc; backdrop-filter: blur(8px); }
.legal-dialog h2 { font-size: 36px; font-weight: 400; letter-spacing: -1px; }
.legal-dialog h3 { font-size: 19px; margin-top: 25px; }
.legal-dialog p { font-size: 16px; line-height: 1.8; color: #4a5d69; }
.legal-dialog a { color: #315e75; text-decoration: underline; text-underline-offset: 3px; }
.legal-dialog .section-number { display: block; font-size: 14px; color: #596b76; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; color: #4b6474; }

/* Legal documents remain readable without JavaScript and can be printed. */
.legal-document { background: var(--paper); color: var(--ink); }
.legal-header, .legal-header.is-scrolled { background: var(--dark); color: var(--paper); backdrop-filter: none; }
.legal-back { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; color: #d2dbe2; padding: 12px 0; }
.legal-back span { color: var(--accent); }
.legal-page { max-width: 1000px; margin: 0 auto; padding: 150px 5% 100px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 45px; color: #526570; font-size: 16px; }
.legal-nav a { padding: 10px 0; }
.legal-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.legal-page h1 { font-size: clamp(38px,4.3vw,62px); font-weight: 400; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 24px; overflow-wrap: break-word; }
.legal-intro { font-size: 21px; line-height: 1.65; color: #43535e; margin: 0 0 20px; }
.legal-date { font-size: 15px; color: #65737c; margin: 0 0 35px; }
.legal-notice { font-size: 16px; line-height: 1.75; color: #43535e; background: #e1e5e6; border-left: 2px solid #7a939f; padding: 18px 22px; margin: 0 0 35px; }
.legal-body h2 { font-size: 27px; line-height: 1.35; font-weight: 500; letter-spacing: -.025em; margin: 45px 0 18px; }
.legal-body p, .legal-body address { font-size: 18px; line-height: 1.8; color: #43535e; margin: 0 0 22px; }
.legal-body address { font-style: normal; }
.legal-body a, .legal-download { color: #285c73; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-download { display: inline-flex; align-items: center; gap: 18px; font-size: 16px; padding: 10px 0; margin-bottom: 12px; }
.footer-links a { padding: 10px 0; }
.legal-footer > span { color: #a7b3bd; font-size: 15px; }

/* The existing brand download page shares the same base styles. */
.brand-page { max-width: 1100px; margin: auto; padding: 65px 5%; background: var(--paper); color: var(--ink); }
body:has(.brand-page) { background: var(--paper); }
.brand-page > .text-link { color: var(--ink); }
.brand-page h1 { font-size: 55px; letter-spacing: -2px; font-weight: 400; margin: 20px 0; }
.brand-page > p { color: #566974; font-size: 17px; line-height: 1.8; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.brand-tile { border: 1px solid #ccd5db; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.brand-tile.dark { background: var(--dark); color: var(--paper); }
.brand-tile img { width: 100%; height: 120px; object-fit: contain; }
.brand-tile.avatar img { height: 230px; }
.brand-tile a { font-size: 15px; text-decoration: underline; margin-top: 25px; }
.brand-tile a + a { margin-top: 12px; }
.brand-colors { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 35px; }
.color-sample { width: 150px; height: 100px; padding: 15px; display: flex; align-items: flex-end; font: 13px var(--mono); border: 1px solid #c5cfd5; }
.sample-dark { background: var(--dark); color: white; }
.sample-lime { background: var(--accent); }
.sample-paper { background: var(--paper); }

@media (min-width: 1700px) {
  .content-chapter { padding-left: 8vw; padding-right: 4vw; }
  .header { padding-inline: 8%; }
  .section-pad { padding-inline: max(8%,calc((100vw - 1440px)/2)); }
}

@media (max-width: 1100px) {
  .header nav { gap: 24px; font-size: 14px; }
  .experience-layout { grid-template-columns: minmax(0,48fr) minmax(0,52fr); }
  .content-chapter { padding-left: 5vw; padding-right: 3vw; }
  .content-chapter h1 { font-size: clamp(44px,5.4vw,62px); }
  .content-chapter h2 { font-size: clamp(34px,4.1vw,44px); }
  .content-chapter > .chapter-lead { font-size: 20px; }
  .content-chapter > p { font-size: 17px; }
  .expertise-item p { font-size: 17px; }
  .section-pad { padding: 100px 6%; }
  .contact { gap: 6%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 760px) {
  :root { --header-height: 78px; }
  html { scroll-padding-top: 78px; }
  .header, .header.is-scrolled { height: 78px; padding: 0 5%; background: #090b0e; backdrop-filter: none; }
  .brand { gap: 9px; }
  .brand > span { font-size: 21px; letter-spacing: 3px; }
  .brand small { font-size: 8px; letter-spacing: 1.6px; margin-top: 8px; }
  .brand img { width: 29px; height: 29px; }
  .header nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #10151b; border-bottom: 1px solid #54708255; padding: 18px 6%; flex-direction: column; gap: 3px; font-size: 17px; }
  .header nav.open { display: flex; }
  .header nav a { padding-block: 15px; }
  .nav-contact { margin-left: auto; margin-right: 8px; gap: 12px; padding: 11px 12px; font-size: 14px; }
  .nav-contact span { font-size: 18px; }
  .menu-toggle { display: block; }
  .experience-layout { display: grid; grid-template-columns: minmax(0,1fr); padding-top: 78px; background: var(--dark); }
  .scene-aside { grid-column: 1; grid-row: 1; position: sticky; top: 78px; height: calc(100svh - 78px); min-height: 0; max-height: none; z-index: 0; background: var(--dark); border: 0; box-shadow: none; }
  .scene-aside:after { inset: 0; }
  .scene-backdrop { inset: 0; }
  .hardware-viewport { top: 0; left: 0; width: 100%; height: 100%; }
  .hardware-fallback { display: none; }
  .hardware-load-card { padding: 20px; max-width: 290px; }
  .hardware-load-card strong { font-size: 22px; margin-top: 15px; }
  .hardware-load-card p { font-size: 14px; }
  .scene-controls { position: static; align-self: flex-start; min-height: 36px; margin-top: 28px; }
  .scene-controls button { font-size: 12px; min-height: 36px; padding: 7px 10px; }
  .scroll-content { grid-column: 1; grid-row: 1; position: relative; z-index: 1; background: linear-gradient(90deg,rgba(9,11,14,.91),rgba(9,11,14,.80) 62%,rgba(9,11,14,.72)); }
  .content-chapter { min-height: 0; max-width: none; padding: 80px 7%; scroll-margin-top: 0; }
  .intro-chapter { padding-top: 48px; padding-bottom: 80px; }
  .content-chapter h1 { font-size: clamp(36px,11.3vw,70px); letter-spacing: -.055em; margin-bottom: 27px; }
  .content-chapter h2 { font-size: clamp(34px,8.3vw,52px); margin-bottom: 27px; }
  .content-chapter > .chapter-lead { font-size: 19px; line-height: 1.65; max-width: none; margin-bottom: 23px; }
  .content-chapter > p { font-size: 17px; line-height: 1.75; max-width: none; color: #c4cdd5; }
  .content-chapter > .chapter-lead { color: #edf1f4; }
  .content-chapter h1 em, .content-chapter h2 em { color: #c4cdd5; }
  .expertise-item p { color: #c4cdd5; }
  .expertise-details { max-width: none; gap: 28px; }
  .expertise-item h3 { font-size: 21px; }
  .hero-actions { margin-top: 10px; }
  .button { padding: 16px 19px; gap: 28px; font-size: 16px; }
  .text-link { font-size: 17px; }
  .personal-chapter > .about-location { font-size: 16px; }
  .section-pad { padding: 80px 7%; }
  .contact { grid-template-columns: 1fr; gap: 50px; scroll-margin-top: 0; }
  .contact h2 { font-size: clamp(38px,9vw,54px); }
  .contact-copy > p { font-size: 18px; }
  .contact-copy > .contact-location { font-size: 17px; margin-top: 30px; }
  .contact-status { font-size: 15px; }
  .field input, .field textarea { font-size: 16px; }
  .form-privacy-note { font-size: 14px; }
  .footer { grid-template-columns: 1fr; padding: 42px 7% 28px; gap: 22px; }
  .footer-links { justify-content: flex-start; gap: 24px; }
  .footer-bottom { margin-top: 0; flex-wrap: wrap; font-size: 14px; line-height: 1.6; gap: 20px; }
  .legal-dialog { padding: 30px 25px; }
  .legal-page { padding: 110px 7% 65px; }
  .legal-nav { gap: 8px 22px; margin-bottom: 30px; font-size: 15px; }
  .legal-page h1 { font-size: clamp(34px,8vw,44px); }
  .legal-intro { font-size: 19px; }
  .legal-notice { font-size: 16px; padding: 16px 18px; }
  .legal-body h2 { font-size: 24px; margin-top: 38px; }
  .legal-body p, .legal-body address { font-size: 17px; }
  .legal-back { font-size: 15px; gap: 10px; }
  .brand-page { padding-top: 35px; }
  .brand-page h1 { font-size: 42px; }
  .brand-grid { grid-template-columns: 1fr; }
  .color-sample { width: 100px; height: 85px; font-size: 11px; }
  .brand-colors { gap: 10px; }
}

@media (max-width: 380px) {
  .header { gap: 8px; }
  .header .brand > span { font-size: 19px; letter-spacing: 2px; }
  .header .brand small { letter-spacing: 1px; }
  .nav-contact { gap: 8px; padding-inline: 10px; margin-right: 0; }
  .menu-toggle { padding-inline: 8px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .content-chapter { padding-block: 65px; }
  .intro-chapter { padding-top: 40px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .scene-aside { min-height: 0; }
  .content-chapter { padding-block: 135px 90px; }
}

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

@media print {
  .legal-document { background: white; color: black; }
  .legal-document .header, .legal-document .footer, .legal-document .skip-link, .legal-nav, .legal-download { display: none; }
  .legal-page { max-width: none; margin: 0; padding: 0; }
  .legal-page h1 { font-size: 26pt; }
  .legal-body h2 { font-size: 16pt; break-after: avoid; }
  .legal-body p, .legal-body address, .legal-intro, .legal-notice, .legal-date { font-size: 11pt; color: black; }
  .legal-notice { background: none; padding: 10pt; }
  .legal-body a { color: black; }
}
