/* ==========================================================================
   MCode Design System & Landing Page Styles
   Architectural Grid · Tactical Dark Mode · Cyber Neon Accents
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/geist-mono.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0B100D;
  --ink: #F1F5EF;
  --accent: #A3FF12;
  --accent-soft: rgba(163, 255, 18, 0.08);
  --muted: #9AAA9F;
  --muted-light: #A7B5AC;
  --line: #1F2822;
  --line-strong: #2D3A31;
  --panel: #111A14;
  --panel-card: #131E17;
  --panel-hover: #17241C;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --art-display: 'Anton', 'Arial Narrow', sans-serif;
  --mono: 'Geist Mono', Consolas, monospace;
  --body: 'Space Grotesk', 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max-width: 1400px;
  --border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  background-color: var(--bg);
}

body {
  isolation: isolate;
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  scrollbar-color: var(--muted) var(--bg);
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  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 {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  font-weight: 400;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  border-radius: var(--border-radius);
}
.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Status Grid Bar (Kauã Miguel inspiration)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 80;
  max-width: var(--max-width);
  margin: 0 auto;
}

.masthead-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: block;
  width: 168px;
  transition: opacity 0.2s;
}
.brand:hover {
  opacity: 0.85;
}

.masthead-note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--ink);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta-btn:hover {
  background: #B9FF36;
  transform: translateY(-1px);
}

.nav-cta-btn svg {
  width: 14px;
  height: 14px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Hero Section (OpenClaw + Alethe + Kauã Miguel)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 6%;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

/* Tech Badges Dock */

/* Tape / Ribbon */

/* Monumental Hero Headline */
.hero-heading {
  text-align: left;
  margin-bottom: 24px;
}

#hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 6.8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-word-accent {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  padding: 0 0.15em;
  font-size: 0.78em;
  line-height: 0.9;
  letter-spacing: 0.035em;
}

@media (min-width: 769px) {
  .hero-title-accent {
    justify-content: flex-start;
    margin-left: -0.1em;
  }
}

.outlined {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

/* ASCII Matrix terminal */
.logo-stage {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #090E0B;
}

.logo-terminal-bar {
  gap: 12px;
  padding: 14px 16px;
}

.logo-terminal-bar .terminal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.logo-terminal-bar > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

#logo-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.62;
  margin: 0;
}

#logo-canvas:not([data-rendered]) { display: none; }
#logo-canvas[data-rendered] + .logo-fallback { display: none; }
.logo-fallback { width: min(50%, 256px); margin: 64px auto; }

/* Hero copy and actions */
.hero-bottom {
  display: grid;
  grid-column: 1;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  max-width: 980px;
  margin: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-light);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-btn-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Common base geometry for unified optical rhythm */
.solid-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

/* Inset icon circular bubble (Kauã Miguel & OpenClaw inspiration) */
.btn-arrow-bubble {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-arrow-bubble svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform 0.25s ease;
}

/* Primary Button (Neon Lime Solid) */
.solid-button {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  padding: 0 8px 0 22px;
  gap: 14px;
}

.solid-button .btn-arrow-bubble {
  background: var(--bg);
  color: var(--accent);
}

.solid-button:hover {
  background: #B9FF36;
  border-color: #B9FF36;
  transform: translateY(-2px);
}

.solid-button:hover .btn-arrow-bubble {
  transform: scale(1.05);
}

.solid-button:hover .btn-arrow-bubble svg {
  transform: translate(2px, -2px);
}

