@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;700&display=swap');

:root {
  --c-mint: #C5EAD9;
  --c-peach: #FCD5B5;
  --c-lavender: #D9CFE8;
  --c-sky: #BDD7EE;
  --c-ink: #1A1A1A;
  --c-charcoal: #1C1C1C;
  --c-scarlet: #E63946;
  --c-scarlet-dark: #B82C38;
  --c-graphite: #4A4E53;
  --c-paper: #F9F9FB;
  --c-deep: #2C2C2C;
}

* {
  border-radius: 0 !important;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--c-charcoal);
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

strong, p, b, span, li, a, h1, h2, h3, h4, h5, h6 {
  color: inherit;
}

.font-serif {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  letter-spacing: -0.01em;
}

.font-jp {
  font-family: 'Noto Serif JP', serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

.ink-border {
  border: 2px solid var(--c-ink);
}

.ink-border-thick {
  border: 3px solid var(--c-ink);
}

.scarlet-shadow {
  position: relative;
}

.scarlet-shadow::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.scarlet-shadow:hover::after {
  top: 10px;
  left: 10px;
  background: var(--c-scarlet-dark);
  transform: translate(2px, 2px);
}

.mesh-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #FFFFFF;
  overflow: hidden;
  overflow-x: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}

.mesh-blob.b1 {
  width: 620px;
  height: 620px;
  background: var(--c-mint);
  top: -120px;
  left: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}

.mesh-blob.b2 {
  width: 540px;
  height: 540px;
  background: var(--c-peach);
  top: 30%;
  right: -160px;
  animation: drift2 28s ease-in-out infinite alternate;
}

.mesh-blob.b3 {
  width: 600px;
  height: 600px;
  background: var(--c-lavender);
  bottom: -180px;
  left: 25%;
  animation: drift3 32s ease-in-out infinite alternate;
}

.mesh-blob.b4 {
  width: 480px;
  height: 480px;
  background: var(--c-sky);
  top: 60%;
  left: 8%;
  animation: drift4 26s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, 80px) scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-120px, 100px) scale(0.92); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -120px) scale(1.1); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(160px, -60px) scale(0.95); }
}

@media (max-width: 768px) {
  .mesh-blob {
    filter: blur(70px);
    opacity: 0.7;
  }
  .mesh-blob.b1 { width: 320px; height: 320px; }
  .mesh-blob.b2 { width: 280px; height: 280px; }
  .mesh-blob.b3 { width: 360px; height: 360px; }
  .mesh-blob.b4 { width: 260px; height: 260px; }
}

.section-mesh-overlay {
  position: relative;
  z-index: 1;
}

.section-mesh-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: -1;
  pointer-events: none;
}

.section-paper {
  background: var(--c-paper);
  position: relative;
  z-index: 1;
}

.section-deep {
  background: var(--c-deep);
  color: #FFFFFF;
  position: relative;
  z-index: 1;
}

.section-deep strong, .section-deep p, .section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4, .section-deep span, .section-deep a, .section-deep li {
  color: inherit;
}

.h-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-charcoal);
}

.h-display-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--c-charcoal);
}

.h-section {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--c-charcoal);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-scarlet);
  font-weight: 500;
}

.lede {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-graphite);
}

.body-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-graphite);
}

.pill-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 2px solid var(--c-ink);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-radius: 0 !important;
}

.pill-header.scarlet-shadow::after {
  display: none;
}

.pill-header-shadow {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(calc(-50% + 4px));
  width: min(1080px, calc(100% - 24px));
  height: 64px;
  background: var(--c-scarlet);
  z-index: 55;
  pointer-events: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  position: relative;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .top {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--c-charcoal);
}

.brand-text .sub {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 10px;
  color: var(--c-graphite);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-charcoal);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-scarlet);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--c-scarlet);
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--c-scarlet);
  border: 2px solid var(--c-ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 2px solid var(--c-ink);
  z-index: 80;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--c-charcoal);
  text-decoration: none;
  padding: 8px 0 8px 16px;
  border-left: 4px solid var(--c-scarlet);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: var(--c-ink);
  color: #FFFFFF;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger-btn { display: flex; }
  .brand-text .sub { display: none; }
  .brand-text .top { font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .pill-header { padding: 8px 14px; }
}

