:root {
  --ink: #172126;
  --muted: #5c6670;
  --line: #e2e6ea;
  --paper: #f7f8f5;
  --white: #ffffff;
  --black: #0a0f12;
  --soft-black: #172126;
  --gray: #8a949e;
  --brand-teal: #176b5b;
  --brand-blue: #315d78;
  --brand-copper: #a55c35;
  --brand-peach: #f0bd8d;
  --brand-cream: #f7f8f5;
  --brand-teal-soft: rgba(23, 107, 91, 0.1);
  --brand-copper-soft: rgba(165, 92, 53, 0.1);
  --shadow-sm: 0 4px 16px rgba(23, 33, 38, 0.06);
  --shadow-md: 0 12px 40px rgba(23, 33, 38, 0.1);
  --shadow-lg: 0 24px 60px rgba(23, 33, 38, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition:
    background 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    border-color 280ms var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--white);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.brand:hover {
  opacity: 0.82;
}

.brand-logo {
  width: clamp(132px, 16vw, 180px);
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(6px, 2vw, 8px);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 200ms ease, background 200ms ease;
}

.nav a:hover {
  color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav-toggle:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 200ms ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transition: transform 240ms var(--ease-out), top 240ms var(--ease-out);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-header.is-menu-open .nav-toggle-icon {
  background: transparent;
}

.site-header.is-menu-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 88px 0 56px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-shade {
  background:
    linear-gradient(
      115deg,
      rgba(10, 15, 18, 0.92) 0%,
      rgba(23, 107, 91, 0.55) 38%,
      rgba(49, 93, 120, 0.35) 68%,
      rgba(10, 15, 18, 0.25) 100%
    ),
    linear-gradient(0deg, rgba(10, 15, 18, 0.7) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

.hero-content > * {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-content .eyebrow {
  animation-delay: 0.1s;
}

.hero-content h1 {
  animation-delay: 0.2s;
}

.hero-content .hero-lead {
  animation-delay: 0.32s;
}

.hero-content .hero-actions {
  animation-delay: 0.44s;
}

.hero-content .hero-metrics {
  animation-delay: 0.56s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-copper));
  border-radius: 2px;
  content: "";
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow::before {
  background: linear-gradient(90deg, var(--brand-peach), var(--brand-teal));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 span {
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-peach) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms ease,
    border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #1a8570 100%);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(23, 107, 91, 0.4);
}

.button.primary:hover {
  box-shadow: 0 14px 36px rgba(23, 107, 91, 0.5);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.hero .button.primary {
  background: var(--white);
  color: var(--brand-teal);
  border: 2px solid var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero .button.primary:hover {
  background: var(--brand-cream);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero .button.secondary {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(8, 12, 14, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .button.secondary:hover {
  background: rgba(8, 12, 14, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
}

.button.large {
  min-width: min(100%, 320px);
  min-height: 56px;
  font-size: 1rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 48px 0 0;
  padding: 0;
}

.hero-metrics div {
  min-height: 88px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition: background 220ms ease, border-color 220ms ease;
}

.hero-metrics div:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-metrics dt {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-peach);
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 500;
}

/* ── Sections ── */

.section {
  padding: clamp(80px, 11vw, 128px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow),
.intro-copy,
.contact-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  font-size: 1.02rem;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Intro ── */

.intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro-copy p {
  margin: 0;
  font-size: 1.04rem;
}

.intro-copy p + p {
  margin-top: 20px;
}

/* ── Services ── */

.services {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--brand-teal-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, var(--brand-copper-soft) 0%, transparent 55%),
    var(--brand-cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 380px;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    border-color 280ms ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue));
  content: "";
  opacity: 0;
  transition: opacity 280ms ease;
}

.service-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-copper));
}

.service-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--brand-copper), var(--brand-peach));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 107, 91, 0.2);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-card:nth-child(2) .service-number {
  background: rgba(49, 93, 120, 0.1);
  color: var(--brand-blue);
}

.service-card:nth-child(3) .service-number {
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--soft-black);
}

.service-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue));
  content: "";
}

.service-card:nth-child(3) li::before {
  background: linear-gradient(135deg, var(--brand-copper), var(--brand-peach));
}

/* ── Published service ── */

