/* Ishan Ray
   Type matches radialnow.com: Montserrat ExtraBold ("Mont") for headings,
   system-ui for body. The monogram is the only serif. */

@font-face {
  font-family: Mont;
  src: url("/fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Mont;
  src: url("/fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --cream: #f2eac9;
  --red: #e5202e;
  --pad: clamp(20px, 4.2vw, 72px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hair-dark: rgba(242, 234, 201, 0.18);
  --hair-light: rgba(10, 10, 10, 0.16);
  --muted-dark: rgba(242, 234, 201, 0.74);
  --muted-light: rgba(10, 10, 10, 0.72);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.lock {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
.kicker,
.idx,
.brand span,
.nav-toggle,
.contact-list a,
.co h2 {
  font-family: Mont, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  line-height: 0.94;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

.surface-red ::selection {
  background: var(--black);
  color: var(--cream);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.surface-red :focus-visible,
.nav.is-open :focus-visible {
  outline-color: var(--black);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--cream);
  color: var(--black);
  padding: 10px 14px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("/assets/grain.png");
  background-size: 180px 180px;
}

.surface-dark {
  background: var(--black);
  color: var(--cream);
}

.surface-light {
  background: var(--cream);
  color: var(--black);
  color-scheme: light;
}

.surface-red {
  background: var(--red);
  color: var(--cream);
}

.kicker {
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.tick {
  width: 36px;
  height: 2px;
  background: var(--red);
  margin: 0 0 18px;
  border: 0;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 34em;
}

.arrow {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  position: relative;
  vertical-align: middle;
  margin-left: 2px;
  flex: 0 0 auto;
}

.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3.5px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Mark */

.mark {
  overflow: visible;
  color: inherit;
}

.mark .stem {
  fill: currentColor;
}

.mark .bowl {
  fill: var(--red);
}

.mark.solid .stem,
.mark.solid .bowl {
  fill: currentColor;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  background: var(--black);
  color: var(--cream);
  border-bottom: 1px solid var(--hair-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  min-height: 44px;
}

.brand .mark {
  width: 34px;
  height: auto;
}

.brand span {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle .close-label {
  display: none;
}

.nav.is-open {
  background: transparent;
  color: var(--black);
  border-bottom-color: transparent;
}

.nav.is-open .nav-toggle .open-label {
  display: none;
}

.nav.is-open .nav-toggle .close-label {
  display: inline;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-foot {
  display: none;
  margin: 28px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 959px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .js .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--cream);
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
    padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--pad) calc(40px + env(safe-area-inset-bottom));
    transform: translateY(-102%);
    visibility: hidden;
  }

  .js .nav.is-open .nav-links {
    transform: none;
    visibility: visible;
  }

  .js .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 1.05em;
    font-family: Mont, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3.1rem, 15vw, 4.6rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
    padding: 2px 0;
    color: var(--black);
  }

  .js .nav.is-open .menu-foot {
    display: block;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    font-size: 0.96rem;
    font-weight: 500;
    color: rgba(242, 234, 201, 0.78);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--cream);
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px var(--pad) 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: clamp(4.75rem, 21vw, 6.75rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.hero h1 span {
  display: block;
}

.hero .lede {
  margin-top: 28px;
  max-width: 16em;
  font-size: 1.125rem;
  color: var(--cream);
}

.hero .textlink {
  margin-top: 28px;
}

/* Intro */

.intro {
  padding: clamp(88px, 13vh, 156px) var(--pad);
}

.intro h2 {
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  max-width: 9.2em;
  letter-spacing: -0.02em;
}

.intro .lede {
  margin-top: 28px;
  max-width: 28em;
}

/* Companies */

.co {
  display: block;
  padding: clamp(48px, 8vh, 92px) var(--pad);
  border-top: 1px solid var(--hair-dark);
}

.surface-light.co {
  border-top-color: var(--hair-light);
}

.idx {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  margin: 0 0 14px;
}

.co h2 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  letter-spacing: -0.02em;
  max-width: 10em;
}

.co-side {
  margin-top: 22px;
  max-width: 36em;
}

.co-side p {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.surface-dark .co-side p,
.surface-light .co-side p {
  color: inherit;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: inherit;
}

.surface-dark .go,
.surface-light .go {
  color: inherit;
}

/* Writing */

.writing {
  position: relative;
  overflow: clip;
  padding: clamp(88px, 12vh, 150px) var(--pad);
}

.writing-grid {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.writing h2 {
  font-size: clamp(2.35rem, 8vw, 4.15rem);
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 11em;
}

.contact .kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.writing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 32px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  font-size: 1.0625rem;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 10px);
}

.writing-mark {
  display: none;
}

/* Contact */

.contact {
  position: relative;
  overflow: clip;
  padding: clamp(88px, 12vh, 150px) var(--pad) clamp(72px, 10vh, 120px);
}

.contact-grid {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.contact h2 {
  font-size: clamp(3rem, 8vw, 5.75rem);
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(242, 234, 201, 0.38);
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 234, 201, 0.38);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-mark {
  display: none;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom));
  background: var(--black);
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* Desktop */

@media (min-width: 960px) {
  .hero {
    padding: 48px var(--pad) 64px;
  }

  .hero h1 {
    font-size: clamp(6.5rem, 11.6vw, 11.75rem);
    line-height: 0.84;
  }

  .hero h1 span {
    display: inline;
  }

  .hero h1 span + span::before {
    content: " ";
  }

  .hero .lede {
    max-width: 28em;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    margin-top: 36px;
  }

  .intro h2 {
    max-width: 8.4em;
  }

  .co {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    column-gap: clamp(32px, 4vw, 72px);
    align-items: end;
  }

  .idx {
    grid-column: 1 / -1;
  }

  .co h2 {
    margin: 0;
  }

  .co-side {
    margin-top: 0;
    padding-bottom: 0.35em;
  }

  .writing-grid {
    max-width: 980px;
  }

  .writing h2 {
    font-size: clamp(3rem, 5.4vw, 5.35rem);
    max-width: 11em;
  }

  .contact {
    min-height: 72vh;
    display: flex;
    align-items: center;
  }

  .contact-grid {
    max-width: 40rem;
  }

  .contact-mark {
    display: block;
    position: absolute;
    z-index: 0;
    color: var(--black);
    height: 118%;
    width: auto;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .tick,
  .hero-copy .kicker,
  .hero-copy h1,
  .hero-copy .lede {
    animation: rise 0.9s var(--ease) both;
  }

  .hero-copy .kicker {
    animation-delay: 0.05s;
  }

  .hero-copy h1 {
    animation-delay: 0.1s;
  }

  .hero-copy .lede {
    animation-delay: 0.18s;
  }

  .js .reveal {
    translate: 0 18px;
    transition: translate 0.8s var(--ease);
  }

  .js .reveal.in {
    translate: 0 0;
  }

  .nav-links {
    transition: transform 0.45s var(--ease), visibility 0.45s;
  }

  .arrow {
    transition: width 0.35s var(--ease);
  }

  @media (hover: hover) and (pointer: fine) {
    .co:hover .arrow,
    .textlink:hover .arrow,
    .contact-list a:hover .arrow {
      width: 46px;
    }

    .surface-dark.co:hover {
      background: #121110;
    }

    .surface-light.co:hover {
      background: #e7dfbc;
    }

    .contact-list a:hover {
      padding-left: 8px;
    }

    .nav-links a,
    .contact-list a,
    .textlink {
      transition: color 0.2s ease, padding-left 0.35s var(--ease);
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy .tick,
  .hero-copy .kicker,
  .hero-copy h1,
  .hero-copy .lede,
  .nav-links,
  .arrow,
  .co,
  .contact-list a {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .grain,
  .nav-toggle,
  .writing-mark,
  .contact-mark {
    display: none !important;
  }

  body,
  .surface-dark,
  .surface-red,
  .nav,
  .footer {
    background: #fff !important;
    color: #000 !important;
  }

  .nav {
    position: static;
  }

  a {
    text-decoration: underline;
  }
}
