:root {
  --charcoal: #0b0c0e;
  --surface: #111316;
  --border: #1f2228;
  --muted: #7e838e;
  --light: #f5f5f3;
  --offwhite: #eaeae8;
  --blue: #0058ff;
  --blue-bright: #3b82f6;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--offwhite);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; }
main { flex: 1; }

:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.section {
  border-top: 1px solid var(--border);
  padding-block: 4rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.arrow {
  display: inline-block;
  color: var(--blue);
  font-family: var(--mono);
  transition: transform 0.3s var(--ease);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 12 14 / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 1.75rem; height: 1.75rem; object-fit: contain; transition: transform 0.3s var(--ease); }
.brand:hover img { transform: scale(1.05) rotate(1deg); }
.brand span { font-weight: 700; letter-spacing: -0.025em; color: var(--light); font-size: 1rem; }

.nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.025em; }
.nav a { position: relative; padding-block: 0.25rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--light); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.25rem; font-weight: 600; color: var(--light) !important; }
.nav-cta:hover { color: var(--blue) !important; }
.nav-cta:hover .arrow, .link-cta:hover .arrow, .btn:hover .arrow { transform: translate(4px, -4px); }
.nav-cta .arrow { font-size: 0.75rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.625rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--light);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { content: ""; position: absolute; top: 0; left: 0; transform: translateY(-4px); }
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transform: translateY(4px);
  transition: transform 0.3s var(--ease);
}
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--charcoal);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-open .nav { display: flex; animation: reveal 0.4s var(--ease) both; }
  .nav a { padding-block: 1rem; border-top: 1px solid var(--border); }
  .nav a:first-child { border-top: 0; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: space-between; }
}

/* Hero */
.hero { padding-block: 3rem 4rem; }
.hero-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.beacon {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--blue);
  animation: pulse 3s ease-in-out infinite;
}

.hero h1 {
  max-width: 64rem;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--light);
}
.hero h1 br { display: none; }

.hero-grid {
  display: grid;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-lead { font-size: 1.125rem; line-height: 1.625; color: var(--muted); }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.hero-side .meta { text-transform: uppercase; letter-spacing: 0.025em; font-size: 0.75rem; color: rgb(126 131 142 / 0.7); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  transition: color 0.2s, border-color 0.2s;
}
.link-cta:hover { color: var(--blue); border-color: var(--blue); }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; color: var(--light); }

