@font-face {
  font-family: Bodoni;
  src: url('fonts/bodoni.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url('fonts/space.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #192737;
  --body: #304255;
  --primary: #1b2b3d;
  --primary-text: #f8f9fc;
  --line: #283b5067;
  --chip: #eef4f827;
  --sky: #a2b6cb;
  --horizon: #e0e9f0;
  --ridge-far: #859bad;
  --ridge-mid: #587185;
  --ridge-near: #2d4650;
  --horizon-band: 37%;
  --button-height: 3.25rem;
}
html[data-scene=morning] {
  --sky: #a1abc2;
  --horizon: #f6ccac;
  --ridge-far: #a4a5b3;
  --ridge-mid: #687c8c;
  --ridge-near: #364d51;
}
html[data-scene=evening] {
  --sky: #252847;
  --horizon: #754c5b;
  --ridge-far: #5a6280;
  --ridge-mid: #344962;
  --ridge-near: #182b3d;
}
html[data-scene=night] {
  --sky: #071226;
  --horizon: #283a58;
  --ridge-far: #445474;
  --ridge-mid: #243752;
  --ridge-near: #101f32;
}
html:not(:is([data-atmosphere=ready], [data-atmosphere=live])):is([data-scene=evening], [data-scene=night]),
html:is([data-atmosphere=ready], [data-atmosphere=live])[data-ink=light] {
  color-scheme: dark;
  --ink: #f4f1ea;
  --body: #e4e7ef;
  --primary: #f4f1ea;
  --primary-text: #1c2837;
  --line: #e0e7f477;
  --chip: #1a26382b;
}
html:is([data-atmosphere=ready], [data-atmosphere=live])[data-sky-twilight][data-ink=dark] { --ink: #000; --body: #000; }
html:is([data-atmosphere=ready], [data-atmosphere=live])[data-sky-twilight][data-ink=light] { --ink: #fff; --body: #fff; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0;
  color: var(--ink);
  font-family: Space, Arial, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
::selection { color: var(--primary-text); background: var(--primary); }

.site {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}
.landscape {
  position: fixed;
  inset: 0 0 auto;
  height: 100svh;
  overflow: hidden;
  z-index: -1;
  background: var(--sky);
  pointer-events: none;
}
.fallback-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, var(--sky), var(--horizon) 67%, var(--ridge-far));
}
.fallback-mountains {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: var(--horizon-band);
}
.landscape-photo, .atmosphere-canvas { position: absolute; inset: 0; opacity: 0; }
.landscape-photo {
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: opacity 1.4s ease;
}
.landscape-photo.visible { opacity: 1; }
.atmosphere-canvas { width: 100%; height: 100%; transition: opacity .60s ease; }
html:is([data-atmosphere=ready], [data-atmosphere=live]) .atmosphere-canvas { opacity: 1; }
html[data-atmosphere=live] .landscape-photo { visibility: hidden; }
html[data-atmosphere=fallback] .atmosphere-canvas { transition: none; }
html[data-sky-still] :is(.button, .atmosphere-canvas) { transition: none; }

.content {
  width: min(100%, 74rem);
  align-self: start;
  margin-inline: auto;
  padding: max(3.75rem, 13.7svh, env(safe-area-inset-top)) clamp(1.125rem, 4vw, 3rem) 2rem;
  text-align: center;
}
.content h1 {
  font-family: Bodoni, 'Bodoni 72', Georgia, serif;
  font-size: clamp(4.15rem, 7.65vw, 8.25rem);
  font-optical-sizing: auto;
  font-weight: 440;
  letter-spacing: -.052em;
  line-height: 1;
  text-wrap: balance;
}
.positioning {
  width: fit-content;
  max-width: min(100%, 42ch);
  margin: .88rem auto 0;
  color: var(--body);
  font-size: clamp(1.125rem, 1.6vw, 1.56rem);
  line-height: 1.37;
  font-weight: 500;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.description {
  width: fit-content;
  max-width: 52ch;
  margin: .90rem auto 0;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: balance;
}
.disciplines, .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.disciplines {
  list-style: none;
  margin-block: 1.34rem 0;
  padding: 0;
  gap: .55rem;
  flex-wrap: wrap;
}
.disciplines li {
  min-height: 2.33rem;
  display: flex;
  align-items: center;
  gap: .48rem;
  padding: .22rem .82rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  color: var(--ink);
  background: var(--chip);
  font-size: .875rem;
  line-height: 1.22;
}
.disciplines svg { width: 1.06rem; height: 1.06rem; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.actions { gap: .75rem; margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .68rem;
  min-width: 10.35rem;
  min-height: max(44px, var(--button-height));
  padding: .5rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -.012em;
  transition: background-color .18s ease, border-color .18s ease;
}
.button svg, .email svg { width: 1.21rem; height: 1.21rem; stroke: currentColor; stroke-width: 1.3; }
.button .linkedin-icon { stroke: none; }
.primary { color: var(--primary-text); background: var(--primary); border-color: var(--primary); }
.primary:hover { background: color-mix(in srgb, var(--primary), var(--sky) 17%); }
.primary:focus-visible { outline-color: var(--ink); }
.secondary { background: var(--chip); }
.secondary:hover, .secondary:focus-visible { border-color: var(--ink); }
.email {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .60rem;
  min-height: 44px;
  max-width: 100%;
  margin-top: .64rem;
  color: var(--body);
  font-size: .9375rem;
  text-underline-offset: .27em;
  overflow-wrap: anywhere;
}
.email:hover, .email:focus-visible { text-decoration: underline; }

.local-light {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .61rem;
  justify-self: end;
  min-height: 44px;
  max-width: calc(100% - 2rem);
  margin: 0 max(1.7rem, env(safe-area-inset-right)) max(1.3rem, env(safe-area-inset-bottom)) 1rem;
  padding-inline: .86rem 3.55rem;
  color: #f9f8f4;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.local-light::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #e3eaf12c;
  border-radius: 100vmax;
  background: #101c2ad4;
}
.local-light:has(.sky-toggle[hidden])::before { right: 2.7rem; }
.local-light [data-period-label] { width: 3.5rem; text-align: center; }
.local-light time { width: 2.2rem; text-align: center; }
.sky-control-separator { position: absolute; right: 2.92rem; }
.light-symbol { width: .53rem; height: .53rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.local-caption { opacity: .80; }
.time-separator { width: 1px; height: .63rem; background: currentColor; opacity: .46; flex: none; }
.sky-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  right: .16rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  color: inherit;
  background: transparent;
}
.sky-toggle:hover { background: #ffffff24; }
.sky-toggle:focus-visible { outline-offset: -3px; }
.sky-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.sky-toggle .play-shape, .sky-toggle[aria-pressed=true] .pause-shape { display: none; }
.sky-toggle[aria-pressed=true] .play-shape { display: initial; }
.skip-link {
  position: fixed;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: .75rem 1rem;
  color: var(--primary-text);
  background: var(--primary);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; }

html[data-sky-inspect] :is(.content, .local-light) { visibility: hidden; }
.sky-stats {
  position: fixed;
  inset: .6rem auto auto .6rem;
  z-index: 4;
  padding: .36rem .56rem;
  color: white;
  background: #111c2bdf;
  border-radius: .25rem;
  font: .75rem / 1.35 monospace;
  pointer-events: none;
}
@media (max-width: 700px) {
  .content {
    padding-top: max(clamp(3.5rem, 12svh, 6.9rem), env(safe-area-inset-top));
    padding-inline: max(1.05rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .content h1 { font-size: clamp(3.25rem, 14.5vw, 5rem); line-height: .99; }
  .content h1 span { display: block; }
  .positioning { max-width: min(30ch, 100%); margin-top: 1rem; }
  .description { max-width: 30ch; font-size: 1rem; margin-top: .72rem; }
  .disciplines { margin-top: 1.10rem; gap: .45rem; }
  .actions { margin-top: 1.25rem; gap: .55rem; }
  .button { min-width: 8.5rem; min-height: 48px; font-size: .94rem; }
  .local-light {
    justify-self: center;
    margin: 0 0 max(1.02rem, env(safe-area-inset-bottom));
  }
}
@media (max-width: 385px) {
  .disciplines { gap: .35rem; }
  .disciplines li { gap: .32rem; padding-inline: .43rem; font-size: .8125rem; }
  .disciplines svg { width: .9rem; height: .9rem; }
}
@media (max-width: 370px) {
  .button { min-width: 8rem; padding-inline: .72rem; }
  .local-caption {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-height: 600px) {
  .content { padding-top: max(1.3rem, 7svh, env(safe-area-inset-top)); padding-bottom: .65rem; }
  .content h1 { font-size: clamp(2.85rem, 7.2vw, 5.1rem); }
  .positioning { margin-top: .54rem; }
  .description { margin-top: .48rem; }
  .disciplines { margin-top: .68rem; }
  .actions { margin-top: .78rem; }
  .email { margin-top: .20rem; }
  .local-light { margin-bottom: max(.64rem, env(safe-area-inset-bottom)); }
}
@media (max-height: 455px) and (orientation: landscape) {
  .content { padding-top: max(.86rem, env(safe-area-inset-top)); }
  .content h1 span { display: inline; }
  .positioning { max-width: 100%; }
  .description { max-width: 100%; }
  .disciplines li { min-height: 1.9rem; }
  .button { --button-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .landscape { display: none; }
  .button, .disciplines li, .local-light::before, .sky-toggle { border: 1px solid ButtonText; }
}
@media print {
  html, body { background: #fff !important; color: #172637 !important; }
  .site { min-height: 0; }
  .content { padding: 3rem 1rem; }
  .content h1 { font-size: 4rem; }
  .landscape, .local-light, .actions, .disciplines, .skip-link { display: none; }
  .positioning, .description, .email { color: #172637; }
}