/* Secondary Button — Engineered Tactical Glass (Matches OpenClaw & Kauã Miguel) */
.secondary-button {
  background: rgba(17, 26, 20, 0.85);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0 8px 0 14px;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.secondary-button .btn-text {
  color: var(--ink);
  transition: color 0.2s ease;
}

.secondary-button .btn-arrow-bubble {
  background: #152219;
  border: 1px solid var(--line-strong);
  color: var(--muted-light);
}

.secondary-button:hover {
  background: rgba(22, 34, 26, 0.95);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.secondary-button:hover .btn-text {
  color: #FFFFFF;
}

.secondary-button:hover .btn-arrow-bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: scale(1.05);
}

.secondary-button:hover .btn-arrow-bubble svg {
  transform: translateY(2px);
}

#halftone-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.projects-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-left: 22px;
  border-color: #46573e;
  background: var(--bg);
  backdrop-filter: none;
  box-shadow: none;
  transition: border-color .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.projects-button::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--accent);
  clip-path: circle(0% at calc(100% - 26px) 50%);
  transition: clip-path .6s cubic-bezier(.16,1,.3,1);
}
.projects-button:hover,
.projects-button:focus-visible { background: var(--bg); box-shadow: none; border-color: var(--accent); transform: translateY(-3px); }
.projects-button:hover::before,
.projects-button:focus-visible::before { clip-path: circle(150% at calc(100% - 26px) 50%); }
.projects-button:hover .btn-text,
.projects-button:focus-visible .btn-text { color: var(--bg); }
.projects-button .btn-text { position: relative; transition: color .3s, transform .45s cubic-bezier(.16,1,.3,1); }
.projects-button:hover .btn-text { transform: translateX(3px); }
.projects-button .btn-arrow-bubble { overflow: hidden; }
.projects-button:hover .btn-arrow-bubble,
.projects-button:focus-visible .btn-arrow-bubble { background: var(--bg); border-color: var(--bg); color: var(--accent); transform: rotate(-45deg); }
.projects-button:hover .btn-arrow-bubble svg { animation: project-arrow .55s cubic-bezier(.16,1,.3,1); transform: none; }
@keyframes project-arrow {
  0% { transform: translateY(0); }
  45% { transform: translateY(28px); }
  46% { transform: translateY(-28px); }
  100% { transform: translateY(0); }
}



/* --------------------------------------------------------------------------
   Ticker Ribbon
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  display: flex;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 26s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100vw;
  gap: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 400;
  letter-spacing: 0.025em;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-bullet {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.ticker-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

/* --------------------------------------------------------------------------
   Section Shell & Common Patterns
   -------------------------------------------------------------------------- */