@media (max-width: 768px) {
  .pill-header {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .pill-header-shadow { display: none; }
  .burger-btn { width: 44px; height: 44px; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-scarlet);
  color: #FFFFFF !important;
  border: 2px solid var(--c-ink);
  padding: 18px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  min-height: 56px;
  transition: transform 0.2s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--c-ink);
  z-index: -1;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
}

.btn-primary:hover::after {
  top: 10px;
  left: 10px;
  background: var(--c-ink);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--c-charcoal) !important;
  border: 2px solid var(--c-ink);
  padding: 16px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  min-height: 52px;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
}

.btn-secondary:hover::after {
  top: 8px;
  left: 8px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-charcoal) !important;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid var(--c-scarlet);
}

.morph-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
}

.morph-shape {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--c-scarlet);
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s, height 0.45s;
}

.morph-trigger.active .morph-shape {
  width: 140vw;
  height: 140vw;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.drag-canvas {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  border: 2px solid var(--c-ink);
  background: rgba(255, 255, 255, 0.7);
}

.drag-card {
  position: absolute;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border: 2px solid var(--c-ink);
  padding: 22px;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, z-index 0s 0.3s;
  z-index: 1;
  overflow-wrap: break-word;
}

.drag-card::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.2s ease;
}

.drag-card:hover, .drag-card.dragging {
  z-index: 100;
  transition: z-index 0s 0s, box-shadow 0.2s ease, transform 0.2s ease;
  transform: translate(-2px, -2px);
}

.drag-card:hover::after, .drag-card.dragging::after {
  top: 10px;
  left: 10px;
}

.drag-card:active { cursor: grabbing; }

@media (max-width: 768px) {
  .drag-canvas { min-height: 420px; }
  .drag-card { width: 260px; padding: 18px; }
}

.flex-grow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--c-ink);
}

.flex-grow-cell {
  background: #FFFFFF;
  padding: 36px 28px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  position: relative;
  transition: flex-grow 0.3s ease, background 0.25s ease;
  overflow: hidden;
}

.flex-grow-cell:nth-child(4n) { border-right: none; }
.flex-grow-cell:nth-child(n+3) { border-bottom: none; }

@media (max-width: 1024px) {
  .flex-grow-grid { grid-template-columns: repeat(2, 1fr); }
  .flex-grow-cell:nth-child(2n) { border-right: none; }
  .flex-grow-cell:nth-child(4n) { border-right: 2px solid var(--c-ink); }
  .flex-grow-cell:nth-child(n+3) { border-bottom: 2px solid var(--c-ink); }
  .flex-grow-cell:nth-child(n+5) { border-bottom: none; }
}

@media (max-width: 640px) {
  .flex-grow-grid { grid-template-columns: 1fr; }
  .flex-grow-cell { border-right: none !important; border-bottom: 2px solid var(--c-ink) !important; }
  .flex-grow-cell:last-child { border-bottom: none !important; }
}

.flex-grow-cell:hover {
  background: var(--c-paper);
}

.flex-grow-cell .cell-extended {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease;
  margin-top: 0;
}

.flex-grow-cell:hover .cell-extended {
  max-height: 200px;
  margin-top: 16px;
}

.flex-grow-cell .cell-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90px;
  height: 90px;
  opacity: 0.08;
  pointer-events: none;
  background-image: radial-gradient(circle at center, var(--c-scarlet) 1.5px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flex-grow-cell:hover .cell-pattern { opacity: 0.5; }

.node-graph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: center;
  min-height: 240px;
}

.node-graph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--c-ink);
  z-index: 0;
}

.node-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.node-circle {
  width: 76px;
  height: 76px;
  border: 2px solid var(--c-ink);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  position: relative;
}

