:root {
  --bg: #0d0e10;
  --surface: #131518;
  --surface-2: #191b1f;
  --line: #2a2d32;
  --text: #f2f2f2;
  --muted: #a4a6aa;
  --red: #ff343b;
  --red-dark: #9d151b;
  --header-height: 86px;
  --page: min(1180px, calc(100vw - 48px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--red);
  color: white;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.is-scrolled {
  height: 70px;
  background: rgba(13, 14, 16, .88);
  border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.05;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .55em;
}
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: #d7d7d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.site-nav .nav-external { color: var(--red); }
.menu-button { display: none; }

.hero {
  min-height: 78svh;
  position: relative;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 70px) max(28px, calc((100vw - 1180px) / 2)) 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid, .mods-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}
.hero-glow {
  position: absolute;
  width: 62vw;
  height: 62vw;
  right: -30vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,52,59,.20), rgba(255,52,59,0) 66%);
}
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 2px; background: var(--red); }
.hero h1, .section-heading h2, .studio-copy h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.3rem);
  line-height: .91;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy {
  max-width: 650px;
  margin: 34px 0 0;
  color: #c0c1c4;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }
.button {
  min-width: 176px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); border-color: var(--red); }
.button-primary:hover { background: #ff4a50; }
.button-ghost:hover { border-color: var(--red); }
.hero-mark {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  width: clamp(230px, 29vw, 450px);
  opacity: .055;
  transform: rotate(-12deg);
}
.scroll-cue {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #74767a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scroll-cue span { width: 42px; height: 1px; background: #57595e; }

.section { width: var(--page); margin: 0 auto; padding: 140px 0; }
.projects-section { padding-top: 90px; }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; align-items: end; margin-bottom: 70px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2, .studio-copy h2, .contact-section h2 { font-size: clamp(2.5rem, 5.4vw, 5.3rem); }
.project {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  min-height: 610px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 48px;
}
.project-media, .mods-visual { position: relative; min-height: 520px; overflow: hidden; }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, rgba(13,14,16,.55)), linear-gradient(0deg, rgba(13,14,16,.35), transparent 40%);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-media img { transform: scale(1.025); }
.project-number {
  position: absolute;
  left: 25px;
  bottom: 17px;
  z-index: 2;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.status {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(13,14,16,.78);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(9px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.project-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 70px); }
.project-kicker { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-content h3 { margin: 8px 0 22px; font-size: clamp(2.3rem, 4vw, 4.3rem); line-height: .95; letter-spacing: -.05em; }
.project-content > p:not(.project-kicker) { color: var(--muted); }
.project-content .project-lead { color: var(--text) !important; font-size: 1.08rem; line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 31px; padding: 0; list-style: none; }
.tag-list li { padding: 7px 10px; border: 1px solid var(--line); color: #b7b9bc; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.text-link { width: fit-content; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--red); margin-left: 5px; transition: margin-left .2s ease; }
.text-link:hover span { margin-left: 10px; }
.text-link-muted { color: #77797d; }

.project-mods { grid-template-columns: .85fr 1.15fr; }
.mods-visual {
  background: linear-gradient(145deg, #1b1d20, #0d0e10);
  display: grid;
  place-items: center;
}
.mods-grid { mask-image: radial-gradient(circle, black, transparent 76%); }
.mods-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,52,59,.15), transparent 50%);
}
.mods-radar { position: absolute; width: min(68%, 390px); aspect-ratio: 1; border: 1px solid #414349; border-radius: 50%; }
.mods-radar::before, .mods-radar::after { content: ""; position: absolute; background: #37393e; }
.mods-radar::before { width: 100%; height: 1px; top: 50%; }
.mods-radar::after { height: 100%; width: 1px; left: 50%; }
.mods-radar span { position: absolute; inset: 22%; border: 1px solid #414349; border-radius: 50%; }
.mods-radar i {
  position: absolute;
  left: 50%; top: 50%; width: 48%; height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), transparent);
  box-shadow: 0 0 8px var(--red);
  animation: radar 7s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }
.mods-visual > p { position: relative; z-index: 2; margin: 0; text-align: center; font-size: clamp(1.8rem, 4vw, 3.8rem); font-weight: 300; line-height: .95; letter-spacing: .08em; }
.mods-visual > p strong { color: var(--red); font-weight: 900; letter-spacing: .18em; }

.studio-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(50px, 9vw, 130px); border-top: 1px solid var(--line); }
.studio-copy p:last-child { color: var(--muted); max-width: 520px; font-size: 1.12rem; }
.principle { display: grid; grid-template-columns: 54px 1fr; column-gap: 17px; padding: 30px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle > span { grid-row: 1 / 3; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.principle h3 { margin: 0 0 9px; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--muted); }

.contact-section { position: relative; min-height: 610px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.contact-section .eyebrow { justify-content: center; }
.contact-section > p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; }
.contact-link { position: relative; margin-top: 23px; color: var(--text); text-decoration: none; font-size: clamp(1.1rem, 2.2vw, 1.8rem); font-weight: 700; border-bottom: 2px solid var(--red); }
.contact-link span { color: var(--red); }
.contact-orbit { position: absolute; width: 520px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
.contact-orbit::before { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; }
.contact-orbit span { position: absolute; width: 8px; height: 8px; right: 10%; top: 25%; border-radius: 50%; background: var(--red); box-shadow: 0 0 24px var(--red); }

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #76787c;
  font-size: 11px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.site-footer > p { margin: 0; text-align: right; }
.copyright { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #202226; text-align: left !important; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --page: min(100% - 34px, 720px); }
  .site-header { padding-inline: 18px; }
  .menu-button {
    display: grid;
    gap: 6px;
    width: 46px;
    height: 46px;
    place-content: center;
    background: transparent;
    border: 1px solid var(--line);
  }
  .menu-button span:not(.sr-only) { width: 20px; height: 2px; background: var(--text); transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 24px;
    background: rgba(13,14,16,.97);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 17px 5px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero-mark { right: -90px; width: 360px; }
  .section { padding: 100px 0; }
  .projects-section { padding-top: 72px; }
  .section-heading, .studio-section { grid-template-columns: 1fr; }
  .section-heading { gap: 25px; }
  .project, .project-mods { grid-template-columns: 1fr; }
  .project-media, .mods-visual { min-height: 420px; }
  .project-mods .mods-visual { order: 0; }
  .studio-section { gap: 55px; }
}

@media (max-width: 560px) {
  :root { --header-height: 74px; }
  .brand span { font-size: 10px; }
  .brand img { width: 39px; height: 39px; }
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: clamp(2.65rem, 11.5vw, 3.6rem); overflow-wrap: anywhere; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .project-media, .mods-visual { min-height: 310px; }
  .project-content { padding: 32px 24px 40px; }
  .contact-section { min-height: 520px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { text-align: left; }
  .footer-links { flex-wrap: wrap; }
}

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

/* Wake Protocol project page */
.wp-hero {
  min-height: 92svh;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + 90px) max(28px, calc((100vw - 1180px) / 2)) 105px;
  border-bottom: 1px solid var(--line);
}
.wp-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.wp-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,10,.96) 0%, rgba(7,8,10,.72) 48%, rgba(7,8,10,.18) 82%), linear-gradient(0deg, rgba(7,8,10,.96), transparent 58%); }
.wp-hero-content { position: relative; z-index: 2; width: min(760px, 100%); min-width: 0; }
.wp-hero h1 { margin: 0; font-size: clamp(4.4rem, 10vw, 9rem); line-height: .78; letter-spacing: -.075em; text-transform: uppercase; }
.wp-hero h1 em { color: var(--red); font-style: normal; }
.wp-hero-content > p:not(.eyebrow) { max-width: 640px; margin: 34px 0 0; color: #d1d2d4; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.wp-hero-meta { position: absolute; z-index: 2; right: max(28px, calc((100vw - 1180px) / 2)); bottom: 32px; display: flex; gap: 9px; flex-wrap: wrap; justify-content: end; }
.wp-hero-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.19); background: rgba(8,9,11,.68); color: #c9cacc; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }

.wp-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 9vw, 125px); }
.wp-lead { margin: 0; font-size: clamp(1.55rem, 3vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; }
.wp-copy { color: var(--muted); font-size: 1.05rem; }
.wp-copy p:first-child { margin-top: 0; color: var(--text); }
.wp-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 95px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wp-pillar { padding: 34px 32px 38px; border-right: 1px solid var(--line); }
.wp-pillar:last-child { border-right: 0; }
.wp-pillar span, .code-step-copy span { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.wp-pillar h3 { margin: 18px 0 10px; font-size: 1.25rem; }
.wp-pillar p { margin: 0; color: var(--muted); font-size: .94rem; }

.wp-screens { border-top: 1px solid var(--line); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.screenshot-slot { margin: 0; }
.screenshot-slot-wide { grid-column: span 2; }
.screenshot-placeholder { min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 35px; text-align: center; border: 1px solid #35383e; background: radial-gradient(circle at 50% 35%, rgba(255,52,59,.1), transparent 42%), linear-gradient(135deg, #16181c, #0e0f11); }
.screenshot-slot-wide .screenshot-placeholder { min-height: 520px; }
.screenshot-placeholder::before { content: "+"; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 25px; border: 1px solid var(--red); color: var(--red); font-size: 24px; }
.screenshot-placeholder span { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.screenshot-placeholder strong { margin-top: 9px; font-size: 1.1rem; }
.screenshot-placeholder small { margin-top: 7px; color: #696b70; font-family: "Consolas", monospace; }
.screenshot-slot figcaption { padding: 10px 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.screenshot-slot img { display: block; width: 100%; min-height: 360px; object-fit: cover; border: 1px solid #35383e; transition: transform .7s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
.screenshot-slot-wide img { min-height: 520px; }
.screenshot-slot { overflow: hidden; }
.screenshot-slot:hover img { transform: scale(1.015); border-color: #555960; }

.wp-technology { border-top: 1px solid var(--line); }
.wp-definition { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.wp-definition > div { display: flex; align-items: center; gap: 13px; padding: 25px; border-right: 1px solid var(--line); }
.wp-definition > div:nth-child(4) { border-right: 0; }
.wp-definition span { color: var(--red); font-size: 2rem; font-weight: 900; }
.wp-definition strong { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.wp-definition p { grid-column: 1 / -1; margin: 0; padding: 26px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.tech-stack { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: stretch; margin-top: 55px; }
.tech-stack article { min-width: 0; padding: 24px 20px; border: 1px solid var(--line); background: #111316; }
.tech-stack b { color: var(--red); font-size: 10px; letter-spacing: .14em; }
.tech-stack h3 { margin: 13px 0 10px; font-size: 1rem; }
.tech-stack p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.tech-stack > i { position: relative; align-self: center; height: 1px; background: var(--red); }
.tech-stack > i::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 6px solid var(--red); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.technical-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 55px; background: var(--line); border: 1px solid var(--line); }
.technical-notes article { padding: 34px; background: var(--surface); }
.technical-notes h3 { margin: 0 0 11px; }
.technical-notes p { margin: 0; color: var(--muted); }

.request-section { border-top: 1px solid var(--line); }
.request-intro { max-width: 720px; margin: -25px 0 62px auto; color: var(--muted); font-size: 1.08rem; }
.code-step { display: grid; grid-template-columns: .58fr 1.42fr; border: 1px solid var(--line); margin-bottom: 26px; background: var(--surface); }
.code-step-copy { padding: 36px; border-right: 1px solid var(--line); }
.code-step-copy h3 { margin: 15px 0 10px; font-size: 1.35rem; }
.code-step-copy p { margin: 0; color: var(--muted); font-size: .92rem; }
.code-step pre { margin: 0; padding: 34px; overflow: auto; background: #090a0c; color: #d6e6d7; font: .82rem/1.6 "Consolas", "SFMono-Regular", monospace; tab-size: 2; }
.code-step code { font: inherit; }
.authority-statement { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border: 1px solid var(--red); }
.authority-statement span { padding: 26px; text-align: center; font-size: 1.08rem; font-weight: 800; text-transform: uppercase; border-right: 1px solid var(--red); }
.authority-statement span:last-child { border-right: 0; color: var(--red); }
.wp-closing { text-align: center; border-top: 1px solid var(--line); }
.wp-closing .eyebrow { justify-content: center; }
.wp-closing h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.wp-closing > p:not(.eyebrow) { max-width: 650px; margin: 28px auto 35px; color: var(--muted); }
.wp-closing .button { display: inline-block; }

@media (max-width: 1050px) {
  .tech-stack { grid-template-columns: 1fr; gap: 0; }
  .tech-stack > i { width: 1px; height: 28px; justify-self: center; }
  .tech-stack > i::after { right: -3px; top: auto; bottom: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 6px solid var(--red); border-bottom: 0; }
}
@media (max-width: 760px) {
  .wp-hero { min-height: 830px; padding-inline: 18px; padding-bottom: 150px; }
  .wp-hero-shade { background: linear-gradient(0deg, rgba(7,8,10,.98) 18%, rgba(7,8,10,.45) 100%); }
  .wp-hero h1 { font-size: clamp(3.25rem, 15vw, 4.4rem); letter-spacing: -.065em; }
  .wp-hero-meta { left: 18px; right: 18px; justify-content: start; }
  .wp-intro-grid, .wp-pillars, .screenshot-grid, .technical-notes, .code-step, .authority-statement { grid-template-columns: 1fr; }
  .wp-pillars { margin-top: 60px; }
  .wp-pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .wp-pillar:last-child { border-bottom: 0; }
  .screenshot-slot-wide { grid-column: auto; }
  .screenshot-placeholder, .screenshot-slot-wide .screenshot-placeholder, .screenshot-slot img, .screenshot-slot-wide img { min-height: 310px; }
  .wp-definition { grid-template-columns: repeat(2, 1fr); }
  .wp-definition > div:nth-child(2) { border-right: 0; }
  .wp-definition > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .code-step-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .authority-statement span { border-right: 0; border-bottom: 1px solid var(--red); }
  .authority-statement span:last-child { border-bottom: 0; }
}

.contact-socials {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}
.contact-socials a {
  color: #9b9da2;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-socials a:hover { color: var(--red); }

/* Social links page */
.socials-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,52,59,.15), transparent 34rem),
    var(--bg);
}
.socials-shell {
  width: min(560px, calc(100% - 34px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) 0 46px;
  flex: 1;
}
.socials-identity { text-align: center; }
.socials-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.09);
  background: #090a0c;
}
.socials-identity h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.socials-handle { margin: 10px 0 0; color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.socials-intro { margin: 15px auto 34px; max-width: 430px; color: var(--muted); font-size: .94rem; }
.social-links { display: grid; gap: 12px; }
.social-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: rgba(19,21,24,.78);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-card:hover { transform: translateY(-2px); border-color: rgba(255,52,59,.5); background: #17191d; }
.social-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.social-card strong, .social-card small { display: block; }
.social-card strong { font-size: .98rem; }
.social-card small { margin-top: 2px; color: #85888e; font-size: .77rem; }
.social-card > b { color: var(--red); font-size: 1.05rem; }
.social-card-primary { border-color: rgba(255,52,59,.32); background: linear-gradient(120deg, rgba(255,52,59,.10), rgba(19,21,24,.8)); }
.socials-note { margin: 28px 0 0; color: #696c72; text-align: center; font-size: .72rem; }
.socials-footer { width: min(560px, calc(100% - 34px)); }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 62px); padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .projects-section { padding-top: 58px; }
  .contact-socials { flex-direction: column; gap: 10px; }
  .socials-shell { padding-top: calc(var(--header-height) + 35px); }
}


/* Legal + contact pages */
.legal-header { position: static; }
.legal-nav { display: flex; }
.legal-page {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  min-height: 72vh;
  padding: clamp(72px, 9vw, 120px) 0 90px;
}
.legal-page > h1 {
  margin: 14px 0 28px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.legal-lead { max-width: 660px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.legal-block { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-block h2 { margin: 0 0 16px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.legal-block p { color: #c3c4c7; line-height: 1.75; }
.legal-block a, .form-privacy a, .contact-direct a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 4px; }
.legal-source { color: var(--muted); font-size: .85rem; }
.legal-footer { margin-top: 0; }

.contact-direct {
  margin: 38px 0 30px;
  padding: 18px 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-direct span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-direct a { font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 700; }
.contact-form { display: grid; gap: 22px; margin-top: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form label small { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 15px;
  color: var(--text);
  background: #121417;
  font: inherit;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.contact-form textarea { min-height: 190px; resize: vertical; }
.form-submit { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form-privacy { margin: -8px 0 0; color: var(--muted); font-size: .78rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.result-page { display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 760px) {
  .legal-header { min-height: 74px; }
  .legal-nav { gap: 14px; }
  .legal-nav a { font-size: .66rem; }
  .legal-page { width: min(100% - 28px, 820px); padding-top: 58px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-direct { flex-direction: column; gap: 7px; }
}