.section-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 104px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.heading-desc p {
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.honesty {
  font-family: var(--body);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
}

/* --------------------------------------------------------------------------
   Projects Grid (Kauã Miguel cards)
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-card-full {
  grid-column: 1 / -1;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.project {
  display: block;
  height: 100%;
}

.project-art {
  height: 420px;
  position: relative;
  overflow: hidden;
  background: #141B16;
}

.project-card-header {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  z-index: 10;
}

.project-badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  background: rgba(11, 16, 13, 0.8);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--accent);
}

.mock-top {
  position: absolute;
  top: 56px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.mock-top span { font-family: var(--body); font-size: 12px; }

.mock-top b {
  font-size: 18px;
  color: var(--ink);
  font-family: var(--body);
}

.mock-bottom, .frame-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-open {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.25s;
  z-index: 10;
}

.project:hover .project-open {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* Órbita Art */
.orbit-art {
  background: #0E1610;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}

.orbit-title {
  position: absolute;
  top: 120px;
  left: 24px;
  font-family: var(--art-display);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  z-index: 2;
}

.orbit-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.orbital-art {
  position: absolute;
  width: 85%;
  height: 70%;
  right: -8%;
  bottom: 20px;
  color: var(--accent);
  opacity: 0.75;
}

/* Frame Art */
.frame-art {
  background: #EAE9E2;
  color: #121914;
  border-bottom: 1px solid var(--line);
}

.frame-art .mock-top b, .frame-art .mock-top span, .frame-art .frame-label {
  color: #1F2822;
}

.frame-art img {
  position: absolute;
  right: 0;
  top: 80px;
  bottom: 80px;
  height: calc(100% - 160px);
  width: 45%;
  object-fit: cover;
}

.frame-title {
  position: absolute;
  top: 130px;
  left: 24px;
  font-family: var(--art-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
  color: #121914;
}

.frame-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px #121914;
}

/* Pulse Art */
.pulse-art {
  background: #070B08;
  color: var(--ink);
  height: 420px;
  border-bottom: 1px solid var(--line);
}

.pulse-type {
  position: absolute;
  top: 100px;
  left: 24px;
  font-family: var(--art-display);
  font-size: clamp(54px, 6.5vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.pulse-type span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.pulse-wave {
  position: absolute;
  top: 140px;
  right: 0;
  width: 55%;
  height: 120px;
  color: var(--accent);
}

/* Project Info block */
.project-info {
  padding: 24px 28px 28px;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.project-name {
  font-family: var(--body);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.project-category {
  font-family: var(--body);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.project-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-light);
  margin: 0 0 18px;
}

.project-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s;
}

.project-card:hover .project-footer-link {
  color: var(--accent);
}

.link-arrow {
  transition: transform 0.2s;
}

.project-card:hover .link-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Deep-Dive Details
   -------------------------------------------------------------------------- */
.project-details {
  margin-top: 64px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.details-heading {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 13, 0.6);
}

.terminal-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

details {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

details:last-child {
  border-bottom: none;
}

details[open] {
  background: var(--panel-hover);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

.summary-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  flex-grow: 1;
}

.summary-category {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}

.summary-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

details[open] .summary-icon {
  transform: rotate(45deg);
}

.details-content {
  padding: 0 24px 24px;
}

.details-content p {
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 68ch;
}

.concept-disclaimer {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  display: block;
}

/* --------------------------------------------------------------------------
   Studio: Presença com Intenção (Tactical Engineering Aesthetics)
   -------------------------------------------------------------------------- */
.studio {
  background: var(--bg);
  color: var(--ink);
  border-top: 0;
  position: relative;
}
.studio-grid { display: grid; grid-template-columns: 1.05fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.studio-brand-col { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 48px; }
#studio-title { margin: 0; font: 400 clamp(48px, 6vw, 90px)/1.04 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.title-block { display: block; }
.title-accent .outlined { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.title-accent .neon-word, .title-accent .neon-dot { color: var(--accent); }
.studio-manifesto-card { display: flex; flex-direction: column; gap: 20px; }
.manifesto-lead { margin: 0; font: 500 clamp(20px, 2.2vw, 26px)/1.35 var(--body); letter-spacing: -0.02em; }
.manifesto-lead span { color: var(--accent); }
.manifesto-body { display: flex; flex-direction: column; gap: 14px; }
.manifesto-body p { margin: 0; color: var(--muted-light); font-size: 16px; line-height: 1.65; }
.studio-services-stack { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.service-module { padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-module-body { display: flex; flex-direction: column; gap: 14px; }
.service-name { margin: 0; font: 500 clamp(24px, 2.3vw, 30px)/1.25 var(--body); letter-spacing: -0.025em; }
.service-desc { margin: 0; color: var(--muted-light); font-size: 16px; line-height: 1.65; }
.studio-action-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.studio-disclaimer { font: 13px/1.6 var(--body); color: var(--muted); }
.studio-cta-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 8px 8px 18px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 14px; transition: background .2s, color .2s; }
.studio-cta-btn:hover { background: var(--accent); color: var(--bg); }
.cta-btn-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); }
.cta-btn-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.studio-cta-btn:hover .cta-btn-arrow svg { transform: translate(2px,-2px); }
.studio :focus-visible { outline-color: var(--accent); }
.studio ::selection { background: var(--accent); color: var(--bg); }

/* Team portraits */
.devs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; max-width: 1000px; margin-inline: auto; }
.dev-profile { min-width: 0; }
.dev-photo { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); }
.dev-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.dev-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 20px; }
.dev-profile h3 { margin: 0; font: 500 26px/1.3 var(--body); letter-spacing: -.025em; }
.dev-github { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; transition: color .2s, background .2s, border-color .2s; }
.dev-github:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.dev-github svg { width: 16px; height: 16px; transition: transform .2s; }
.dev-github:hover svg { transform: translate(2px,-2px); }

/* --------------------------------------------------------------------------
   Contact channels and shared terminal chrome
   -------------------------------------------------------------------------- */
.contact-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 48px;
}

.contact-heading h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.contact-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-light);
  margin: 0;
}

