/* GEM312 — Chicago River at dusk.
   Palette pulled from the photograph: river navy, steel-blue haze, sodium-lamp gold. */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations"), url("fonts/newsreader-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --river: #071428;      /* deepest water */
  --navy: #0b1d38;       /* band base */
  --navy-2: #0f2546;     /* raised band */
  --mist: #edf1f7;       /* primary text */
  --steel: #9daec6;      /* secondary text */
  --lamp: #e3b66a;       /* sodium streetlamp accent, used sparingly */
  --hair: rgba(157, 174, 198, .2);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--river);
  color: var(--mist);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
::selection { background: var(--lamp); color: var(--river); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--mist); color: var(--river); text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  padding-top: env(safe-area-inset-top);
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(7, 20, 40, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--hair);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .5s var(--ease); }
.is-solid .header-row { height: 68px; }
.wordmark {
  font: 500 clamp(1.7rem, 2.6vw, 2.25rem)/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav { display: flex; gap: clamp(22px, 3.4vw, 56px); }
.nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--steel);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--mist); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  background: var(--river) url("assets/hero-poster.jpg?v=2") 60% 50% / cover no-repeat;
}
.hero-media { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,20,40,.92) 0%, rgba(7,20,40,.74) 30%, rgba(7,20,40,.25) 58%, rgba(7,20,40,0) 75%),
    linear-gradient(180deg, rgba(7,20,40,.55) 0%, rgba(7,20,40,0) 22%, rgba(7,20,40,0) 70%, var(--navy) 100%);
}
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.hero-body { padding-block: 140px 96px; will-change: transform, opacity; }
.hero-title {
  font: 400 clamp(3.1rem, 6.6vw, 6.9rem)/.98 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.022em;
}
@media (min-width: 761px) { .hero-title .line { white-space: nowrap; } }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.rule { display: block; width: 92px; height: 2px; margin: clamp(26px, 3.4vw, 38px) 0 clamp(22px, 2.6vw, 30px); background: var(--lamp); transform-origin: left; }
.lede { max-width: 34rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.62; color: #d6dee9; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; isolation: isolate;
  margin-top: clamp(30px, 3.6vw, 42px); padding: 17px 30px;
  border: 1px solid rgba(237, 241, 247, .55); border-radius: 3px;
  font-weight: 500; font-size: 1.0625rem; text-decoration: none; color: var(--mist);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mist);
  clip-path: inset(100% 0 0 0); transition: clip-path .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--river); border-color: var(--mist); }
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0 0 0 0); }

