/* davidsugarman.org
   Type: Sofia Sans Condensed (display) + Spline Sans Mono (labels, body). Both OFL, self-hosted. */

@font-face {
  font-family: "Sofia";
  src: url("/assets/fonts/sofia-sans-condensed.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono";
  src: url("/assets/fonts/spline-sans-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f7f7f7;
  --paper: #ffffff;
  --ink: #101010;
  --grey: #8f8f8f;
  --dim: #9b9b9b;
  --line: rgba(16, 16, 16, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --card: #ededed;
  --pad: clamp(16px, 3.4vw, 48px);
  --display: "Sofia", "Arial Narrow", sans-serif;
  --mono: "Spline Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.mono-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.spaced {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.9em;
}
.arrow { display: inline-block; transition: transform 0.4s var(--ease); }

/* Split text */
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.logo {
  display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 800;
  font-size: 28px; line-height: 0.78; letter-spacing: -0.04em;
  text-transform: uppercase; text-decoration: none;
}
.logo span:first-child { padding-left: 0.55em; }
.nav { display: flex; gap: clamp(28px, 6vw, 120px); }
.nav a, .header-cta {
  font-size: 13px; font-weight: 400; text-transform: uppercase; text-decoration: none;
}
.nav a::before { content: "[ "; }
.nav a::after { content: " ]"; }
.nav a:hover { opacity: 0.6; }
.header-cta {
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.header-cta:hover .arrow { transform: rotate(45deg); }
.menu-btn { display: none; justify-self: end; font-size: 13px; text-transform: uppercase; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 0 var(--pad);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--display); font-weight: 800; font-size: 15vw; line-height: 0.9;
  text-transform: uppercase; text-decoration: none; letter-spacing: -0.03em;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: 150px var(--pad) 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-name {
  width: 100%;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 15.2vw, 250px);
  line-height: 0.86; letter-spacing: -0.055em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  overflow: hidden; padding: 0.02em 0 0.06em;
}
.hero-based {
  align-self: flex-end;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 400;
}
.hero-card {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  width: min(576px, 100%);
  display: grid; grid-template-columns: 1fr 1.25fr;
  background: var(--card);
  padding: 4px;
}
.hero-labels {
  align-self: end;
  padding: 0 0 14px 10px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 2vw, 26px); line-height: 1.12; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #dcdcdc; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-intro {
  margin-top: 48px;
  max-width: 520px;
  text-align: center; text-transform: uppercase; font-size: 12.5px;
}
.hero-intro a, .about-story a:not(.arrow-link), .faq a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-strip {
  width: 100%;
  margin-top: clamp(64px, 9vw, 120px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.strip-right { text-align: right; }
.strip-link {
  display: inline-block; margin-top: 4px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1;
  text-transform: uppercase; text-decoration: none;
}
.strip-link:hover { opacity: 0.6; }

.giant-word {
  overflow: hidden;
  padding: 2vw var(--pad) 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(110px, 30vw, 470px); line-height: 0.74; letter-spacing: -0.06em;
  text-transform: uppercase; text-align: center;
}
.giant-word span { display: inline-block; transform-origin: 50% 100%; }

/* ---------- Dark ---------- */
.dark { background: #000; color: #fff; position: relative; z-index: 1; }
.dark .mono-label { color: #8a8a8a; }

.route {
  position: relative;
  height: 100svh;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.route-top {
  position: absolute; inset: 96px var(--pad) auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start;
}
.route-year { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.route-cities { justify-self: end; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.route-lines {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-30%, -50%);
  display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 7vw, 112px); line-height: 0.88; letter-spacing: -0.045em;
  text-transform: uppercase; white-space: nowrap;
}
.route-lines .dim { color: var(--dim); }

.about {
  padding: 120px var(--pad) 140px;
  display: flex; flex-direction: column; align-items: center;
}
.about-photo { width: min(260px, 60vw); aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hello { margin-top: 28px; text-align: center; text-transform: uppercase; font-weight: 400; }
.about-short { margin-top: 64px; max-width: 520px; }
.about-short p:last-child { margin-top: 10px; text-transform: uppercase; font-weight: 400; font-size: 14px; }
.about-grid {
  width: 100%;
  margin-top: 140px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px 6vw;
}
.about-quote { margin: 0; }
.about-quote p {
  font-family: var(--mono); font-weight: 300;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.about-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 11px; color: #8a8a8a; text-transform: uppercase; }
.about-story { align-self: end; max-width: 400px; justify-self: end; text-transform: uppercase; font-size: 12.5px; }
.about-story p + p { margin-top: 12px; }
.about-story .mono-label { margin-bottom: 14px; }
.arrow-link {
  display: inline-block; margin-top: 36px;
  font-size: 12px; text-transform: uppercase; text-decoration: none; color: #8a8a8a;
}
.arrow-link:hover { color: #fff; }

/* ---------- Career ---------- */
.career { background: var(--paper); position: relative; z-index: 1; }
.career-cols {
  height: 100svh;
  display: flex;
  border-bottom: 1px solid var(--line);
}
.chapter {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  transition: flex-grow 0.9s var(--ease);
  overflow: hidden;
}
.chapter:last-child { border-right: 0; }
.chapter.is-active { flex-grow: 3.6; }
.chapter-head {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  text-align: left;
  padding: 92px 14px 0;
}
.chapter-num { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; }
.chapter-title {
  display: block; margin-top: 8px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2.3vw, 36px); line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.chapter-year { position: absolute; left: 14px; bottom: 18px; font-size: 11px; text-transform: uppercase; color: var(--grey); }
.chapter.is-active .chapter-title { font-size: clamp(34px, 4.2vw, 64px); }
.chapter-body {
  position: absolute; left: 14px; right: 20px; top: 42%;
  display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.2fr; gap: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  pointer-events: none;
}
.chapter.is-active .chapter-body {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.6s ease 0.35s, visibility 0s;
}
.chapter-tags {
  font-family: var(--display); font-weight: 700;
  font-size: 15px; line-height: 1.25; text-transform: uppercase; letter-spacing: -0.01em;
}
.chapter-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.chapter-photo img { width: 100%; height: 100%; object-fit: cover; }
.chapter-photo.is-logo, .tile { background: var(--logo-bg, #000); display: grid; place-items: center; }
.chapter-photo.is-logo img { width: 74%; height: auto; object-fit: contain; }
.chapter-desc {
  grid-column: 1 / -1;
  margin-top: 8px; max-width: 520px;
  font-size: 11.5px; text-transform: uppercase; color: #555;
}
.chapter-desc a { color: var(--ink); white-space: nowrap; }

/* ---------- Elsewhere ---------- */
.elsewhere { padding: 150px var(--pad) 80px; }
.elsewhere-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 11vw, 176px); line-height: 0.8; letter-spacing: -0.05em;
  text-transform: uppercase;
}
.sites {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(16px, 2.4vw, 36px);
}
.site-card { display: block; text-decoration: none; }
.site-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.site-card img { width: 62%; height: auto; transition: transform 1.1s var(--ease); }
.site-card .tile-ds img { width: 70%; }
.site-card:hover img { transform: scale(1.05); }
.site-card h3 {
  margin-top: 16px;
  font-family: var(--display); font-weight: 800;
  font-size: 24px; letter-spacing: -0.02em; text-transform: uppercase;
}
.site-card:hover h3 .arrow, .site-card:hover h3 span { display: inline-block; transform: rotate(45deg); }
.site-card h3 span { display: inline-block; transition: transform 0.4s var(--ease); }
.site-card ul { margin-top: 8px; font-size: 11px; text-transform: uppercase; color: var(--grey); }

.wide { position: relative; height: 100svh; overflow: hidden; }
.wide-frame {
  position: absolute; inset: 0;
  clip-path: inset(18% 30% 18% 30%);
}
.wide-frame { background: #000 url("/assets/video/miami-poster.jpg") center / cover no-repeat; }
.wide-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wide-caption {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; justify-content: space-between;
  color: #fff; font-size: 11px; text-transform: uppercase;
}

/* ---------- Press ---------- */
.press { position: relative; padding: 140px var(--pad) 120px; }
.press-head { position: absolute; left: var(--pad); top: 140px; max-width: 260px; }
.press-title {
  font-family: var(--display); font-weight: 800;
  font-size: 22px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
.press-head .mono-label { margin-top: 6px; }
.press-list { width: min(680px, 100%); margin: 120px auto 0; }
.press-list li + li { margin-top: 34px; }
.press-list a {
  display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  text-decoration: none; text-transform: uppercase;
  transition: padding 0.5s var(--ease);
}
.press-list a:hover { padding-left: 10px; }
.press-list a:hover .arrow { transform: rotate(45deg); }
.press-logo img { height: 24px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.press-name { font-size: 14px; font-weight: 400; }
.press-name sup { font-size: 8px; margin-left: 3px; color: var(--grey); }

/* ---------- Contact ---------- */
.contact {
  padding: 120px var(--pad) 140px;
  display: flex; flex-direction: column; align-items: center;
}
.contact-kicker { font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.contact-title {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 7.6vw, 116px); line-height: 0.86; letter-spacing: -0.045em;
  text-transform: uppercase; text-align: center;
}
.contact-title .spaced { font-size: 11px; letter-spacing: 1.1em; margin: 18px 0 14px; font-weight: 400; }
.contact-email {
  margin-top: 72px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.03em;
  text-decoration: none;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.contact-email:hover .arrow { transform: rotate(45deg); }
.contact-socials { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.contact-socials a { font-size: 12px; font-weight: 400; text-transform: uppercase; text-decoration: none; }
.contact-socials a::before { content: "[ "; }
.contact-socials a::after { content: " ]"; }
.contact-socials a:hover { opacity: 0.55; }

/* ---------- Questions ---------- */
.faq { position: relative; padding: 40px var(--pad) 120px; }
.faq .press-head { top: 40px; }
.faq-list { width: min(680px, 100%); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--ink); }
.faq details + details { margin-top: 26px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 10px;
  font-size: 14px; font-weight: 400; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .arrow { transform: rotate(-90deg); }
.faq details p { padding: 4px 0 18px; max-width: 600px; font-size: 13px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { padding: 80px var(--pad) 22px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 96px); }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links .mono-label { margin-bottom: 6px; }
.footer-links a, .socials a { font-size: 12px; font-weight: 400; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover, .socials a:hover { opacity: 0.55; }
.footer-contact { text-align: right; }
.footer-contact > a {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.03em;
  text-decoration: none;
}
.socials { margin-top: 18px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 20px; }
.footer-name {
  margin-top: 56px;
  font-family: var(--display); font-weight: 800;
  font-size: 15.9vw; line-height: 0.8; letter-spacing: -0.06em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  overflow: hidden;
}
.footer-bar {
  margin-top: 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 10.5px; font-weight: 400; text-transform: uppercase;
}
.footer-bar i { font-style: normal; margin: 0 6px; color: var(--grey); }
.footer-bar a { text-decoration: none; }
.footer-legal { margin-top: 16px; max-width: 760px; font-size: 10px; color: var(--grey); text-transform: uppercase; }

/* ---------- Reveal (JS adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding-top: 16px; padding-bottom: 16px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .logo { font-size: 22px; }

  .hero { padding-top: 120px; }
  .hero-card { grid-template-columns: 1fr 1.4fr; }
  .hero-strip { flex-direction: column; align-items: flex-start; }
  .strip-right { text-align: left; }

  .route-top { top: 84px; grid-template-columns: 1fr 1fr; }
  .route-top .mono-label { display: none; }
  .route-lines { left: var(--pad); transform: translateY(-50%); font-size: 11.6vw; }

  .about { padding-top: 96px; padding-bottom: 110px; }
  .about-short { margin-top: 48px; }
  .about-grid { grid-template-columns: 1fr; margin-top: 80px; }
  .about-story { justify-self: start; }

  .career-cols { height: auto; flex-direction: column; }
  .chapter { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter:last-child { border-bottom: 0; }
  .chapter-head { position: relative; height: auto; padding: 22px var(--pad); display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; }
  .chapter-title, .chapter.is-active .chapter-title { margin: 0; font-size: 30px; }
  .chapter-year { position: static; }
  .chapter-body {
    position: static; display: none;
    grid-template-columns: 1fr; gap: 16px;
    padding: 0 var(--pad) 28px;
  }
  .chapter.is-active .chapter-body { display: grid; }
  .chapter-tags { display: flex; flex-wrap: wrap; gap: 2px 12px; }

  .elsewhere { padding-top: 110px; }
  .elsewhere-head { flex-direction: column; align-items: flex-start; }
  .sites { grid-template-columns: 1fr; }

  .wide { height: 70svh; }

  .press { padding-top: 100px; }
  .press-head { position: static; max-width: none; }
  .press-list { margin-top: 48px; }
  .press-list a { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .press-logo { grid-column: 1 / -1; }
  .faq { padding-top: 20px; }
  .faq-list { margin-top: 40px; }
  .footer-cols { flex-direction: column; gap: 28px; }

  .contact { padding-top: 90px; }
  .contact-email { margin-top: 48px; font-size: 8.4vw; }

  .footer-top { flex-direction: column-reverse; }
  .footer-contact { text-align: left; }
  .socials { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wide-frame { clip-path: none; }
}