.node-circle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.2s ease;
}

.node-step:hover .node-circle {
  background: var(--c-scarlet);
  color: #FFFFFF;
  transform: translate(-2px, -2px);
}

.node-step:hover .node-circle::after {
  top: 8px;
  left: 8px;
}

.node-step:hover .node-circle svg {
  stroke: #FFFFFF;
}

.node-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-charcoal);
}

.node-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--c-ink);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .node-graph {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .node-graph::before { display: none; }
  .node-step { flex-direction: row; text-align: left; }
  .node-circle { width: 56px; height: 56px; }
}

.marquee {
  overflow: hidden;
  overflow-x: hidden;
  background: #EDE7F6;
  border-top: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  padding: 32px 0;
  max-width: 100vw;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marquee-item .dot {
  width: 16px;
  height: 16px;
  background: var(--c-scarlet);
  display: inline-block;
}

.masonry {
  columns: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  background: #FFFFFF;
  border: 2px solid var(--c-ink);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.2s ease, z-index 0s 0.3s;
  z-index: 1;
}

.masonry-item::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.2s ease;
  opacity: 0;
}

.masonry-item:hover {
  z-index: 100;
  transform: translate(-2px, -2px);
  transition: z-index 0s 0s, transform 0.2s ease;
}

.masonry-item:hover::after { opacity: 1; top: 8px; left: 8px; }

@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 2px solid var(--c-ink);
  cursor: pointer;
  transition: padding 0.2s ease;
}

.team-row:hover {
  padding-left: 16px;
  background: var(--c-paper);
}

.team-row-photo {
  width: 90px;
  height: 90px;
  border: 2px solid var(--c-ink);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

.team-row:hover .team-row-photo {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 700px) {
  .team-row:hover .team-row-photo { display: none; }
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-ink);
}

.timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--c-scarlet);
  border: 2px solid var(--c-ink);
}

.faq-item {
  border-bottom: 2px solid var(--c-ink);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--c-charcoal);
  position: relative;
  padding-left: 28px;
}

.faq-trigger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 14px;
  height: 14px;
  background: var(--c-scarlet);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--c-ink);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-icon {
  background: var(--c-scarlet);
  color: #FFFFFF;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding-left: 28px;
  color: var(--c-graphite);
}

.faq-item.active .faq-content {
  max-height: 400px;
  padding-bottom: 22px;
}

.faq-item.active .faq-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-scarlet);
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  background: #FFFFFF;
  border: 2px solid var(--c-ink);
  padding: 22px;
  z-index: 90;
  box-shadow: 6px 6px 0 var(--c-scarlet);
}

.cookie-banner.hidden { display: none; }

.cookie-banner h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--c-charcoal);
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-graphite);
  margin: 0 0 16px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--c-ink);
  cursor: pointer;
  background: #FFFFFF;
  color: var(--c-charcoal);
  white-space: nowrap;
}

.cookie-actions .accept {
  background: var(--c-scarlet);
  color: #FFFFFF;
}

@media (min-width: 640px) {
  .cookie-banner { right: auto; }
}

.site-footer {
  background: var(--c-deep);
  color: #FFFFFF;
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--c-scarlet);
}

.site-footer strong, .site-footer p, .site-footer span, .site-footer a, .site-footer li, .site-footer h3, .site-footer h4 {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-scarlet);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-col a:hover { border-bottom-color: var(--c-scarlet); }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
  gap: 12px;
}

.split-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--c-deep);
  color: #FFFFFF;
}

.split-contact strong, .split-contact p, .split-contact h1, .split-contact h2, .split-contact h3, .split-contact a, .split-contact li, .split-contact label, .split-contact input, .split-contact textarea {
  color: inherit;
}

.split-left {
  padding: 72px 56px;
  position: sticky;
  top: 80px;
  height: fit-content;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
}

.split-right {
  padding: 72px 56px;
  background: #FFFFFF;
  color: var(--c-charcoal);
}

