:root {
  --bg: #0b0b0b;
  --ink: #f4f1ec;
  --ink-dim: rgba(244, 241, 236, 0.55);
  --ink-hair: rgba(244, 241, 236, 0.12);
  --accent: #f4f1ec;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ───────── Navigation ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  mix-blend-mode: difference;
  color: #fff;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.01em;
  font-weight: 300;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { background: currentColor; color: var(--bg); }
.nav__cta svg { transition: transform 0.3s ease; }
.nav__cta:hover svg { transform: translate(2px, -2px); }

.nav__cta-short { display: none; }

@media (max-width: 900px) {
  .nav__links { gap: 22px; font-size: 12.5px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}

@media (max-width: 520px) {
  .nav { padding: 16px var(--gutter); }
  .nav__brand { font-size: 16px; }
  .nav__cta { padding: 8px 14px; font-size: 12px; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: calc(var(--section-y) + 40px) var(--gutter) var(--section-y);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "title image"
    "sub image";
  gap: 40px 60px;
  align-items: end;
  min-height: 100vh;
}

.hero__title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__title .line {
  display: block;
  padding-bottom: 0.05em;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero__sub {
  grid-area: sub;
  max-width: 42ch;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__sub p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.78);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink-hair);
  border-radius: 999px;
  width: max-content;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ghost-link:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.ghost-link svg { transition: transform 0.3s ease; }
.ghost-link:hover svg { transform: translateX(3px); }

.hero__image {
  grid-area: image;
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transform: scale(1.02);
  transition: filter 0.8s ease, transform 1.2s ease;
}
.hero__image:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "sub";
    gap: 28px;
    min-height: auto;
  }
  .hero__image { aspect-ratio: 4 / 5; }
}
@media (max-width: 520px) {
  .hero {
    padding-top: calc(var(--section-y) + 24px);
    gap: 24px;
  }
  .hero__title { font-size: clamp(64px, 18vw, 96px); }
  .hero__sub p { font-size: 15px; }
  .hero__image { aspect-ratio: 3 / 4; }
}

/* ───────── About ───────── */
.about {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--ink-hair);
}
.about__label { margin-bottom: 60px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: start;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--ink-dim);
}

.about__copy p {
  margin: 0 0 1.2em;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 241, 236, 0.82);
  max-width: 52ch;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ───────── Work ───────── */
.work {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--ink-hair);
}
.work__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.work__lede {
  max-width: 46ch;
  margin: 0;
  color: rgba(244, 241, 236, 0.75);
  font-size: 15px;
  line-height: 1.65;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #111;
  aspect-ratio: 3 / 4;
  grid-column: span 2;
}
/* Center a 2-tile orphan final row */
.work__grid > .tile:nth-last-child(2):nth-child(3n+1) {
  grid-column: 2 / span 2;
}
/* Center a single-tile orphan */
.work__grid > .tile:last-child:nth-child(3n+1) {
  grid-column: 3 / span 2;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease;
}
.tile:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}
@media (hover: none) {
  .tile.is-active img,
  .hero__image.is-active img {
    filter: grayscale(0);
  }
}

@media (max-width: 1000px) {
  .work__header { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .tile { grid-column: span 2; }
  .work__grid > .tile:nth-last-child(2):nth-child(3n+1) { grid-column: span 2; }
  .work__grid > .tile:last-child:nth-child(2n+1) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .work__grid { grid-template-columns: 1fr; gap: 10px; }
  .tile { grid-column: auto; }
  .work__grid > .tile:nth-last-child(2):nth-child(3n+1),
  .work__grid > .tile:last-child:nth-child(2n+1) { grid-column: auto; }
}

/* ───────── Press ───────── */
.press {
  padding: clamp(48px, 6vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--ink-hair);
}
.press__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 72px;
  margin-top: 60px;
}
.press-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: inherit;
  width: 440px;
  max-width: 100%;
}
.press-card__media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #111;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--ink-hair);
}
.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.press-card:hover .press-card__media img { transform: scale(1.04); }

.press-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 32px;
}
.press-card__logo {
  display: block;
  max-width: none;
  filter: invert(1);
  opacity: 1;
}
.press-card__logo--wsj { width: 260px; height: auto; }
.press-card__logo--vogue { width: 130px; height: auto; }
.press-card__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 26ch;
}
.press-card__arrow {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 20px;
  color: var(--ink-dim);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.25s ease;
}
.press-card:hover .press-card__arrow {
  transform: translate(3px, -3px);
  color: var(--ink);
}

