/* =========================================================
   Aurorabeat — main stylesheet
   Monochrome, type-led, hairline grid. No illustration.
   ========================================================= */

:root {
  --paper:  #FFFFFF;
  --tint:   #F7F7F5;
  --ink:    #0B0B0C;
  --grey:   #6E6E73;
  --faint:  #A1A1A6;

  --rule:      rgba(11, 11, 12, .14);
  --rule-soft: rgba(11, 11, 12, .07);
  --rule-inv:  rgba(255, 255, 255, .18);

  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --side: 280px;
  --gut:  clamp(28px, 5vw, 80px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 3000;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  font-size: .85rem;
}
.skip:focus { left: 18px; }

/* ---------- shared ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.lbl {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.lbl--inv { color: rgba(255, 255, 255, .48); }

/* Section headings — the left-hand column of the block grid */
.sec {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.032em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.sec--inv { color: var(--paper); }

.link {
  display: inline-block;
  font-size: .95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: border-color .2s var(--ease);
  white-space: nowrap;
}
.link:hover { border-color: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav--line { border-bottom-color: var(--rule-soft); }

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.mark__ico { display: flex; }

.nav__links {
  display: flex;
  gap: 30px;
  font-size: .9rem;
  color: var(--grey);
}
.nav__links a { position: relative; transition: color .2s var(--ease); }
.nav__links a:hover, .nav__links a.on { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a.on::after { transform: scaleX(1); }

.menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  z-index: 1200;
}
.menu span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.menu.on span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu.on span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 999;
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.panel.on { opacity: 1; visibility: visible; }
.panel__links {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px var(--gut) 0;
}
.panel__links a {
  padding: 22px 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--rule-soft);
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(80px, 14vw, 190px) 0 clamp(56px, 8vw, 96px); }

.lede {
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
  max-width: 19ch;
}
.u {
  border-bottom: 3px solid var(--ink);
  padding-bottom: .02em;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: clamp(44px, 7vw, 90px);
  padding-top: 26px;
  border-top: 1px solid var(--rule-soft);
}
.hero__note {
  max-width: 46ch;
  color: var(--grey);
  font-size: .98rem;
  margin: 0;
}

/* =========================================================
   META STRIP
   ========================================================= */
.meta {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 22px 0;
}
.meta__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.meta__in > * { min-width: 0; }
.meta__cell span:not(.lbl) {
  display: block;
  font-size: .92rem;
  margin-top: 6px;
}

/* =========================================================
   BLOCK GRID
   ========================================================= */
.block { padding: clamp(64px, 9vw, 130px) 0; }
.block--tint { background: var(--tint); }

.block__in {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: var(--gut);
}
.block__in > * { min-width: 0; }
.block__side .sec { position: sticky; top: calc(var(--nav-h) + 30px); }

/* ---------- services list ---------- */
.item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--rule-soft);
}
.item:first-child { border-top: 0; padding-top: 0; }
.item > * { min-width: 0; }

.item__no {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--faint);
  padding-top: .35em;
}
.item__name {
  font-size: clamp(1.65rem, 2.9vw, 2.35rem);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.item__body p { color: var(--grey); max-width: 56ch; font-size: .98rem; }
.item__tags {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--faint);
  margin-top: 16px;
}

/* ---------- work index ---------- */
.row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
}
.row > * { min-width: 0; }
.row:last-child { border-bottom: 1px solid var(--rule-soft); }

.row--head {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.row__yr { font-family: var(--mono); font-size: .84rem; color: var(--faint); }
.row__cl { font-size: 1.24rem; font-weight: 500; letter-spacing: -.02em; }
.row__dc { font-size: .92rem; color: var(--grey); }

/* ---------- approach notes ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gut);
}
.notes > * { min-width: 0; }
.note__no {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--faint);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.note p { color: var(--grey); font-size: .96rem; margin: 0; }

.clients {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--rule-soft);
}
.clients__list {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--grey);
  max-width: 68ch;
}

/* =========================================================
   CONTACT
   ========================================================= */
.talk {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 10vw, 140px) 0;
}
.talk__in {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: var(--gut);
}
.talk__in > * { min-width: 0; }

.talk__lede {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.42;
  max-width: 40ch;
  margin: 0 0 clamp(40px, 6vw, 70px);
  color: rgba(255, 255, 255, .82);
}

.huge {
  display: inline-block;
  font-size: clamp(1.4rem, 4.4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-inv);
  transition: border-color .2s var(--ease);
  overflow-wrap: anywhere;
}
.huge:hover { border-bottom-color: var(--paper); }

/* ---------- form ---------- */
.form {
  margin-top: clamp(52px, 7vw, 84px);
  padding-top: clamp(36px, 5vw, 54px);
  border-top: 1px solid var(--rule-inv);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
.fields > * { min-width: 0; }

.f { display: block; }
.f__lbl {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  margin-bottom: 10px;
}
.f input,
.f textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-inv);
  border-radius: 0;
  padding: 8px 0;
  width: 100%;
  transition: border-color .2s var(--ease);
}
.f textarea { resize: vertical; min-height: 74px; }
.f input::placeholder,
.f textarea::placeholder { color: rgba(255, 255, 255, .3); }
.f input:focus,
.f textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.f.bad input,
.f.bad textarea { border-bottom-color: #FF6B5A; }

.form__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  padding: 13px 26px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: transparent; color: var(--paper); }

.form__msg {
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  margin: 0;
}
.form__msg.ok  { color: var(--paper); }
.form__msg.err { color: #FF9A8E; }

.talk__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 30px;
  margin-top: clamp(52px, 7vw, 84px);
  padding-top: 30px;
  border-top: 1px solid var(--rule-inv);
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
}
.talk__meta span:not(.lbl) { display: block; margin-top: 8px; line-height: 1.7; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  padding: 26px 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--faint);
}
.foot__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot__right { display: flex; gap: 20px; }
.foot a { transition: color .2s var(--ease); }
.foot a:hover { color: var(--ink); }

/* =========================================================
   LEGAL PAGE
   ========================================================= */
.legal { padding: clamp(70px, 10vw, 130px) 0 0; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.legal__when { font-family: var(--mono); font-size: .74rem; color: var(--faint); }

.legal__body { max-width: 68ch; padding: clamp(48px, 7vw, 86px) 0 clamp(70px, 9vw, 120px); }
.legal__body h2 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 44px 0 12px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--grey); font-size: .98rem; }
.legal__body ul {
  list-style: none;
  margin: 0 0 1em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal__body ul li {
  padding-left: 20px;
  position: relative;
}
.legal__body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--faint);
}
.legal__body a { border-bottom: 1px solid var(--rule); }
.legal__body a:hover { border-color: var(--ink); }

/* =========================================================
   REVEAL
   ========================================================= */
.up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.up.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .block__in, .talk__in { grid-template-columns: 1fr; gap: 34px; }
  .block__side .sec { position: static; }
  .notes { grid-template-columns: 1fr; gap: 34px; }
  .note__no { padding-bottom: 10px; margin-bottom: 12px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .menu { display: flex; }
  .meta__in { grid-template-columns: 1fr 1fr; gap: 22px; }
  .lede { max-width: none; }
}

@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; gap: 10px; }
  .item__no { padding-top: 0; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .row--head { display: none; }
  .row__yr { order: -1; }
  .fields { grid-template-columns: 1fr; gap: 22px; }
  .talk__meta { grid-template-columns: 1fr; gap: 22px; }
  .foot__mid { display: none; }
  .form__end { align-items: flex-start; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
