:root {
  color-scheme: light;
  --home-bg: #f3f5f7;
  --home-surface: rgba(255,255,255,.92);
  --home-text: #101114;
  --home-muted: #73746f;
  --home-soft: #969690;
  --home-border: #dce1e6;
  --home-control: #e9edf1;
  --home-accent: #355f73;
  --home-accent-soft: rgba(53,95,115,.1);
  --home-shadow: 0 20px 55px rgba(42,43,46,.065);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --home-bg: #111216;
  --home-surface: #1a1b20;
  --home-text: #f4f4f1;
  --home-muted: #a0a1a6;
  --home-soft: #7e8087;
  --home-border: #2b2c32;
  --home-control: #27282e;
  --home-accent: #86b4c8;
  --home-accent-soft: rgba(134,180,200,.11);
  --home-shadow: none;
}

* { box-sizing: border-box; }
html { background: var(--home-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: Inter, Arial, sans-serif;
  transition: background-color .28s ease, color .28s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }

.home-skip {
  position: absolute;
  left: 18px;
  top: -70px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--home-text);
  color: var(--home-bg);
}
.home-skip:focus { top: 16px; }

.home-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--home-bg);
}

.home-header {
  min-height: 78px;
  padding: 15px clamp(20px,3vw,42px);
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  z-index: 5;
}
.home-logo { display: inline-flex; align-items: center; gap: 11px; font-family: Oswald, sans-serif; line-height: 1; }
.home-logo > span { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.home-logo i { width: 1px; height: 34px; display: block; background: var(--home-border); }
.home-logo small { font-size: 12px; letter-spacing: .16em; font-weight: 500; }

.home-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(17px,2.2vw,30px); }
.home-nav a {
  padding-block: 8px;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: .13em;
  color: var(--home-muted);
  transition: color .2s ease;
}
.home-nav a:hover, .home-nav a[aria-current="page"] { color: var(--home-text); }
.home-nav a[aria-current="page"] { box-shadow: inset 0 -1px var(--home-text); }

.home-account {
  padding: 9px 11px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  color: var(--home-muted);
  font-family: Oswald, sans-serif;
  font-size: 9px;
  letter-spacing: .13em;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.home-account:hover { color: var(--home-text); border-color: var(--home-text); }

.home-theme {
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
  border-radius: 999px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  box-shadow: 0 7px 22px rgba(30,31,34,.04);
}
.home-theme-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--home-text); }

.home-hero {
  min-height: 0;
  padding: clamp(44px,5vw,66px) clamp(28px,6vw,88px) 34px;
  position: relative;
  z-index: 2;
}
.home-eyebrow {
  margin: 0 0 31px;
  color: var(--home-soft);
  font-family: Oswald, sans-serif;
  font-size: 10px;
  letter-spacing: .22em;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: clamp(54px,7vw,108px);
  align-items: end;
}
.home-hero h1 {
  margin: 0;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(60px,6.6vw,94px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.06em;
}
.home-hero h1 span { display: block; }
.home-hero h1 span:last-child { margin-left: clamp(34px,5.5vw,82px); }
.home-hero-info {
  padding-top: 15px;
  border-top: 1px solid var(--home-border);
}
.home-hero-info > p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.72;
}
.home-hero-info mark {
  --mark-color: #69b6dc;
  --mark-rotation: -1.2deg;
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  margin-inline: .02em;
  padding-inline: .02em;
  background: none;
  color: inherit;
}
.home-hero-info mark:nth-of-type(2) { --mark-color: #63b98b; }
.home-hero-info mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.08em;
  right: -.08em;
  bottom: -.04em;
  height: .28em;
  border-radius: 50%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--mark-color) 72%, transparent), var(--mark-color), color-mix(in srgb, var(--mark-color) 68%, transparent));
  clip-path: polygon(0 47%,7% 25%,20% 36%,36% 17%,54% 34%,72% 13%,87% 30%,100% 21%,98% 66%,83% 58%,67% 76%,49% 59%,31% 77%,15% 61%,3% 72%);
  transform: rotate(var(--mark-rotation)) scaleX(0);
  transform-origin: left center;
  animation: home-underline-draw .72s cubic-bezier(.22,.8,.28,1) .2s forwards;
}
.home-hero-info mark:nth-of-type(2)::after { --mark-rotation: .8deg; animation-delay: .55s; }
:root[data-theme="dark"] .home-hero-info mark { --mark-color: #65acd0; }
:root[data-theme="dark"] .home-hero-info mark:nth-of-type(2) { --mark-color: #5eae83; }
@keyframes home-underline-draw {
  to { transform: rotate(var(--mark-rotation)) scaleX(1); }
}
.home-hero-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.home-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 5px;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  font-family: Oswald, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.home-hero-links a:hover { color: var(--home-accent); border-color: var(--home-accent); }
.home-hero-links a span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-accent-soft);
  color: var(--home-accent);
  font-size: 12px;
  animation: home-link-nudge 1.35s cubic-bezier(.2,.75,.3,1) infinite;
}
.home-hero-links a:nth-child(2) span { animation-delay: .24s; }
@keyframes home-link-nudge {
  0%, 42%, 100% { transform: translate(0,0); }
  60% { transform: translate(5px,5px); }
  74% { transform: translate(0,0); }
  86% { transform: translate(3px,3px); }
}
.home-hero-rule {
  margin-top: 23px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: var(--home-soft);
  font-family: Oswald, sans-serif;
  font-size: 8px;
  letter-spacing: .16em;
}
.home-hero-rule i { height: 1px; background: var(--home-border); }
.home-hero-rule small { font-size: inherit; }
.home-scroll-cue {
  width: 38px;
  height: 38px;
  margin: 13px auto -18px;
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-text);
  color: var(--home-bg);
  box-shadow: 0 8px 20px rgba(20,24,28,.12);
  font-size: 18px;
  line-height: 1;
  transition: transform .22s ease;
}
.home-scroll-cue:hover { transform: translateY(3px); }
.home-scroll-cue span { animation: home-scroll-arrow 1.25s cubic-bezier(.2,.75,.3,1) infinite; }
@keyframes home-scroll-arrow {
  0%, 38%, 100% { transform: translateY(0); }
  62% { transform: translateY(6px); }
  78% { transform: translateY(1px); }
}
.home-primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 215px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--home-text);
  color: var(--home-bg);
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  box-shadow: 0 11px 29px rgba(18,19,22,.12);
  transition: transform .22s ease;
}
.home-primary:hover { transform: translateY(-2px); }
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-muted);
  font-family: Oswald, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  transition: color .2s ease, border-color .2s ease;
}
.home-text-link:hover { color: var(--home-text); border-color: var(--home-text); }