/* Services */
.rows { border-bottom: 1px solid var(--border); }
.row {
  display: grid;
  gap: 1rem;
  align-items: baseline;
  margin-inline: -1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.row:hover { background: rgb(255 255 255 / 0.02); }
.row-index { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); transition: color 0.3s; }
.row:hover .row-index { color: var(--blue); }
.row h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--light);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.row:hover h3 { color: #fff; transform: translateX(8px); }
.row-body { display: flex; justify-content: space-between; gap: 1rem; }
.row-body p { font-size: 0.875rem; line-height: 1.625; color: var(--muted); transition: color 0.3s; }
.row:hover .row-body p { color: rgb(234 234 232 / 0.9); }
.row-body .arrow { display: none; flex-shrink: 0; padding-top: 2px; font-size: 0.875rem; opacity: 0; }
.row:hover .row-body .arrow { opacity: 1; transform: translateX(6px); }

/* Studio */
.studio-grid { display: grid; gap: 2.5rem; }
.studio-title { margin-block: 0.75rem 1rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; color: var(--light); }
.rule { width: 2rem; height: 2px; background: var(--blue); transition: width 0.5s var(--ease); }
.rule:hover { width: 4rem; }
.studio-copy { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1rem; line-height: 1.625; color: var(--muted); }
.studio-copy .lead { font-size: 1.125rem; color: var(--offwhite); }

.pillars {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.pillar { margin: -0.75rem; padding: 0.75rem; border-radius: 2px; transition: background 0.2s, color 0.2s; }
.pillar:hover { background: rgb(17 19 22 / 0.4); color: var(--offwhite); }
.pillar strong { display: block; margin-bottom: 0.25rem; font-weight: 700; color: var(--light); transition: color 0.2s; }
.pillar:hover strong { color: var(--blue); }

/* Work */
.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: rgb(17 19 22 / 0.25);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.notice:hover { border-color: rgb(0 88 255 / 0.5); background: rgb(17 19 22 / 0.4); }
.notice-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--blue); }
.notice-label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.notice h3 { margin-bottom: 0.5rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.025em; color: var(--light); transition: color 0.3s; }
.notice:hover h3 { color: #fff; }
.notice p:last-child { max-width: 36rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--light);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn .arrow { color: inherit; }

/* Contact */
.contact { padding-block: 5rem; }
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.contact h2 {
  margin-block: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--light);
}
.contact .sub { margin-bottom: 2.5rem; font-size: 1.875rem; font-weight: 300; letter-spacing: -0.025em; color: var(--muted); }
.mail-wrap { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.mail {
  position: relative;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--blue);
  transition: color 0.3s var(--ease);
}
.mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: height 0.3s var(--ease);
}
.mail:hover { color: var(--blue-bright); }
.mail:hover::after { height: 2px; }
.reply { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

.facts { display: flex; flex-direction: column; gap: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.facts div { padding-top: 1rem; border-top: 1px solid var(--border); }
.facts dt { margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--light); }
.facts dd { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 2rem; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.foot-brand img { width: 1.25rem; height: 1.25rem; object-fit: contain; opacity: 0.9; }
.foot-brand strong { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.025em; color: var(--light); }
.foot-brand .sep { color: var(--border); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-links a { transition: color 0.2s; }
.foot-links a:hover { color: var(--light); }
.foot-links a.mail-link:hover { color: var(--blue); }

/* Entrance animation */
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgb(0 88 255 / 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 8px rgb(0 88 255 / 0.6); }
}
.reveal-1 { animation: reveal 0.85s var(--ease) 0.1s both; }
.reveal-2 { animation: reveal 0.95s var(--ease) 0.22s both; }
.reveal-3 { animation: reveal 0.95s var(--ease) 0.36s both; }

/* Scroll reveal (only when JS is running) */
.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease) var(--rv-delay, 0ms), transform 0.8s var(--ease) var(--rv-delay, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }
/* hover transitions on revealed rows must not inherit the reveal delay */
.js .row.rv.in { transition: background 0.3s var(--ease); }

/* Header, buttons, and menu polish */
.site-header { transition: background 0.3s, border-color 0.3s; }
.site-header.scrolled { background: rgb(11 12 14 / 0.96); border-bottom-color: #2a2d35; }
.btn:active, .link-cta:active { transform: translateY(1px); }
.beacon, .notice-label::before { will-change: opacity; }

@media (max-width: 767px) {
  .nav-open .nav a { animation: reveal 0.5s var(--ease) both; }
  .nav-open .nav a:nth-child(1) { animation-delay: 0.04s; }
  .nav-open .nav a:nth-child(2) { animation-delay: 0.09s; }
  .nav-open .nav a:nth-child(3) { animation-delay: 0.14s; }
  .nav-open .nav a:nth-child(4) { animation-delay: 0.19s; }
}

/* sm 640 */
@media (min-width: 640px) {
  .nav { gap: 2rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero h1 br { display: inline; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .contact h2 { font-size: 3.75rem; }
  .contact .sub { font-size: 3rem; }
  .mail-wrap { flex-direction: row; align-items: baseline; gap: 1.5rem; }
  .mail { font-size: 1.5rem; }
}

/* md 768 */
@media (min-width: 768px) {
  .wrap { padding-inline: 4rem; }
  .section { padding-block: 6rem; }
  .nav { font-size: 0.875rem; }
  .brand span { font-size: 1.125rem; }
  .hero { padding-block: 7rem 6rem; }
  .hero-label { margin-bottom: 2.5rem; }
  .hero-label .meta { font-size: 0.75rem; }
  .hero h1 { margin-bottom: 3rem; font-size: 5.5rem; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .hero-lead { grid-column: span 7; font-size: 1.5rem; }
  .hero-side { grid-column: span 5; align-items: flex-end; align-self: stretch; }
  .hero-side .meta { text-align: right; }
  .link-cta { font-size: 1.125rem; }

  .section-head { flex-direction: row; justify-content: space-between; align-items: baseline; margin-bottom: 3.5rem; }
  .section-head h2 { font-size: 1.5rem; }
  .meta { font-size: 0.75rem; }

  .row { grid-template-columns: repeat(12, 1fr); gap: 2rem; padding-block: 2.5rem; }
  .row-index { grid-column: span 2; font-size: 0.875rem; }
  .row h3 { grid-column: span 4; font-size: 1.5rem; }
  .row-body { grid-column: span 6; }
  .row-body p { font-size: 1rem; }
  .row-body .arrow { display: inline-block; }

  .studio-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
  .studio-side { grid-column: span 4; }
  .studio-copy { grid-column: span 8; font-size: 1.125rem; }
  .studio-title { font-size: 1.875rem; }
  .studio-copy .lead { font-size: 1.25rem; }

  .notice { flex-direction: row; justify-content: space-between; align-items: center; padding: 3.5rem; }

  .contact { padding-block: 8rem; }
  .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .contact-main { grid-column: span 8; }
  .facts { grid-column: span 4; padding-top: 3rem; }
  .contact .sub { font-size: 3.75rem; }
  .contact h2 { font-size: 4.5rem; }
  .mail { font-size: 1.875rem; }

  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 6.5rem; }
  .contact h2 { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-1, .reveal-2, .reveal-3, .beacon { animation: none !important; opacity: 1 !important; transform: none !important; }
  .js .rv { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