.published {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(49, 93, 120, 0.08) 0%, transparent 58%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.published-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 107, 91, 0.06) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(49, 93, 120, 0.05) 100%),
    var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.published-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.published-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.published-badge-line {
  background: rgba(6, 199, 85, 0.12);
  color: #058a3f;
}

.published-badge-free {
  background: rgba(165, 92, 53, 0.12);
  color: var(--brand-copper);
}

.published-feature-tagline {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.published-feature-body h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.published-feature-lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.published-feature-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.published-feature-points li {
  position: relative;
  padding-left: 20px;
  color: var(--soft-black);
  font-size: 0.92rem;
  font-weight: 700;
}

.published-feature-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue));
  content: "";
}

.published-feature-link {
  margin-top: 28px;
}

.published-feature-preview {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.published-preview-phone {
  width: min(100%, 320px);
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, #f8faf9 0%, #eef3f1 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.published-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.published-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06c755;
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.16);
}

.published-preview-chat {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.published-preview-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.65;
}

.published-preview-bubble-user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #06c755;
  color: var(--white);
  font-weight: 700;
}

.published-preview-bubble-ai {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--white);
  color: var(--soft-black);
  box-shadow: var(--shadow-sm);
}

.published-preview-risk {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(165, 92, 53, 0.12);
  color: var(--brand-copper);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── Works ── */

.works {
  background: var(--white);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-item {
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    border-color 280ms ease;
}

.work-item:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 107, 91, 0.18);
  box-shadow: var(--shadow-md);
}

.work-meta {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.work-item:nth-child(even) .work-meta {
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
}

.work-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Stack ── */

.stack {
  background: var(--black);
  color: var(--white);
}

.stack .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.stack .eyebrow::before {
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-peach));
}

.stack .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.stack-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms var(--ease-out);
}

.stack-tags span:hover {
  border-color: rgba(23, 107, 91, 0.5);
  background: rgba(23, 107, 91, 0.2);
  transform: translateY(-2px);
}

/* ── Contact ── */

.contact {
  background:
    linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue) 55%, #1a3d52 100%);
  color: var(--white);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact .eyebrow::before {
  background: linear-gradient(90deg, var(--brand-peach), rgba(255, 255, 255, 0.6));
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(36px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.contact-panel p {
  max-width: 580px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-details-item {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.contact-details dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details a:hover {
  color: var(--white);
}

.contact .button.primary {
  background: var(--white);
  color: var(--brand-teal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.contact .button.primary:hover {
  background: var(--brand-cream);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

/* ── Footer ── */

.site-footer {
  padding: 32px 18px;
  color: rgba(255, 255, 255, 0.45);
  background: var(--black);
  text-align: center;
  font-size: 0.84rem;
}

.site-footer-copy {
  margin: 0;
}

.site-footer-info {
  margin-bottom: 14px;
}

.site-footer-info-item {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
}

.site-footer-info-item + .site-footer-info-item {
  margin-top: 2px;
}

.site-footer-info a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-info a:hover {
  color: var(--white);
}

.site-footer-links {
  margin: 10px 0 0;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.site-footer-links a:hover {
  color: var(--white);
}

.site-footer-links a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

/* ── Legal page ── */

.legal-page {
  padding: 108px 0 80px;
  background: var(--white);
}

.legal-page-inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-content {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.9;
}

.legal-content > p:first-child {
  margin-top: 0;
}

.legal-content section {
  margin-top: 36px;
}

.legal-content h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-teal-soft);
  font-size: 1.15rem;
  color: var(--brand-teal);
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--brand-blue);
}

.legal-contact {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-cream);
}

.legal-contact div + div {
  margin-top: 14px;
}

.legal-contact dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.legal-contact dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.legal-back {
  margin: 48px 0 0;
  text-align: center;
}

.legal-back-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.legal-back-button:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 240ms var(--ease-out),
      transform 240ms var(--ease-out),
      visibility 240ms;
  }

  .site-header.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 48px;
  }

  .hero-content {
    padding: 0;
  }

  .hero-metrics,
  .service-grid,
  .published-feature,
  .work-list,
  .intro-grid,
  .stack-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    max-width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .contact-panel {
    text-align: center;
  }

  .contact-details-item {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: left;
  }

  .contact .button.primary {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 128px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: auto;
  }

  h1 span {
    -webkit-text-fill-color: var(--white);
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