.split-right strong, .split-right p, .split-right h1, .split-right h2, .split-right h3, .split-right a, .split-right li, .split-right label, .split-right input, .split-right textarea {
  color: var(--c-charcoal) !important;
}

@media (max-width: 900px) {
  .split-contact { grid-template-columns: 1fr; }
  .split-left { position: static; padding: 48px 28px; border-right: none; border-bottom: 2px solid rgba(255, 255, 255, 0.15); }
  .split-right { padding: 48px 28px; }
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 2px solid var(--c-ink);
  background: #FFFFFF;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--c-charcoal) !important;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-graphite); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--c-scarlet);
  box-shadow: 4px 4px 0 var(--c-scarlet);
}

.form-error {
  color: var(--c-scarlet) !important;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  display: none;
}

.form-field.invalid .form-error { display: block; }
.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--c-scarlet); }

.form-success {
  display: none;
  padding: 32px;
  background: var(--c-mint);
  border: 2px solid var(--c-ink);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-charcoal);
}

.form-success.show { display: block; }

.gear-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.hero-shape-deco {
  position: absolute;
  border: 2px solid var(--c-ink);
  background: #FFFFFF;
}

.kinetic-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.kinetic-letter.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  background: #FFFFFF;
  border: 2px solid var(--c-ink);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--c-scarlet);
  z-index: -1;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translate(-2px, -2px);
}

.service-card:hover::after {
  top: 10px;
  left: 10px;
}

.tag-mono {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--c-ink);
  color: #FFFFFF !important;
  padding: 4px 10px;
  font-weight: 600;
}

.tag-scarlet {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--c-scarlet);
  color: #FFFFFF !important;
  padding: 4px 10px;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-graphite);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-hint .line {
  width: 2px;
  height: 36px;
  background: var(--c-ink);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.stripe-divider {
  height: 2px;
  background: var(--c-ink);
  width: 100%;
}

.stripe-divider.scarlet {
  background: var(--c-scarlet);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--c-ink);
}

.gallery-cell {
  aspect-ratio: 4 / 3;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gallery-cell:nth-child(3n) { border-right: none; }
.gallery-cell:nth-child(n+4) { border-bottom: none; }

.gallery-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-scarlet);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.gallery-cell:hover::before { opacity: 0.5; }

.gallery-cell .cell-meta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #FFFFFF !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-cell:hover .cell-meta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-cell:nth-child(3n) { border-right: 2px solid var(--c-ink); }
  .gallery-cell:nth-child(2n) { border-right: none; }
  .gallery-cell:nth-child(n+4) { border-bottom: 2px solid var(--c-ink); }
  .gallery-cell:nth-child(n+5) { border-bottom: none; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-cell { border-right: none !important; border-bottom: 2px solid var(--c-ink) !important; }
  .gallery-cell:last-child { border-bottom: none !important; }
}

.thanks-box {
  border: 2px solid var(--c-ink);
  background: #FFFFFF;
  padding: 64px 48px;
  position: relative;
  text-align: center;
}

.thanks-box::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  background: var(--c-scarlet);
  z-index: -1;
}

.legal-prose p { margin-bottom: 14px; }
.legal-prose h2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 28px; margin: 28px 0 12px; }
.legal-prose h3 { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 22px 0 8px; }
.legal-prose ul { margin: 10px 0 14px 18px; }
.legal-prose li { margin-bottom: 6px; }

.container-tight {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container-tight { padding: 0 32px; }
}

.text-scarlet { color: var(--c-scarlet) !important; }
.text-graphite { color: var(--c-graphite) !important; }
.text-ink { color: var(--c-ink) !important; }
.bg-paper { background: var(--c-paper); }
.bg-mint { background: var(--c-mint); }
.bg-peach { background: var(--c-peach); }
.bg-lavender { background: var(--c-lavender); }
.bg-sky { background: var(--c-sky); }

.kbd-divider {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--c-scarlet);
  vertical-align: middle;
  margin: 0 12px;
}

::selection {
  background: var(--c-scarlet);
  color: #FFFFFF;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
