:root {
  --paper: #f2f0e9;
  --ink: #141612;
  --muted: #6e7169;
  --dark: #11130f;
  --dark-soft: #1a1c17;
  --line: rgba(20, 22, 18, .16);
  --line-light: rgba(242, 240, 233, .18);
  --accent: #b66a3c;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, 100%);
  margin: auto;
  padding: 28px clamp(22px, 5vw, 72px);
  color: var(--paper);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .015em;
}

.header-controls { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }

.main-nav a {
  position: relative;
  color: rgba(242, 240, 233, .72);
  font-size: .82rem;
  font-weight: 500;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}

.main-nav a:hover { color: var(--paper); }
.main-nav a:hover::after { right: 0; }

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(242,240,233,.2);
  color: rgba(242,240,233,.32);
  font-size: .68rem;
}

.language-switcher button {
  padding: 5px 2px;
  border: 0;
  color: rgba(242,240,233,.42);
  background: transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] { color: var(--paper); }
.language-switcher button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper);
  background: var(--dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background: url("assets/optimized/universe-desktop.jpg") center / cover no-repeat;
  filter: grayscale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,19,15,.94) 0 42%, rgba(17,19,15,.68) 66%, rgba(17,19,15,.9));
}

.hero-copy,
.hero-visual,
.scroll-note { position: relative; z-index: 1; }

.hero-copy {
  align-self: center;
  max-width: 850px;
  padding: 150px clamp(22px, 5vw, 72px) 120px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow > span { display: block; width: 34px; height: 1px; background: currentColor; }

.hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: rgba(242, 240, 233, .82);
  font-size: clamp(.9rem, 1.15vw, 1.08rem);
  font-weight: 500;
  letter-spacing: .015em;
}

.hero-role span {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.3vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .88;
}

.hero h1 em { color: #c8c4b9; font-weight: 400; }

.hero-intro {
  max-width: 610px;
  margin: 40px 0 0;
  color: rgba(242, 240, 233, .66);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 42px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-size: .82rem;
  font-weight: 600;
}

.button-primary { color: var(--dark); background: var(--paper); transition: background .2s ease; }
.button-primary:hover { background: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; }
.text-link span { color: var(--accent); font-size: 1rem; transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px, 2px); }

.hero-visual { display: grid; min-width: 0; place-items: center; padding: 120px clamp(22px, 4vw, 64px) 80px 0; }

.visual-frame {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: .82;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,.015);
}

.visual-frame::before,
.visual-frame::after { content: ""; position: absolute; background: var(--line-light); }
.visual-frame::before { top: 50%; left: 0; right: 0; height: 1px; }
.visual-frame::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.planet-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(74%, 430px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 30px 80px rgba(0,0,0,.48);
}

.planet-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 34% 28%, transparent 0 25%, rgba(7,9,7,.18) 50%, rgba(7,9,7,.7) 100%);
}

.planet-wrap picture { display: block; width: 100%; height: 100%; }
.planet-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: saturate(.6) contrast(1.05); }

.visual-label { position: absolute; z-index: 2; display: flex; gap: 12px; color: rgba(242,240,233,.74); }
.visual-label span { color: var(--accent); font-family: var(--serif); font-size: .8rem; }
.visual-label p { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; }
.visual-label-top { top: 25px; left: 25px; }
.visual-label-bottom { right: 25px; bottom: 25px; text-align: right; }

.visual-caption {
  position: absolute;
  z-index: 2;
  right: 22px;
  top: 50%;
  margin: 0;
  color: rgba(242,240,233,.4);
  font-size: .67rem;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.scroll-note {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(242,240,233,.38);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-note span { width: 34px; height: 1px; background: currentColor; }

.ideas-section,
.projects-section { padding: clamp(90px, 12vw, 170px) clamp(22px, 7vw, 110px); }

.trajectory-section {
  height: 400vh;
  color: var(--paper);
  background: #17140f;
}

.trajectory-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #17140f;
}

.trajectory-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(22px, 5vw, 72px);
  pointer-events: none;
}

.trajectory-header .eyebrow { margin: 0; color: #d48858; }
.trajectory-counter { margin: 0; color: rgba(242,240,233,.42); font-family: var(--serif); font-size: .85rem; }
.trajectory-counter span { color: var(--paper); }

.section-heading { display: grid; grid-template-columns: .6fr 1.45fr .8fr; gap: 46px; align-items: end; max-width: 1400px; margin: 0 auto 90px; }
.section-heading .eyebrow { align-self: start; margin: 8px 0 0; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 4.8vw, 5.6rem); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }

.trajectory-list {
  display: flex;
  width: 400vw;
  height: 100%;
  transform: translate3d(calc(var(--trajectory-progress, 0) * -300vw), 0, 0);
  will-change: transform;
}