.terminal-bar {
  background: #0E1611;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-light);
}

.contact-intro .contact-support { margin-top: 18px; color: var(--muted); font-size: 15px; }
.contact-channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.contact-channels > li { border-bottom: 1px solid var(--line-strong); }
.contact-option { display: flex; align-items: center; gap: 28px; min-height: 116px; padding: 26px 24px; }
a.contact-option { transition: background .25s, color .25s; }
a.contact-option:hover { background: var(--accent-soft); }
a.contact-option:focus-visible { outline-offset: -4px; }
.contact-channel-icon { width: 30px; height: 30px; color: var(--accent); }
.contact-option-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.contact-option-name { font: 500 clamp(22px, 2.3vw, 30px)/1.2 var(--body); letter-spacing: -.025em; }
.contact-option-detail { color: var(--muted-light); font-size: 15px; overflow-wrap: anywhere; }
.contact-option-arrow { width: 24px; height: 24px; color: var(--accent); transition: transform .25s; }
a.contact-option:hover .contact-option-arrow { transform: translate(3px,-3px); }
.contact-channel-status { padding: 6px 10px; border: 1px solid var(--line-strong); font: 12px/1.4 var(--body); white-space: nowrap; color: var(--muted-light); }
.contact-option.is-pending .contact-channel-icon { color: var(--muted-light); }
.contact-option.is-pending .contact-option-name { color: var(--muted-light); }

