/* ============================================
   Northbound Studio — dark editorial, showcase
   ============================================ */

:root {
  --bg:        #0d0d0c;
  --bg-2:      #161614;
  --paper:     #efe9dd;
  --paper-2:   #c8c2b6;
  --paper-3:   #7d786f;
  --accent:    #d4a04a;
  --line:      rgba(239, 233, 221, 0.15);
  --line-soft: rgba(239, 233, 221, 0.08);

  --serif: "DM Serif Display", "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* hide system cursor on desktop where custom cursor works */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: none !important; }
}

/* warm film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.75 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ============================================ SCROLL PROGRESS */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s ease-out;
}

/* ============================================ CUSTOM CURSOR */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 250;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}
.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor__ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
.cursor.is-link .cursor__dot {
  width: 0;
  height: 0;
}
.cursor.is-link .cursor__ring {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.is-card .cursor__ring {
  width: 80px;
  height: 80px;
  border-color: var(--accent);
}

/* ============================================ TOP */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.top__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.top__brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}
.top__brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.top__nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}
.top__nav a {
  color: var(--paper-2);
  transition: color 0.2s;
  position: relative;
}
.top__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.top__nav a:hover { color: var(--paper); }
.top__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.top__nav-cta {
  color: var(--paper) !important;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  font-weight: 500;
}
.top__nav-cta:hover { color: var(--accent) !important; }
.top__nav-cta::after { display: none; }

@media (max-width: 720px) {
  .top__nav a:not(.top__nav-cta) { display: none; }
  .top__nav-cta { padding-left: 0; border-left: 0; }
}

/* ============================================ HERO */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--pad) clamp(40px, 6vw, 80px);
  position: relative;
}

/* animated N monogram in top right */
.hero__monogram {
  position: absolute;
  top: clamp(60px, 10vw, 120px);
  right: var(--pad);
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  color: var(--accent);
  opacity: 0.5;
}
.hero__monogram path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 720px) {
  .hero__monogram { opacity: 0.3; width: 80px; height: 80px; }
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--paper-3);
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.hero__meta-divider {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* word reveal */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: word-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-word:nth-child(1) { animation-delay: 0.1s; }
.reveal-word:nth-child(3) { animation-delay: 0.2s; }
.reveal-word:nth-child(5) { animation-delay: 0.3s; }
@keyframes word-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 8.5vw, 132px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

/* line reveal with mask — each line swings up */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.reveal-line__inner {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-line:nth-child(1) .reveal-line__inner { animation-delay: 0.4s; }
.reveal-line:nth-child(2) .reveal-line__inner { animation-delay: 0.55s; }
.reveal-line:nth-child(3) .reveal-line__inner { animation-delay: 0.7s; }
.reveal-line:nth-child(4) .reveal-line__inner { animation-delay: 0.85s; }
.reveal-line:nth-child(5) .reveal-line__inner { animation-delay: 1.0s; }
@keyframes line-up {
  to { transform: translateY(0); }
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fade-in 0.9s ease-out 1.3s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.hero__lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 520px;
}
.hero__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-style: italic;
  color: var(--paper);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 6px;
  justify-self: end;
  transition: color 0.3s, border-color 0.3s, gap 0.3s, transform 0.2s ease-out;
  will-change: transform;
}
.hero__cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 18px;
}
.hero__cta-arrow {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.9em;
}

@media (max-width: 820px) {
  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .hero__cta { justify-self: start; }
}

/* ============================================ STATS */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: -12px;
  width: 1px;
  background: var(--line-soft);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  color: var(--paper-2);
  letter-spacing: 0.02em;
}
@media (max-width: 820px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================ TICKER */
.ticker {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
}
.ticker__row {
  display: flex;
  gap: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--paper);
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  animation-play-state: var(--ticker-state, running);
  will-change: transform;
}
.ticker__sep { color: var(--accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================ CHAPTERS */
.chapter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  will-change: transform;
}
.chapter--light { color: var(--paper-2); }

/* ============================================ APPROACH */
.approach {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.approach__intro {
  max-width: 800px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.approach__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.approach__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.column {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.column:hover { transform: translateY(-4px); }
.column__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.column__num::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.column:hover .column__num::after { width: 100%; }
.column__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.column p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-2);
}
@media (max-width: 820px) {
  .approach__columns { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================ MANIFESTO */
.manifesto {
  background: var(--bg-2);
  padding: clamp(80px, 12vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* interactive fluid background */
.fluid {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.fluid__blob {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform-origin: center;
}

/* big decorative quotation mark */
.manifesto::before {
  content: "”";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(180px, 24vw, 320px);
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.manifesto__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 40px;
}
.manifesto__text em { font-style: italic; }
.manifesto__author {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.manifesto__author span:first-child { font-weight: 500; }
.manifesto__role {
  color: var(--paper-3);
  font-family: var(--serif);
  font-style: italic;
}

/* ============================================ WORK */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.work__head { margin-bottom: clamp(56px, 8vw, 88px); }
.work__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.work__title em { font-style: italic; color: var(--accent); }

.work__list {
  display: flex;
  flex-direction: column;
}
.entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.entry:hover { padding-left: 24px; }
.entry:hover::before { transform: scaleY(1); }
.entry__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.entry__body { max-width: 720px; }
.entry__client {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.entry:hover .entry__client { color: var(--accent); }
.entry__brief {
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-2);
  margin-bottom: 18px;
}
.entry__tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
}

@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================ CONTACT */
.contact {
  background: var(--paper);
  color: var(--bg);
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.contact .chapter { color: var(--bg); }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.contact__title em { font-style: italic; color: var(--accent); }
.contact__sub {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(13, 13, 12, 0.7);
  max-width: 640px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.contact__methods {
  border-top: 1px solid rgba(13, 13, 12, 0.15);
}
.contact__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(13, 13, 12, 0.15);
  transition: padding 0.3s;
}
.contact__row:hover { padding-left: 16px; }
.contact__row-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 13, 12, 0.55);
  font-weight: 600;
}
.contact__row-value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.contact__row:hover .contact__row-value { color: var(--accent); }
.contact__row-value span {
  font-style: italic;
  color: rgba(13, 13, 12, 0.4);
  transition: transform 0.3s, color 0.3s;
}
.contact__row:hover .contact__row-value span {
  transform: translateX(8px);
  color: var(--accent);
}
@media (max-width: 720px) {
  .contact__row { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
  .contact__row-value { font-size: 20px; }
}

/* ============================================ BOTTOM */
.bottom {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.bottom__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.bottom__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--paper-2);
}
.bottom__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 600;
  margin-bottom: 6px;
}
.bottom__col a { transition: color 0.2s; }
.bottom__col a:hover { color: var(--accent); }
.bottom__col--end {
  text-align: right;
  align-items: flex-end;
}
.bottom__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.bottom__copy {
  font-size: 12px;
  color: var(--paper-3);
}
@media (max-width: 720px) {
  .bottom__inner { grid-template-columns: 1fr; gap: 28px; }
  .bottom__col--end { text-align: left; align-items: flex-start; }
}

/* ============================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-line__inner { transform: translateY(0) !important; }
  .reveal-word { opacity: 1 !important; transform: none !important; }
}