.trajectory-item {
  position: relative;
  display: block;
  flex: 0 0 100vw;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(242,240,233,.12);
}

.trajectory-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,9,7,.02) 0 35%, rgba(10,9,7,.38) 58%, rgba(10,9,7,.9) 100%),
    linear-gradient(180deg, rgba(10,9,7,.18), transparent 30%, rgba(10,9,7,.2));
}

.trajectory-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 35%, rgba(18,14,10,.32) 68%, rgba(18,14,10,.7)),
    var(--phase-image) center / cover no-repeat,
    #211b14;
}

.art-mark { display: none; }
.trajectory-item-shadows { --phase-image: url("assets/optimized/fase1-desktop.jpg"); }
.trajectory-item-turn { --phase-image: url("assets/optimized/fase2-desktop.jpg"); }
.trajectory-item-ascent { --phase-image: url("assets/optimized/fase3-desktop.jpg"); }
.trajectory-item-outside { --phase-image: url("assets/optimized/fase4-desktop.jpg"); }

.trajectory-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50%;
  height: 100%;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(34px, 7vw, 120px) 100px clamp(34px, 5vw, 82px);
}

.item-number { display: block; margin-bottom: 42px; color: #d48858; font-family: var(--serif); font-size: .95rem; }
.item-tag { margin: 0 0 9px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.trajectory-content .item-tag { color: rgba(212,136,88,.85); }
.trajectory-content h2 { max-width: 10ch; margin: 12px 0 30px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 6rem); font-weight: 400; letter-spacing: -.04em; line-height: .92; }
.trajectory-content > p:last-child { max-width: 520px; margin: 0; color: rgba(242,240,233,.58); font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.7; }

.trajectory-progress {
  position: absolute;
  z-index: 4;
  right: clamp(22px, 5vw, 72px);
  bottom: 34px;
  left: clamp(22px, 5vw, 72px);
  height: 1px;
  overflow: hidden;
  background: rgba(242,240,233,.16);
}

.trajectory-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #d48858;
  transform: scaleX(var(--trajectory-progress, 0));
  transform-origin: left;
}

.ideas-section {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: clamp(60px, 9vw, 150px);
  background: var(--paper);
}

.ideas-intro { align-self: start; }
.ideas-intro h2 { max-width: 12ch; margin: 0; font-family: var(--serif); font-size: clamp(2.9rem, 4.8vw, 5.5rem); font-weight: 400; letter-spacing: -.04em; line-height: .94; }

