/* Self-hosted variable fonts, latin + latin-ext subsets. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/font/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/font/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/font/inter-tight-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/font/inter-tight-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/font/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/font/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #08080a;
  --surface: #0f0f13;
  --surface-2: #15151a;
  --txt: #edeceb;
  --muted: #8f8f99;
  --faint: #5f5f6a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #ff6a3d;
  --max: 1200px;
  --hdr: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0a0a0a; }

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Reveal */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Header */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--hdr);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hdr.is-stuck {
  background: rgba(8, 8, 10, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.hdr-inner {
  height: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.nav { display: none; gap: 2rem; }

.nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover { color: var(--txt); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.on { color: var(--txt); }
.nav a.on::after { transform: scaleX(1); background: var(--accent); }

.burger {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  cursor: pointer;
}

.ic-x { display: none; }
.burger.is-open .ic-menu { display: none; }
.burger.is-open .ic-x { display: block; }

.drawer {
  display: none;
  position: fixed;
  top: var(--hdr);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 2rem;
}

.drawer.is-open { display: block; }

.drawer a {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.drawer a.on,
.drawer a:hover { color: var(--txt); }

/* Type scale */

.label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  color: var(--faint);
  margin-bottom: 1.4rem;
}

.label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.sub {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 34rem;
}

em.hl {
  font-style: italic;
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--hdr) + 4rem) 0 4rem;
  overflow-x: clip;
}

.glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}

.glow-a {
  width: 46rem;
  height: 46rem;
  top: -18rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.3), transparent 65%);
}

.glow-b {
  width: 34rem;
  height: 34rem;
  bottom: -14rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(120, 110, 255, 0.18), transparent 65%);
}

.hero-body { max-width: 58rem; }
.hero .h1 { margin-bottom: 1.6rem; }
.hero .sub { margin-bottom: 2.4rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn-solid { background: var(--txt); color: #0a0a0a; }
.btn-solid:hover { background: var(--accent); color: #0a0a0a; transform: translateY(-2px); }

.btn-ghost { border-color: var(--line-2); color: var(--txt); }
.btn-ghost:hover { border-color: var(--txt); transform: translateY(-2px); }

.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Strip */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}

.strip-cell {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.strip-cell:last-child { border-bottom: 0; }

.strip-cell b {
  display: block;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.strip-cell span { color: var(--muted); font-size: 0.9rem; }

/* Sections */

.sec { padding: 7rem 0; }
.sec-head { max-width: 44rem; margin-bottom: 3.5rem; }
.sec-head .h2 { margin-bottom: 1rem; }

/* Work rows */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
}

.row:hover { padding-left: 1.1rem; padding-right: 1.1rem; background: var(--surface); }
.row-num { color: var(--faint); }
.row-mid { min-width: 0; }
.row-mid .h3 { display: block; transition: color 0.3s; }
.row:hover .row-mid .h3 { color: var(--accent); }
.row-sub { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.row-tag { color: var(--faint); display: none; }

.row-go {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}

.row:hover .row-go {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  transform: rotate(-45deg);
}

/* Service blocks */

.svc {
  display: grid;
  gap: 1rem;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--hdr) + 1.5rem);
}

.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-num { color: var(--faint); }
.svc h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.9rem; }
.svc p { color: var(--muted); max-width: 42rem; }
.svc p + p { margin-top: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface);
}

/* Cards */

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card {
  background: var(--bg);
  padding: 2.2rem 1.9rem;
  transition: background 0.4s var(--ease);
}

.card:hover { background: var(--surface); }
.card .mono { color: var(--accent); display: block; margin-bottom: 1.6rem; }
.card .h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Two column */

.duo { display: grid; gap: 2.5rem; }
.duo p { color: var(--muted); }
.duo p + p { margin-top: 1rem; }

.side {
  border: 1px solid var(--line);
  padding: 1.8rem;
  background: var(--surface);
}

.side .h3 { margin: 0.4rem 0 0.6rem; }
.side p { color: var(--muted); font-size: 0.96rem; }

/* CTA band */

.band {
  border-top: 1px solid var(--line);
  padding: 7rem 0;
  text-align: center;
}

.band .h2 { margin: 0 auto 1.2rem; max-width: 18ch; }
.band .sub { margin: 0 auto 2.2rem; }

.mailto {
  display: inline-block;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}

.mailto:hover { color: var(--accent); border-color: var(--accent); }

/* Page hero */

.page-top { padding: calc(var(--hdr) + 5rem) 0 3rem; }
.page-top .h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 1.1rem; }

/* Form */

.form { max-width: 38rem; display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { color: var(--faint); }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 8rem; resize: vertical; }
.note { color: var(--muted); font-size: 0.95rem; }
.note a { color: var(--accent); }

.status { display: none; max-width: 38rem; }
.status.is-on { display: block; }
.status .h2 { margin-bottom: 0.7rem; }
.status p { color: var(--muted); margin-bottom: 1.6rem; }

/* Legal */

.legal { max-width: 44rem; padding-bottom: 5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--accent); }
.legal strong { color: var(--txt); font-weight: 500; }
.stamp { color: var(--faint); }

/* 404 */

.nf {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--hdr) + 3rem) 0 4rem;
}

.nf .h1 { margin: 0 0 1.2rem; }
.nf .sub { margin-bottom: 2.2rem; }

/* Footer */

.foot { border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; }
.foot-top { display: grid; gap: 3.5rem; padding: 2rem 0 5.5rem; }
.foot-brand p { color: var(--muted); max-width: 20rem; margin-top: 1rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot-cols h4 { color: var(--faint); font-weight: 400; margin-bottom: 1.1rem; }
.foot-cols ul { list-style: none; }
.foot-cols li + li { margin-top: 0.6rem; }
.foot-cols a { color: var(--muted); font-size: 0.95rem; transition: color 0.25s; }
.foot-cols a:hover { color: var(--txt); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--faint);
}

@media (min-width: 700px) {
  .hero { align-items: center; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip-cell { border-bottom: 0; padding: 2.4rem 0; }
  .row-tag { display: block; }
  .row { grid-template-columns: auto 1fr auto auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: 1.25fr 0.75fr; gap: 4rem; align-items: start; }
  .svc { grid-template-columns: 10rem 1fr; gap: 1rem 3rem; }
  .foot-top { grid-template-columns: 1.1fr 1.4fr; gap: 4rem; padding: 3rem 0 6.5rem; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 700px) and (max-height: 640px) {
  .hero { align-items: flex-start; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger, .drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