/* --------------------------------------------------------------------------
   Floating Studio Widget (OpenClaw inspiration)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  width: 168px;
}

.footer-claim {
  font-family: var(--body);
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 4px;
}

.footer-subclaim {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-light);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.2s;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  .section-heading, .contact-header, .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .studio-brand-col {
    position: static;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.cta-note {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

input, textarea { min-width: 0; }
textarea { resize: vertical; }
p { text-wrap: pretty; }
h2, h3 { text-wrap: balance; font-weight: 400; }
.nav-link, .menu-toggle, .back-to-top { min-height: 44px; }
.project:focus-visible { outline-offset: -4px; }


.not-found {
  max-width: 1100px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.not-found h1 {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 24px 0;
}
.not-found .solid-button { margin-top: 32px; }

.custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  will-change: transform;
  transition: opacity .22s, visibility .22s;
}
.custom-cursor::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: width .3s cubic-bezier(.22,1,.36,1), height .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), opacity .22s;
}
.cursor-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1);
}
.cursor-arrow {
  position: absolute;
  left: -4px;
  top: -3px;
  width: 28px;
  height: 28px;
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  transform-origin: 4px 3px;
  transform: scale(.75);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .22s;
}
.cursor-label {
  position: absolute;
  left: 0;
  top: 32px;
  padding: 4px 6px;
  background: var(--bg);
  color: var(--ink);
  font: 400 12px/1.2 var(--body);
  white-space: nowrap;
  transform: translateY(-3px);
  opacity: 0;
  transition: opacity .22s, transform .3s cubic-bezier(.22,1,.36,1);
}
.custom-cursor[data-mode="link"]::before { width: 36px; height: 36px; }
.custom-cursor[data-mode="project"]::before { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.custom-cursor[data-mode="project"] .cursor-dot { opacity: 0; transform: translate(-50%, -50%) scale(.75); }
.custom-cursor[data-mode="project"] .cursor-arrow { opacity: 1; transform: scale(1); }
.custom-cursor[data-mode="project"] .cursor-label { opacity: 1; transform: translateY(0); transition-delay: .03s; }
.custom-cursor.is-pressed::before { transform: translate(-50%, -50%) scale(.88); }
.custom-cursor.is-pressed .cursor-arrow { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) {
  .custom-cursor { display: block; }
  .cursor-ready, .cursor-ready a, .cursor-ready button, .cursor-ready summary { cursor: none; }
  .cursor-ready .custom-cursor { opacity: 1; visibility: visible; }
}

@media (max-width: 1100px) {
  .masthead-note { display: none; }
  .masthead nav { gap: 24px; }
  .hero { column-gap: 4%; }
  .hero-actions { align-items: flex-start; }
  .hero-sub { font-size: 17px; }
}
@media (max-width: 768px) {

  .masthead-note {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .masthead nav {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  }
  .masthead nav.is-open {
    display: flex;
  }
  .nav-cta-btn {
    justify-content: center;
  }
.footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero-heading { text-align: center; }
  #hero-title { align-items: center; font-size: clamp(48px, 11vw, 80px); }
  .hero-title-accent { margin: 4px 0; }
  .logo-stage { grid-column: 1; grid-row: 3; width: 100%; margin-top: 32px; }
  #logo-canvas { width: 100%; margin: 0; }
  .hero-bottom { grid-row: 2; }
  .hero-sub { margin: 0; max-width: 55ch; }
  .hero-actions { justify-content: center; gap: 12px 24px; }
  .cta-note { text-align: center; }
  .section-shell { padding: 64px var(--gutter); }
  .contact-option { padding: 24px 0; gap: 16px; }
  .contact-channel-icon { width: 24px; height: 24px; }
  .contact-option-detail { font-size: 14px; }
  .contact-channel-status { padding: 5px 8px; }
  .studio-grid { gap: 28px; }
  #studio-title { font-size: clamp(42px, 10vw, 70px); }
  .service-module { padding: 26px 0; }
  .studio-action-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-heading { margin-bottom: 32px; }
  .work-grid { gap: 28px; }
  .devs-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-art { height: 380px; }
  .pulse-type { font-size: 56px; }
  .project-info { padding: 22px; }
  .summary-category { display: none; }
  .terminal-bar { gap: 12px; flex-wrap: wrap; }
  .logo-terminal-bar { flex-wrap: nowrap; }
.brief-fields { padding: 24px 20px; }

  .mock-bottom, .frame-label { right: 76px; font-size: 12px; }
  .frame-title { font-size: clamp(42px, 9vw, 60px); }
  .pulse-wave { display: none; }
  .footer-bottom { font: 13px/1.6 var(--body); }
}
@media (max-width: 380px) {
  .brand { width: 140px; }
  .contact-option { flex-wrap: wrap; }
  .contact-option-copy { flex-basis: calc(100% - 48px); }
  .contact-channel-status, .contact-option-arrow { margin-left: 40px; }
  .masthead { padding-top: 18px; padding-bottom: 18px; }
  .logo-terminal-bar { padding: 12px; gap: 8px; }
  .logo-terminal-bar .terminal-title { font-size: 12px; }
  .project-art { height: 360px; }
  .frame-art img { width: 40%; }
  .frame-title { left: 20px; font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.custom-cursor):not(.cursor-dot):not(.cursor-arrow):not(.cursor-label),
  *:not(.custom-cursor)::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { width: 100%; }
  .ticker-group { min-width: 0; width: 100%; flex-wrap: wrap; gap: 12px 20px; padding: 0 20px; font-size: clamp(16px, 3vw, 32px); }
  .ticker-group:nth-child(2) { display: none; }
  .ticker-bullet { width: 16px; height: 16px; }
}

/* Portfolio slots awaiting publication. */
.project-coming-soon { min-height: 340px; padding: clamp(24px,4vw,48px); display: flex; flex-direction: column; justify-content: flex-end; }
.project-slot-number { margin-bottom: auto; color: var(--accent); font: 14px var(--mono); }
.project-coming-soon h3 { margin: 56px 0 14px; color: var(--muted-light); font: 400 clamp(48px,6vw,82px)/1 var(--display); }
.project-coming-soon p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