/* Lamp-light glint that travels around the button's border, then rests */
@property --glint { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: 4px; pointer-events: none;
  background: conic-gradient(from var(--glint),
    transparent 0deg 285deg,
    rgba(227, 182, 106, .55) 318deg,
    rgba(255, 244, 222, .95) 340deg,
    transparent 356deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  animation: glint-turn 7s linear 2.4s infinite, glint-fade 7s linear 2.4s infinite;
}
@keyframes glint-turn { 0% { --glint: 0deg; } 64% { --glint: 360deg; } 100% { --glint: 360deg; } }
@keyframes glint-fade { 0% { opacity: 0; } 8% { opacity: 1; } 54% { opacity: 1; } 64%, 100% { opacity: 0; } }
.btn-arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* intro sequence: runs once when .is-in lands on <html> */
.js .hero-title .line > span { transform: translateY(105%); }
.js .rule { transform: scaleX(0); }
.js .lede, .js .btn { opacity: 0; transform: translateY(14px); }
.js .site-header { opacity: 0; }
.is-in .hero-title .line > span { transform: none; transition: transform 1.25s var(--ease); }
.is-in .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.is-in .rule { transform: none; transition: transform 1s var(--ease) .55s; }
.is-in .lede { opacity: 1; transform: none; transition: opacity 1s var(--ease) .7s, transform 1s var(--ease) .7s; }
.is-in .btn { opacity: 1; transform: none; transition: opacity 1s var(--ease) .85s, transform 1s var(--ease) .85s, color .45s var(--ease), border-color .45s var(--ease); }
.is-in .site-header { opacity: 1; transition: opacity 1s var(--ease) .3s, background-color .5s var(--ease), border-color .5s var(--ease); }

/* ---------- Pillars ---------- */
.pillars {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-top: 1px solid var(--hair);
}
.spot {
  position: absolute; width: 560px; height: 560px; left: 0; top: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(227, 182, 106, .10), rgba(227, 182, 106, 0));
  transform: translate(var(--sx, -999px), var(--sy, -999px)); opacity: 0; transition: opacity .6s var(--ease);
}
.pillars:hover .spot { opacity: 1; }
.pillar-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: clamp(40px, 5vw, 60px) clamp(16px, 2.4vw, 36px); text-align: center; }
.pillar + .pillar { border-left: 1px solid var(--hair); }
.ico {
  width: 46px; height: 46px; margin: 0 auto 20px;
  fill: none; stroke: var(--mist); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.ico * { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* a slow sodium-gold sheen runs along each icon's line work, one after another */
.pillar:nth-child(1) .ico { stroke: url(#sheen-1); }
.pillar:nth-child(2) .ico { stroke: url(#sheen-2); }
.pillar:nth-child(3) .ico { stroke: url(#sheen-3); }
.sheen-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.js .pillars:not(.is-drawn) .ico * { stroke-dashoffset: 1; }
.pillars.is-drawn .ico * { transition: stroke-dashoffset 1.6s var(--ease); }
.pillars.is-drawn .pillar:nth-child(2) .ico * { transition-delay: .15s; }
.pillars.is-drawn .pillar:nth-child(3) .ico * { transition-delay: .3s; }
.pillar h2 {
  font: 500 clamp(1.45rem, 2.2vw, 1.85rem)/1.15 var(--serif);
  font-variation-settings: "opsz" 36;
  letter-spacing: -.005em;
}
.pillar p { max-width: 17rem; margin: 10px auto 0; color: var(--steel); }

/* ---------- Contact ---------- */
.contact { background: var(--river); border-top: 1px solid var(--hair); }
.contact-row { display: grid; grid-template-columns: auto auto auto minmax(0, 1.25fr); align-items: center; }
.c-item { display: flex; align-items: center; gap: 16px; padding: 30px clamp(18px, 2.6vw, 38px); min-height: 104px; }
.c-item:first-child { padding-left: 0; }
.c-item:last-child { padding-right: 0; }
.c-item + .c-item { border-left: 1px solid var(--hair); }
.c-ico { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--lamp); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.c-link { font-size: 1.125rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.c-link:hover { background-size: 100% 1px; }
.c-text { display: block; font-style: normal; font-size: 1.0625rem; line-height: 1.45; }
.c-sub { font-size: .875rem; color: var(--steel); font-variant-numeric: tabular-nums; margin-top: 3px; }
.c-note p { font-size: .97rem; line-height: 1.5; color: var(--steel); max-width: 23rem; }
.c-note a { color: var(--mist); text-underline-offset: 3px; text-decoration-color: rgba(237,241,247,.35); }
.c-note a:hover { text-decoration-color: var(--lamp); }

.copy {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -4px;
  border: 0; border-radius: 50%; background: transparent; color: var(--steel); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover { background: rgba(157, 174, 198, .14); color: var(--mist); }
.copy-note {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 10px; border-radius: 3px; background: var(--mist); color: var(--river);
  font-size: .8125rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.copy-note:not(:empty) { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--river); border-top: 1px solid var(--hair); }
.footer-row { display: flex; justify-content: space-between; align-items: center; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--steel); }
.footer-row a { text-decoration: none; transition: color .3s var(--ease); }
.footer-row a:hover { color: var(--mist); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .contact-row { grid-template-columns: 1fr 1fr; }
  .c-item { padding-inline: 0; }
  .c-item + .c-item { border-left: 0; }
  .c-item:nth-child(even) { padding-left: clamp(18px, 3vw, 32px); border-left: 1px solid var(--hair); }
  .c-item:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; background-image: url("assets/hero-poster-portrait.jpg?v=2"); background-position: 50% 50%; }
  .hero-video { object-position: 50% 50%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7,20,40,.55) 0%, rgba(7,20,40,0) 20%, rgba(7,20,40,.2) 42%, rgba(7,20,40,.86) 70%, var(--navy) 100%);
  }
  .hero-body { padding-block: 120px 56px; }
  .header-row { height: 68px; }
  .nav { gap: 24px; }
  .nav a { font-size: 1rem; }
  .pillar-row { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; text-align: left; padding-inline: 0; }
  .pillar .ico { grid-row: span 2; margin: 2px 0 0; }
  .pillar p { margin: 6px 0 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--hair); }
  .contact-row { grid-template-columns: 1fr; }
  .c-item, .c-item:nth-child(even) { padding: 22px 0; min-height: 0; border-left: 0; }
  .c-item + .c-item { border-top: 1px solid var(--hair); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero {
    background-image: url("assets/hero-still.jpg");
    background-image: image-set(url("assets/hero-still.webp") type("image/webp"), url("assets/hero-still.jpg") type("image/jpeg"));
    background-position: 58% 50%;
  }
  .grain { animation: none; }
  .btn::after { animation: none; opacity: 0; }
  .js .hero-title .line > span, .js .rule, .js .lede, .js .btn, .js .site-header,
  .js .pillars:not(.is-drawn) .ico * { transform: none; opacity: 1; stroke-dashoffset: 0; transition: none; }
}