.home-portals {
  padding: 0 clamp(15px,2.5vw,34px) clamp(18px,2.5vw,34px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.home-portal {
  min-width: 0;
  min-height: 330px;
  padding: 26px 26px 21px;
  border: 1px solid var(--home-border);
  border-radius: 27px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
  overflow: hidden;
  transition: background-color .28s ease, border-color .28s ease;
}
.home-portal.is-in-view { animation: home-portal-arrive .72s cubic-bezier(.2,.8,.25,1) both; }
.home-portal.is-in-view:nth-child(2) { animation-delay: .12s; }
.home-portal.is-in-view .home-round-link { animation: home-round-invite .68s cubic-bezier(.2,.8,.25,1) .62s 2 alternate; }
@keyframes home-portal-arrive {
  from { opacity: .64; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-round-invite {
  from { transform: translate(0,0); background-color: var(--home-control); }
  to { transform: translate(4px,-4px); background-color: var(--home-accent-soft); }
}
.home-portal-header { display: flex; align-items: start; gap: 18px; position: relative; z-index: 8; }
.home-portal-header p { margin: 0; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 10px; letter-spacing: .2em; }
.home-portal-header h2 { margin: 5px 0 0; font-family: Oswald, sans-serif; font-size: clamp(25px,2.4vw,34px); line-height: 1.08; font-weight: 500; }
.home-round-link {
  margin-left: auto;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-control);
  font-size: 17px;
  transition: transform .22s ease, background-color .22s ease;
}
.home-round-link:hover { transform: translate(2px,-2px); }

.home-project-deck {
  display: block;
  width: 100%;
  min-height: 226px;
  position: relative;
  margin-top: 6px;
}
.home-project-card {
  position: absolute;
  left: 50%;
  top: 52%;
  width: clamp(220px,61%,330px);
  aspect-ratio: 1.55 / 1;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 38px rgba(18,20,24,.17);
  transition: transform .36s ease, filter .36s ease;
}
.home-project-card small { font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .16em; opacity: .66; }
.home-project-card strong { font-family: Oswald, sans-serif; font-size: 27px; line-height: .92; font-weight: 500; letter-spacing: -.02em; }
.home-project-card footer { display: flex; justify-content: space-between; font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .1em; opacity: .66; }
.home-project-card:nth-child(1) { z-index: 1; transform: translate(-68%,-49%) rotate(-8deg); }
.home-project-card:nth-child(2) { z-index: 2; transform: translate(-51%,-53%) rotate(1deg); }
.home-project-card:nth-child(3) { z-index: 3; transform: translate(-33%,-46%) rotate(8deg); }
.home-project-deck:hover .home-project-card:nth-child(1) { transform: translate(-80%,-49%) rotate(-10deg); }
.home-project-deck:hover .home-project-card:nth-child(2) { transform: translate(-51%,-58%) rotate(0); }
.home-project-deck:hover .home-project-card:nth-child(3) { transform: translate(-20%,-46%) rotate(10deg); }
.tone-sage { background: #cfd6d2; color: #1a1c1f; }
.tone-coral { background: #9fb6c2; color: #14232a; }
.tone-ink { background: #15171b; color: #fff; }

.home-publication-deck {
  display: block;
  width: 100%;
  min-height: 210px;
  position: relative;
  margin-top: 20px;
}
.home-publication-card {
  position: absolute;
  left: 3%;
  width: 94%;
  min-height: 96px;
  padding: 17px 18px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: var(--home-surface);
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  box-shadow: 0 13px 30px rgba(31,32,35,.08);
  transition: transform .3s ease, opacity .3s ease;
}
:root[data-theme="dark"] .home-publication-card { box-shadow: 0 14px 34px rgba(0,0,0,.24); }
.home-publication-card:nth-child(1) { top: 0; z-index: 3; }
.home-publication-card:nth-child(2) { top: 52px; left: 5%; width: 90%; z-index: 2; opacity: .82; }
.home-publication-card:nth-child(3) { top: 100px; left: 7%; width: 86%; z-index: 1; opacity: .58; }
.home-publication-deck:hover .home-publication-card:nth-child(1) { transform: translateY(-8px); }
.home-publication-deck:hover .home-publication-card:nth-child(2) { transform: translateY(5px); opacity: .95; }
.home-publication-deck:hover .home-publication-card:nth-child(3) { transform: translateY(15px); opacity: .74; }
.home-publication-card > b { color: var(--home-accent); font-family: Oswald, sans-serif; font-size: 22px; font-weight: 500; }
.home-publication-card small { display: block; margin-bottom: 5px; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .12em; }
.home-publication-card strong { display: block; font-family: Oswald, sans-serif; font-size: 15px; line-height: 1.28; font-weight: 500; }
.home-publication-card > span { text-align: right; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 9px; line-height: 1.5; letter-spacing: .09em; }

.home-footer {
  padding: 10px clamp(24px,4vw,52px) 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--home-soft);
  font-family: Oswald, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
}
.home-footer a { transition: color .2s ease; }
.home-footer a:hover { color: var(--home-text); }

.publication-preview {
  min-height: calc(100vh - 78px);
  padding: clamp(70px,11vw,150px) clamp(28px,9vw,130px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(230px,300px);
  gap: clamp(40px,7vw,100px);
  align-items: end;
}
.publication-preview > p { grid-column: 1 / -1; margin: 0 0 -20px; color: var(--home-soft); font-family: Oswald,sans-serif; font-size: 11px; letter-spacing: .22em; }
.publication-preview h1 { margin: 0; font-family: Oswald,sans-serif; font-size: clamp(64px,9vw,128px); line-height: .9; font-weight: 500; letter-spacing: -.04em; text-transform: uppercase; }
.publication-preview h1 em { color: var(--home-accent); font-style: normal; }
.publication-preview > div > p { margin: 0 0 23px; color: var(--home-muted); font-size: 13px; line-height: 1.7; }

.home-content-loading [data-home-project] { opacity: .58; }

@media (max-width: 900px) {
  .home-header { padding-inline: 22px; }
  .home-nav { gap: 16px; }
  .home-nav a:nth-child(1), .home-nav a:nth-child(4) { display: none; }
  .home-hero { padding: 52px 30px 32px; }
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 38px; }
  .home-hero h1 { font-size: clamp(56px,8.2vw,72px); }
  .home-portals { grid-template-columns: 1fr; }
  .home-project-deck { min-height: 270px; }
  .home-project-card { width: clamp(240px,55%,340px); }
  .home-publication-deck { min-height: 236px; }
  .publication-preview { grid-template-columns: 1fr; align-items: start; }
  .publication-preview > p { margin-bottom: 0; }
  .publication-preview > div { max-width: 440px; }
}

@media (max-width: 620px) {
  .home-header { min-height: 70px; padding: 13px 17px; gap: 14px; }
  .home-logo > span { font-size: 28px; }
  .home-logo i { height: 30px; }
  .home-nav { display: none; }
  .home-account { margin-left: auto; }
  .home-hero { min-height: auto; padding: 50px 23px 28px; }
  .home-eyebrow { max-width: 260px; margin-bottom: 26px; line-height: 1.55; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-hero h1 { font-size: clamp(51px,14.4vw,64px); line-height: 1.13; }
  .home-hero h1 span:last-child { margin-left: 24px; }
  .home-hero-info { padding-top: 14px; }
  .home-hero-rule { margin-top: 21px; }
  .home-scroll-cue { width: 36px; height: 36px; margin-top: 12px; }
  .home-portals { padding: 0 12px 15px; gap: 12px; }
  .home-portal { min-height: 340px; padding: 22px 17px 19px; border-radius: 23px; }
  .home-portal-header h2 { font-size: 27px; }
  .home-project-card { width: min(265px,72%); }
  .home-publication-card { grid-template-columns: 34px minmax(0,1fr); }
  .home-publication-card > span { display: none; }
  .home-footer { padding-inline: 20px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .home-hero-links a span { animation: none; }
  .home-scroll-cue span { animation: none; }
  .home-hero-info mark::after, .home-portal.is-in-view, .home-portal.is-in-view .home-round-link { animation: none; }
  .home-hero-info mark::after { transform: scaleX(1); }
}
