:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #a6b2c0;
  --teal: #19a7c2;
  --amber: #f2b564;
  --line: rgb(205 224 238 / 13%);
  font-family: "Avenir Next", Avenir, "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { background: #060b10; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

.canvas {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(5.7vw, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(5.7vw, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse 44% 70% at 74% 49%, rgb(5 20 31 / 10%), #060b10 77%),
    linear-gradient(108deg, #060b10 0%, #071019 59%, #060b10 100%);
}

.canvas::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse 48% 90% at 89% 53%, rgb(0 163 197 / 8%), transparent 72%);
  pointer-events: none;
}

.topbar, .footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.topbar { min-height: 45px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: clamp(128px, 12vw, 166px); height: auto; }
.topbar nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); font-size: 13px; letter-spacing: .015em; }
.nav-context { color: #c2cbd4; transition: color .2s ease; }
.nav-context:hover, .footer a:hover { color: var(--ink); }
.nav-contact { color: var(--ink); }
.nav-contact span, .primary-link span { padding-left: 8px; color: var(--amber); }

.hero {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 0;
  padding: clamp(18px, 4vh, 46px) 0 clamp(20px, 3vh, 34px);
}

.hero-copy { position: relative; z-index: 1; max-width: 680px; padding-bottom: clamp(10px, 2.5vh, 28px); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 clamp(20px, 3.7vh, 38px); color: #c2d1da; font-size: 10px; font-weight: 600; letter-spacing: .19em; }
.eyebrow::before { display: block; width: 27px; height: 1px; content: ""; background: var(--teal); box-shadow: 0 0 13px rgb(25 167 194 / 70%); }
h1 { max-width: 720px; margin: 0; font-family: "Avenir Next", Avenir, "Manrope", sans-serif; font-size: clamp(42px, 5.05vw, 76px); font-weight: 500; letter-spacing: -.064em; line-height: 1.08; }
h1 em { color: #e8c38a; font-style: normal; }
.intro { max-width: 510px; margin: clamp(18px, 3vh, 28px) 0 0; color: #b1bdc9; font-size: clamp(15px, 1.32vw, 18px); line-height: 1.72; }
.primary-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: clamp(21px, 3.7vh, 34px); padding: 0 18px; border: 1px solid rgb(242 181 100 / 47%); border-radius: 3px; background: linear-gradient(105deg, rgb(242 181 100 / 11%), rgb(242 181 100 / 3%)); color: #f8f4ec; font-size: 13px; font-weight: 600; transition: background-color .2s ease, border-color .2s ease; }
.primary-link:hover { border-color: var(--amber); background-color: rgb(242 181 100 / 10%); }

.hero-art { position: absolute; z-index: 0; top: 3%; right: -5.5%; bottom: 5%; width: 61%; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .63; mix-blend-mode: screen; mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 18%) 15%, #000 43%, #000 88%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 12%, #000 84%, transparent 100%); mask-composite: intersect; }
.art-wash { position: absolute; inset: 0; background: linear-gradient(90deg, #060b10 0%, transparent 39%, rgb(6 11 16 / 8%) 100%), linear-gradient(0deg, #060b10 0%, transparent 24%, transparent 82%, #060b10 100%); }
.art-caption { position: absolute; right: 8%; bottom: 15%; color: rgb(220 234 242 / 59%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .2em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 11px var(--teal); vertical-align: 1px; }

.thesis { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.thesis-label { color: #81909d; font-size: 11px; letter-spacing: .055em; }
.thesis p { margin: 0; color: #bdc7d0; font-size: clamp(13px, 1.1vw, 15px); letter-spacing: -.01em; }
.thesis strong { color: #f2c989; font-weight: 500; }

.footer { min-height: 28px; color: #7f8a97; font-size: 10px; letter-spacing: .025em; }
.footer-note { color: #778695; }
.footer a { color: #aab5bf; transition: color .2s ease; }

@media (min-width: 1600px) {
  .canvas { padding-right: max(7vw, env(safe-area-inset-right)); padding-left: max(7vw, env(safe-area-inset-left)); }
  .hero { padding-top: 5vh; padding-bottom: 4vh; }
}

@media (max-width: 760px) {
  .canvas { padding: max(19px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .topbar { min-height: 38px; }
  .brand img { width: 125px; }
  .topbar nav { gap: 18px; font-size: 12px; }
  .hero { display: flex; flex: 1 0 auto; flex-direction: column; align-items: stretch; justify-content: center; padding: 7vh 0 3vh; }
  .hero-copy { max-width: 600px; padding-bottom: 0; }
  .eyebrow { margin-bottom: clamp(20px, 4vh, 32px); font-size: 9px; letter-spacing: .15em; }
  h1 { max-width: 560px; font-size: clamp(40px, 9vw, 62px); line-height: 1.08; }
  .intro { max-width: 500px; margin-top: 19px; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.62; }
  .primary-link { min-height: 45px; margin-top: 24px; }
  .hero-art { top: 16%; right: -28%; bottom: 13%; width: 101%; opacity: .74; }
  .hero-art img { object-position: 60% center; opacity: .55; }
  .art-wash { background: linear-gradient(90deg, #060b10 0%, rgb(6 11 16 / 84%) 33%, rgb(6 11 16 / 12%) 100%), linear-gradient(0deg, #060b10 0%, transparent 34%, transparent 75%, #060b10 100%); }
  .art-caption { right: 21%; bottom: 15%; font-size: 8px; }
  .thesis { display: block; margin-top: auto; padding-top: 13px; }
  .thesis-label { font-size: 10px; }
  .thesis p { margin-top: 5px; font-size: 13px; }
  .footer { min-height: 25px; font-size: 9px; }
  .footer-note { display: none; }
}

@media (max-width: 390px) {
  .canvas { padding-right: max(19px, env(safe-area-inset-right)); padding-left: max(19px, env(safe-area-inset-left)); }
  .brand img { width: 116px; }
  .topbar nav { gap: 14px; font-size: 11px; }
  .hero { padding-top: 5vh; padding-bottom: 2vh; }
  .eyebrow { margin-bottom: 17px; font-size: 8px; letter-spacing: .115em; }
  h1 { font-size: clamp(36px, 10vw, 42px); }
  .intro { margin-top: 16px; font-size: 14px; line-height: 1.53; }
  .primary-link { min-height: 42px; margin-top: 19px; font-size: 12px; }
  .hero-art { top: 20%; right: -50%; bottom: 14%; width: 128%; opacity: .58; }
  .art-caption { right: 32%; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .canvas { padding-top: max(15px, env(safe-area-inset-top)); padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .hero { padding-top: 12px; padding-bottom: 15px; }
  .hero-copy { padding-bottom: 8px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(40px, 4.5vw, 62px); }
  .intro { margin-top: 15px; font-size: 15px; line-height: 1.55; }
  .primary-link { min-height: 42px; margin-top: 18px; }
  .thesis { padding-top: 13px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .canvas { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .topbar { min-height: 30px; }
  .brand img { width: 112px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(170px, .9fr); grid-template-rows: 1fr auto; padding: 8px 0; }
  .hero-copy { max-width: 540px; }
  .eyebrow { margin-bottom: 10px; font-size: 8px; }
  h1 { font-size: clamp(30px, 6vh, 43px); }
  .intro { max-width: 430px; margin-top: 9px; font-size: 12px; line-height: 1.42; }
  .primary-link { min-height: 34px; margin-top: 11px; font-size: 11px; }
  .hero-art { top: 4%; right: -12%; bottom: 5%; width: 60%; }
  .art-caption { display: none; }
  .thesis { padding-top: 8px; }
  .thesis-label, .thesis p { font-size: 10px; }
  .footer { min-height: 18px; font-size: 8px; }
}

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

/* Local preview layout: preserve cover composition within each viewport. */
html, body { min-width: 0; height: 100%; overflow: hidden; }
.canvas { height: 100dvh; min-height: 0; overflow: hidden; }
.hero { flex: 1 1 0; min-height: 0; }
.eyebrow { letter-spacing: .04em; }
.art-caption { letter-spacing: .04em; }
@media (max-width:760px) {
 .hero { flex: 1 1 0; padding-top: clamp(8px,3vh,24px); }
 h1 { font-size: clamp(28px,min(9vw,6.4vh),56px); }
 .intro { font-size: clamp(12px,min(3.6vw,2.3vh),17px); line-height:1.5; margin-top:12px; }
 .eyebrow { margin-bottom:12px; font-size:clamp(7px,1.3vh,9px); }
 .primary-link { margin-top:16px; }
 .hero-copy { flex-shrink:1; }
 .thesis { flex-shrink:0; }
 .art-caption { display:none; }
}
@media (max-height:520px) and (orientation:landscape) {
 .hero { display:flex; justify-content:center; }
 .hero-copy { max-width:75%; }
 h1 { font-size:clamp(22px,6.6vh,34px); }
 .intro { font-size:clamp(10px,2.8vh,13px); margin-top:6px; line-height:1.35; }
 .eyebrow { margin-bottom:6px; }
 .primary-link { margin-top:8px; min-height:32px; }
 .thesis { display:none; }
}

/* Phones: preserve readable text and allow short viewports to grow naturally. */
@media(max-width:760px), (max-height:520px) and (orientation:landscape){
 html:has(.canvas),html:has(.canvas) body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
 .canvas{height:auto;min-height:100svh;min-height:100dvh;overflow:hidden;padding:max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
 .canvas .topbar{min-height:44px}.canvas .topbar .brand img{width:88px;height:28px;max-width:25vw;object-fit:contain}
 .canvas .topbar nav{gap:16px;font-size:12px}.canvas .topbar nav a{display:inline-flex;align-items:center;min-height:44px}
 .canvas .hero{flex:1 0 auto;display:flex;justify-content:center;padding:clamp(36px,10dvh,80px) 0;min-height:470px}
 .canvas .hero-copy{max-width:100%;flex:none;padding:0}
 .canvas .eyebrow{font-size:10px;line-height:1.5;letter-spacing:.02em;margin-bottom:16px}
 .canvas h1{font-size:clamp(32px,8.7vw,42px);line-height:1.1}
 .canvas .intro{font-size:16px;line-height:1.55;margin-top:18px}
 .canvas .primary-link{min-height:48px;font-size:14px;padding:12px 18px;margin-top:24px}
 .canvas .footer{font-size:11px;line-height:1.4}
 .canvas .footer-thesis{padding-top:14px}.canvas .footer-thesis .thesis-label{font-size:11px}.canvas .footer-thesis p{font-size:13px;line-height:1.45}
 .canvas .footer-meta{font-size:11px;gap:8px 12px;line-height:1.4}
}