.ideas-canvas { min-width: 0; border-top: 1px solid var(--line); }
.thought-viewport { width: 100%; overflow: hidden; touch-action: pan-y pinch-zoom; transition: height .45s cubic-bezier(.22, .75, .2, 1); }
.thought-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px;
  align-items: start;
  transition: transform .55s cubic-bezier(.22, .75, .2, 1);
  will-change: transform;
}
.thought-entry { min-width: 0; padding: 38px 24px 46px 0; border-bottom: 1px solid var(--line); }
.thought-entry + .thought-entry { padding-left: 24px; border-left: 1px solid var(--line); }
.thought-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.thought-heading p { margin: 0; color: var(--muted); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.thought-number { color: var(--accent); font-family: var(--serif); font-size: .9rem; }
.thought-entry h3 { max-width: 16ch; margin: 44px 0 20px; font-family: var(--serif); font-size: clamp(2.25rem, 3.7vw, 4.4rem); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.thought-question { max-width: 780px; margin: 0 0 38px; color: var(--accent); font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.3; }
.thought-body { display: grid; grid-template-columns: 1fr; gap: 18px; }
.thought-body p { max-width: 500px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.72; }
.thought-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(20,22,18,.09); }
.thought-sources span { color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.thought-sources a { color: var(--ink); font-size: .7rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(182,106,60,.42); text-underline-offset: 4px; }
.thought-sources a:hover { color: var(--accent); }

.thought-pagination { display: flex; align-items: center; gap: 5px; margin-top: 28px; }
.thought-pagination button { display: grid; width: 42px; height: 28px; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; }
.thought-pagination button::before { content: ""; display: block; width: 30px; height: 4px; background: rgba(20,22,18,.2); transition: width .25s ease, background .25s ease; }
.thought-pagination button:hover::before { background: rgba(20,22,18,.42); }
.thought-pagination button[aria-current="true"]::before { width: 42px; background: var(--accent); }
.thought-pagination button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.projects-section { color: var(--paper); background: var(--dark); }
.projects-heading { grid-template-columns: 1.55fr .75fr; row-gap: 24px; max-width: 1600px; }
.projects-heading .eyebrow { grid-column: 1; grid-row: 1; }
.projects-heading h2 { grid-column: 1; grid-row: 2; max-width: 9ch; }
.projects-heading > p:last-child { grid-column: 2; grid-row: 2; padding-bottom: 8px; color: rgba(242,240,233,.55); }

.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1600px; margin: auto; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.project-card { display: flex; min-height: 430px; flex-direction: column; justify-content: space-between; padding: 28px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--dark); }
.project-card-featured { background: var(--dark-soft); }
.project-card[href] { transition: background .25s ease; }
.project-card[href]:hover { background: #22251e; }
.project-card[href] .project-meta span:last-child { color: var(--accent); }
.project-meta { display: flex; justify-content: space-between; color: rgba(242,240,233,.38); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(2rem, 2.5vw, 3rem); font-weight: 400; }
.project-card div > p:last-child { max-width: 420px; margin: 0; color: rgba(242,240,233,.55); font-size: .9rem; line-height: 1.65; }
.project-card .item-tag { color: var(--accent); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px clamp(22px, 7vw, 110px); border-top: 1px solid var(--line-light); color: var(--paper); background: var(--dark); }
.footer-email { color: rgba(242,240,233,.55); font-size: .78rem; transition: color .2s ease; }
.footer-email:hover { color: var(--paper); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 70px; }
  .hero-visual { padding: 0 clamp(22px, 5vw, 72px) 100px; }
  .visual-frame { width: min(100%, 620px); aspect-ratio: 1.2; }
  .planet-wrap { width: min(54%, 360px); }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .projects-heading { grid-template-columns: 1.3fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .ideas-section { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding: 20px; }
  .brand { font-size: 1rem; }
  .header-controls { gap: 10px; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: .68rem; }
  .language-switcher { gap: 4px; padding-left: 10px; font-size: .62rem; }
  .hero-copy { padding: 132px 20px 64px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .hero-role { display: block; margin-bottom: 22px; line-height: 1.5; }
  .hero-role span { display: inline; margin: 0 6px; }
  .hero-intro { margin-top: 30px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; margin-top: 34px; }
  .hero-visual { padding: 0 20px 88px; }
  .hero::before { background-image: url("assets/optimized/universe-mobile.jpg"); }
  .visual-frame { aspect-ratio: .9; }
  .planet-wrap { width: 70%; }
  .visual-caption { display: none; }
  .scroll-note { display: none; }
  .ideas-section, .projects-section { padding: 82px 20px; }
  .section-heading { display: block; margin-bottom: 54px; }
  .section-heading .eyebrow { margin-bottom: 24px; }
  .section-heading h2 { margin-bottom: 24px; }
  .trajectory-header { padding: 24px 20px; }
  .trajectory-header .eyebrow { max-width: 240px; line-height: 1.4; }
  .trajectory-item::after { background: linear-gradient(180deg, rgba(10,9,7,.02) 0 24%, rgba(10,9,7,.48) 48%, rgba(10,9,7,.96) 100%); }
  .trajectory-item-shadows { --phase-image: url("assets/optimized/fase1-mobile.jpg"); }
  .trajectory-item-turn { --phase-image: url("assets/optimized/fase2-mobile.jpg"); }
  .trajectory-item-ascent { --phase-image: url("assets/optimized/fase3-mobile.jpg"); }
  .trajectory-item-outside { --phase-image: url("assets/optimized/fase4-mobile.jpg"); }
  .trajectory-art { background-position: left center; }
  .trajectory-content { width: 100%; margin-left: 0; justify-content: flex-end; padding: 130px 20px 70px; }
  .trajectory-content .item-number { display: none; }
  .trajectory-content h2 { max-width: 12ch; margin: 8px 0 18px; font-size: clamp(2.5rem, 11vw, 4rem); }
  .trajectory-content > p:last-child { font-size: .9rem; line-height: 1.55; }
  .trajectory-progress { right: 20px; bottom: 22px; left: 20px; }
  .thought-entry h3 { margin-top: 34px; }
  .thought-body { gap: 20px; }
  .thought-track { grid-auto-columns: 100%; gap: 16px; }
  .thought-entry, .thought-entry + .thought-entry { padding-right: 0; padding-left: 0; border-left: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 350px; }
  .site-footer { align-items: center; flex-direction: row; gap: clamp(5px, 2vw, 10px); padding: 26px 12px; white-space: nowrap; }
  .site-footer .footer-brand { font-size: clamp(.68rem, 3.4vw, .78rem); }
  .site-footer .footer-email,
  .site-footer .text-link { font-size: clamp(.58rem, 2.8vw, .68rem); }
  .site-footer .text-link { gap: 4px; }
  .site-footer .text-link span { font-size: .8rem; }
}

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