@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --sky { syntax: "<color>"; inherits: true; initial-value: #FBF6EA; }
@property --sky-2 { syntax: "<color>"; inherits: true; initial-value: #F6ECD3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1D2330; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #5F6068; }
@property --card { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #E6DDC8; }
@property --sun { syntax: "<color>"; inherits: true; initial-value: #EFAE1B; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #8F5A00; }
@property --headline { syntax: "<color>"; inherits: true; initial-value: #A86A00; }

:root {
  --sky: #FBF6EA;
  --sky-2: #F6ECD3;
  --ink: #1D2330;
  --muted: #5F6068;
  --card: #FFFFFF;
  --line: #E6DDC8;
  --sun: #EFAE1B;
  --accent: #8F5A00;
  --headline: #A86A00;
  --cloud: #FFFFFF;
  --live: #1E6B45;
  --live-bg: #E3F1E6;
  --btn: #1D2330;
  --btn-ink: #FBF6EA;
  --shadow: 0 1px 2px rgba(29, 35, 48, .05), 0 12px 32px -12px rgba(29, 35, 48, .18);
  --shadow-lift: 0 2px 4px rgba(29, 35, 48, .06), 0 26px 48px -18px rgba(29, 35, 48, .28);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  transition: --sky .9s var(--ease), --sky-2 .9s var(--ease), --ink .9s var(--ease),
    --muted .9s var(--ease), --card .9s var(--ease), --line .9s var(--ease),
    --sun .9s var(--ease), --accent .9s var(--ease), --headline .9s var(--ease);
}
[data-theme="dark"] {
  --sky: #101626;
  --sky-2: #0B1020;
  --ink: #F3EEDF;
  --muted: #A7ADBE;
  --card: #18203A;
  --line: #2A3352;
  --sun: #F6CE6B;
  --accent: #F6CE6B;
  --headline: #F6CE6B;
  --cloud: #18203A;
  --live: #8FD9AC;
  --live-bg: #17382B;
  --btn: #F3EEDF;
  --btn-ink: #101626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 28px 56px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--btn); color: var(--btn-ink);
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Sky: sun by day, moon and stars by night */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 820px;
  overflow: hidden; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.orb {
  position: absolute; border-radius: 50%;
  right: clamp(-90px, 6vw, 120px); top: 70px;
  width: clamp(220px, 30vw, 380px); aspect-ratio: 1;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}
.sun { background: var(--sun); }
.sun span {
  position: absolute; inset: -11%; border-radius: 50%;
  border: 1.5px solid var(--sun); opacity: .45;
  animation: pulse 7s ease-in-out infinite;
}
.sun span + span { inset: -24%; opacity: .22; animation-delay: -3.5s; }
.moon {
  background: transparent;
  box-shadow: inset -54px 26px 0 0 var(--sun);
  filter: drop-shadow(0 0 48px rgba(246, 206, 107, .28));
  transform: translateY(300px) rotate(-30deg); opacity: 0;
  width: 250px; top: 90px; right: clamp(-40px, 8vw, 150px);
}
.stars {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s var(--ease);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 56%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 82%, #fff 50%, transparent 51%);
}
[data-theme="dark"] .sun { transform: translateY(300px) scale(.9); opacity: 0; }
[data-theme="dark"] .moon { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="dark"] .stars { opacity: .7; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Header */
.top, main, .foot { position: relative; z-index: 1; }
.top {
  display: flex; align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.mark { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--ink); }

.toggle {
  position: relative; width: 58px; height: 32px; flex: none;
  border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; padding: 0;
}
.toggle::before { content: ""; position: absolute; inset: -7px -4px; }
.knob {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--sun);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .3s var(--ease);
}
[data-theme="dark"] .knob {
  transform: translateX(26px);
  background: transparent;
  box-shadow: inset -7px 3px 0 0 var(--sun);
}

/* Hero */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { padding: clamp(56px, 11vw, 130px) 0 clamp(64px, 9vw, 110px); max-width: 760px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  font-family: var(--display); font-weight: 800; font-stretch: 96%;
  font-size: clamp(44px, 8.2vw, 96px); line-height: .98;
  letter-spacing: -.035em; margin-top: 18px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--headline); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 560px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 14px 22px; border-radius: 99px; text-decoration: none;
  font-weight: 600; font-size: 16px;
  background: var(--btn); color: var(--btn-ink);
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.anim .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Sections */
section { scroll-margin-top: 24px; }
.section-head { margin-bottom: 30px; }
h2 {
  font-family: var(--display); font-weight: 750; font-stretch: 96%;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05;
  letter-spacing: -.025em; margin-top: 10px; text-wrap: balance;
}

/* Work cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; height: 100%;
  padding: 14px 14px 22px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.card:hover, a.card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); }
.shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--sky-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
a.card:hover .shot img, a.card:focus-visible .shot img { transform: scale(1.035); }
.meta { display: flex; align-items: center; gap: 10px; margin: 18px 8px 0; font-size: 13px; color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted);
}
.status.live { background: var(--live-bg); color: var(--live); border-color: transparent; }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.name {
  font-family: var(--display); font-weight: 750; font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.02em; margin: 8px 8px 0; display: flex; align-items: baseline; gap: 8px;
}
.go { font-size: .7em; color: var(--accent); transition: transform .3s var(--ease); }
a.card:hover .go, a.card:focus-visible .go { transform: translate(3px, -3px); }
.line { margin: 6px 8px 0; color: var(--muted); font-size: 16px; }

.card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.card.soon .name { color: var(--muted); }
.card.soon .shot { border-style: dashed; }
.card.soon .shot img { filter: saturate(.85); opacity: .92; }

/* Approach */
.approach { padding-top: clamp(80px, 11vw, 140px); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillars li { padding: 26px 26px 6px 0; }
.pillars li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.num { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
h3 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.015em; margin: 8px 0 6px; }
.pillars p { color: var(--muted); font-size: 16px; }

/* Contact and footer */
.contact { padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 110px); text-align: center; }
.contact h2 { margin: 0 auto; max-width: 620px; }
.mail-soon {
  margin-top: 22px; font-family: var(--display); font-weight: 650;
  font-size: clamp(20px, 3.4vw, 30px); letter-spacing: -.02em; color: var(--muted);
}
.mail {
  display: inline-block; margin-top: 22px;
  font-family: var(--display); font-weight: 650; font-size: clamp(20px, 3.4vw, 34px);
  letter-spacing: -.02em; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.foot {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px 34px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}

@media (max-width: 820px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li + li { padding: 22px 0 18px; border-left: 0; }
  .pillars li + li { border-top: 1px solid var(--line); }
  .top { flex-wrap: wrap; row-gap: 6px; padding-top: 14px; padding-bottom: 6px; }
  .brand { min-height: 44px; }
  .toggle { margin-left: auto; }
  .links { order: 3; width: 100%; margin: 0 -12px; gap: 4px; font-size: 15px; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .hero { padding-top: 36px; }
  .btn { min-height: 48px; }
  .foot { flex-direction: column; gap: 4px; }
  .orb { top: 76px; right: -96px; width: 180px; }
  .moon { width: 130px; top: 84px; right: -34px; box-shadow: inset -30px 14px 0 0 var(--sun); }
  .sun span + span { display: none; }
}

@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 8px; }
  .top { padding-inline: 18px; }
  main { padding-inline: 18px; }
}

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