@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/Geist.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* Match Georgia to the hero text's widths and Instrument Serif's line metrics. */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Georgia");
  font-style: normal;
  font-weight: 400;
  size-adjust: 77.0346%;
  ascent-override: 128.5137%;
  descent-override: 40.2417%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  font-weight: 400;
  size-adjust: 79.4939%;
  ascent-override: 124.5379%;
  descent-override: 38.9967%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --paper: #f0efeb;
  --cloud: #f8f8f6;
  --ink: #283b54;
  --muted: #5c6878;
  --blue: #5479b2;
  --breeze: #bcd0e8;
  --citron: #e0cd8b;
  --line: #d6d9db;
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Geist", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 40px; }

body { margin: 0; -webkit-font-smoothing: antialiased; }
.home-document { background: var(--ink); }

::selection { background: var(--breeze); color: var(--ink); }

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

a { -webkit-tap-highlight-color: transparent; }

a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }

svg { display: block; }

p, h1, h2 { margin: 0; }

.page-width { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }

.skip-link { position: absolute; z-index: 10; top: 12px; left: 20px; padding: 12px 18px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.header-surface { background: #fff; }
.site-header { height: 116px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }

.wordmark { display: inline-flex; align-items: baseline; font-size: 29px; line-height: 1; letter-spacing: -1.4px; font-weight: 500; }
.wordmark > span:first-child { font-weight: 400; }

.site-header nav { display: flex; align-items: center; gap: 36px; font-size: 12px; font-weight: 450; }
.nav-section { position: relative; padding-block: 12px; }
.nav-section::after { content: ""; position: absolute; bottom: 6px; left: 0; width: 0; height: 1px; background: currentColor; transition: width 180ms ease; }
.nav-section:hover::after { width: 100%; }
.nav-section[aria-current="page"]::after { width: 100%; }

.hero-surface { background: linear-gradient(180deg, #fff 0%, #e9eff7 60%, var(--breeze) 78%, var(--blue) 90%, var(--ink) 100%); }
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; min-height: 690px; padding-block: 62px 64px; position: relative; }
.hero > * { min-width: 0; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 10px; }
h1 { margin: 0 -30px 28px 0; font-family: var(--serif); font-size: clamp(68px, 6.1vw, 88px); font-weight: 400; line-height: 1.015; letter-spacing: -2.7px; }
h1 em { color: var(--blue); }
.hero-description { max-width: 400px; color: var(--muted); font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.hero-surface .hero-description { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 19px; border: 1px solid #b6bec6; border-radius: 3px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 450; transition: border-color 180ms ease, background 180ms ease; }
.button:hover { border-color: var(--ink); background: #e7e8e7; }
.button span { font-size: 17px; line-height: 1; transition: transform 180ms ease; }
.button:hover span { transform: translate(2px, -2px); }

.hero-art { width: calc(100% + 16px); position: relative; }
.specimen { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.specimen-halo { position: absolute; z-index: -1; inset: 6% 0 0; border-radius: 50%; background: radial-gradient(ellipse, #c7d6e164 0%, #c2c7d926 44%, transparent 69%); }
.pearl { width: 100%; height: 100%; overflow: visible; animation: pearl-float 10s ease-in-out infinite; }
.specimen-topic { outline: none; }
.specimen-topic-hit { fill: transparent; pointer-events: all; }
.specimen-topic-dot { pointer-events: none; transform-box: fill-box; transform-origin: center; transition: transform 180ms ease, fill 180ms ease, fill-opacity 180ms ease; }
.specimen-topic-label { pointer-events: none; opacity: 0; transform: translateY(3px); font-family: var(--sans); font-size: 16px; font-weight: 450; fill: var(--ink); stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; transition: opacity 200ms ease, transform 200ms ease; }
.specimen-topic:is(:hover, :focus-visible) .specimen-topic-dot { transform: scale(2.8); fill: var(--citron); fill-opacity: 1; }
.specimen-topic:is(:hover, :focus-visible) .specimen-topic-label { opacity: 1; transform: translateY(0); }

@keyframes pearl-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

h2 { font-family: var(--serif); font-size: clamp(40px, 4.15vw, 58px); font-weight: 400; line-height: 1.08; letter-spacing: -0.8px; text-wrap: balance; }

.team-document { display: flex; flex-direction: column; min-height: 100svh; }
.team-page { flex: 1; padding-block: 96px; }
.team-page > h1 { margin: 0 0 52px; }
.team-member { display: flex; align-items: center; justify-content: space-between; align-self: start; gap: 24px; max-width: 570px; padding-block: 5px; font-size: 22px; line-height: 1.5; letter-spacing: -0.4px; }
.team-page > .team-member { padding-block: 24px; border-block: 1px solid var(--line); }
.team-member > span:last-child { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.team-member > span:last-child > span { font-size: 18px; line-height: 1; }
.team-member:hover > span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.team-member:hover > span:last-child { color: var(--blue); }

.contact-section { padding-block: 89px 67px; }
.contact-panel { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #ccd5e1; border-radius: 4px; background: linear-gradient(114deg, #d9e2ee 0%, #d7dfed 43%, #c8cce1 100%); padding: 64px 65px 58px; }
.contact-panel::after { content: ""; z-index: -1; position: absolute; width: 650px; height: 650px; right: -170px; top: -70px; border-radius: 50%; background: radial-gradient(circle at 34% 25%, #f0efeb77, #bcd0e82b 40%, #aaabc24d 65%, #8897bd33 79%, transparent 81%); box-shadow: inset 2px 2px 4px #f0efeb66; }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { font-size: clamp(46px, 4.8vw, 67px); }
.contact-copy h2 em { color: #526e97; }
.contact-copy > p { max-width: 395px; margin-top: 24px; font-size: 14px; color: #536278; line-height: 1.9; }
.contact-email { display: inline-flex; align-items: center; gap: 47px; margin-top: 32px; padding-bottom: 9px; border-bottom: 1px solid #7a8eab; font-size: 15px; letter-spacing: -0.25px; }
.contact-email > span { font-size: 24px; line-height: 1; transition: transform 180ms ease; }
.contact-email:hover > span { transform: translate(3px, -3px); }
.contact-orbit { position: absolute; z-index: 0; width: 600px; height: 235px; right: -190px; top: 100px; transform: rotate(-43deg); border: 1px solid #7e92b34d; border-radius: 50%; }
.orbit-two { transform: rotate(-55deg); right: -255px; top: 90px; border-color: #f0efeb80; }
.orbit-one::after { content: ""; position: absolute; top: 43px; left: 70px; width: 10px; height: 10px; border-radius: 50%; background: var(--citron); box-shadow: 0 0 0 4px #e0cd8b26; }
.site-footer { display: flex; align-items: center; gap: 30px; padding-block: 26px 30px; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 26px; }
.copyright { font-size: 10px; color: var(--muted); }
.home-document .site-footer { color: var(--paper); border-top-color: #bcd0e833; }
.home-document .copyright { color: var(--breeze); }
.home-document .site-footer a:focus-visible { outline-color: var(--breeze); }
.back-to-top { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 10px; }
.back-to-top > span { font-size: 16px; }

@media (min-width: 1600px) {
  .hero { min-height: 755px; }
}

@media (max-width: 1100px) {
  .page-width { width: calc(100% - 72px); }
  .site-header { height: 98px; }
  .hero { min-height: 620px; padding-block: 56px; }
  h1 { font-size: 68px; }
  .hero-description { font-size: 14px; max-width: 330px; }
  .hero-art { width: calc(100% + 24px); }
  .contact-panel { padding: 52px; }
}

@media (max-width: 900px) {
  .page-width { width: calc(100% - 44px); }
  .site-header { height: 86px; }
  .wordmark { font-size: 25px; }
  .site-header nav { gap: 18px; }
  .nav-section { display: none; }
  .nav-team { display: block; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 57px 35px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(46px, 14.2vw, 91px); margin: 0 0 23px; letter-spacing: -1.9px; }
  .hero-description { max-width: 380px; font-size: 14px; }
  .button { font-size: 10px; padding: 11px 13px; gap: 16px; }
  .hero-art { width: min(100%, 480px); margin: 15px auto 0; }
  h2 { font-size: clamp(36px, 7.7vw, 50px); }
  .team-page { padding-block: 64px; }
  .contact-section { padding-block: 48px 44px; }
  .contact-panel { padding: 33px 25px; }
  .contact-copy h2 { font-size: clamp(36px, 8.5vw, 55px); }
  .contact-copy > p { font-size: 13px; max-width: 300px; margin-top: 20px; }
  .contact-email { font-size: 12px; gap: 25px; margin-top: 26px; }
  .contact-email > span { font-size: 21px; }
  .contact-panel::after { right: -420px; top: 30px; opacity: 0.65; }
  .contact-orbit { right: -470px; top: 70px; }
  .orbit-two { right: -500px; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding-block: 23px; }
  .site-footer .wordmark { font-size: 23px; }
  .copyright { width: 100%; order: 3; font-size: 9px; }
  .back-to-top { margin-left: auto; font-size: 9px; }
}

@media (max-width: 380px) {
  .page-width { width: calc(100% - 36px); }
  .contact-panel { padding-inline: 20px; }
  .contact-copy h2 { font-size: 34px; }
}

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