@media (max-width: 960px) {
  .press__grid { gap: 56px; margin-top: 48px; }
  .press-card { width: 100%; max-width: 520px; }
  .press-card__body { padding-right: 28px; }
}
@media (max-width: 520px) {
  .press__grid { margin-top: 36px; gap: 44px; }
  .press-card { gap: 18px; }
  .press-card__body { gap: 10px; padding-right: 24px; }
  .press-card__logo--wsj { width: 200px; }
  .press-card__logo--vogue { width: 100px; }
  .press-card__title { font-size: 20px; max-width: 24ch; }
  .press-card__arrow { font-size: 18px; }
}

/* ───────── Services ───────── */
.services {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--ink-hair);
}
.services__list {
  list-style: none;
  padding: 0;
  margin: 80px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink-hair);
  border-left: 1px solid var(--ink-hair);
}
.services__list li {
  padding: 44px 40px 56px;
  border-right: 1px solid var(--ink-hair);
  border-bottom: 1px solid var(--ink-hair);
  transition: background 0.3s ease;
}
@media (max-width: 520px) {
  .services__list { margin-top: 48px; }
  .services__list li { padding: 32px 24px 40px; }
  .services__list h3 { font-size: 24px; }
}
@media (max-width: 520px) {
  .contact__title { font-size: clamp(52px, 15vw, 80px); margin: 16px 0 40px; }
  .contact__card { min-height: 140px; padding: 24px 22px 26px; }
}
.services__list li:hover { background: rgba(244, 241, 236, 0.03); }

.services__list h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.services__list p {
  margin: 0;
  max-width: 38ch;
  color: rgba(244, 241, 236, 0.72);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .services__list { grid-template-columns: 1fr; }
}

/* ───────── Contact ───────── */
.contact {
  padding: var(--section-y) var(--gutter);
}
.services { padding-bottom: clamp(48px, 6vw, 96px); }
.contact { padding-top: clamp(48px, 6vw, 96px); }
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 24px 0 64px;
}
.contact__title em {
  font-style: italic;
  color: var(--ink-dim);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact__icon {
  vertical-align: -2px;
  margin-right: 8px;
}
.contact__card {
  position: relative;
  padding: 30px 28px 34px;
  border: 1px solid var(--ink-hair);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.contact__card:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.contact__card:hover .mono { color: rgba(11, 11, 11, 0.55); }
.contact__value {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: auto;
}
.contact__arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 22px;
  transition: transform 0.3s ease;
}
.contact__card:hover .contact__arrow { transform: translate(3px, -3px); }

@media (max-width: 800px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */
.footer {
  padding: 40px var(--gutter) 20px;
  border-top: 1px solid var(--ink-hair);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer__mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 10.8vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: center;
  opacity: 0.94;
}
@media (max-width: 520px) {
  .footer { padding: 32px var(--gutter) max(20px, env(safe-area-inset-bottom)); }
  .footer__row { gap: 12px; padding-bottom: 28px; }
  .footer__mark {
    font-size: clamp(40px, 13vw, 72px);
    white-space: normal;
    word-spacing: 0.02em;
  }
}

.amp {
  font-family: var(--sans);
  font-weight: 300;
  font-style: normal;
  margin: 0 0.06em;
}

/* ───────── Reveal-on-scroll ───────── */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line,
  .section-title,
  .contact__title,
  .tile {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .hero__title .line:nth-child(1) { animation-delay: 0.1s; }
  .hero__title .line:nth-child(2) { animation-delay: 0.2s; }
  .hero__title .line:nth-child(3) { animation-delay: 0.3s; }
  .tile:nth-child(1) { animation-delay: 0.05s; }
  .tile:nth-child(2) { animation-delay: 0.1s; }
  .tile:nth-child(3) { animation-delay: 0.15s; }
  .tile:nth-child(4) { animation-delay: 0.2s; }
  .tile:nth-child(5) { animation-delay: 0.25s; }
  .tile:nth-child(6) { animation-delay: 0.3s; }
  .tile:nth-child(n+7) { animation-delay: 0.35s; }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

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