@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --red: #d62830;
  --teal: #0c6f82;
  --ink: #261718;
  --paper: #f8f3ec;
  --paper2: #fffdf9;
  --line: rgba(38, 23, 24, 0.2);
  --mute: #6d5658;
  --dock: 72px;
  --shadow: 0 12px 26px -18px rgba(38, 23, 24, 0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(38, 23, 24, 0.11) 1px, transparent 1.3px),
    radial-gradient(circle at 88% 4%, rgba(214, 40, 48, 0.13), transparent 46%),
    radial-gradient(circle at 4% 30%, rgba(12, 111, 130, 0.12), transparent 40%);
  background-size: 20px 20px, 100% 100%, 100% 100%;
}

html.locked { overflow: hidden; }

img { max-width: 100%; }

h1, h2, h3 { line-height: 1.3; }
h1 { text-wrap: balance; }

/* ---------- shell ---------- */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.flow { min-width: 0; }

/* ---------- left rail ---------- */
.rail {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 26px 18px 26px 18px;
  background: rgba(255, 253, 249, 0.78);
  overflow: hidden;
}

.rail-h {
  margin: 0 0 10px;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.rail-h span, .foot-col h2 span { position: relative; }

.rail-list, .foot-list, .top-list, .dock-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  margin-bottom: 3px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail-list a:hover {
  background: rgba(214, 40, 48, 0.09);
  color: var(--red);
}

.rail-deco {
  margin: 14px 0 0;
  height: 54px;
  background: linear-gradient(120deg, rgba(12, 111, 130, 0.3), rgba(214, 40, 48, 0.22));
  border-radius: 48% 52% 36% 64% / 62% 38% 62% 38%;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 45vh;
  margin: 0 0 24px;
  padding: 38px 18px;
  overflow: hidden;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 18px 44px 18px 44px;
  background-color: var(--paper2);
  background-image: radial-gradient(rgba(38, 23, 24, 0.15) 1px, transparent 1.4px);
  background-size: 16px 16px;
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 190px;
  background: linear-gradient(140deg, rgba(12, 111, 130, 0.24), rgba(214, 40, 48, 0.26));
  border-radius: 62% 38% 55% 45% / 45% 60% 40% 55%;
  pointer-events: none;
}

.collage {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.shot {
  position: absolute;
  width: 30%;
  max-width: 200px;
  border-radius: 24px;
  overflow: hidden;
  will-change: transform;
}

.shot .shot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 2.5px solid var(--paper2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.shot.one {
  top: 7%;
  left: 4%;
  transform: translateY(var(--py, 0)) rotate(-4deg);
}

.shot.two {
  right: 4%;
  bottom: 7%;
  transform: translateY(var(--py, 0)) rotate(5deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 16px 22px;
  background: radial-gradient(closest-side, rgba(248, 243, 236, 0.94), rgba(248, 243, 236, 0));
}

.kicker {
  margin: 0 0 8px;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--teal);
}

.hero h1 {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(1.75rem, 5.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 14px;
  border: 1.5px solid var(--line);
  border-radius: 50% 50% 50% 4px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  background: var(--paper2);
}

.jump:hover { border-color: var(--red); color: var(--red); }

/* ---------- content blocks ---------- */
.flow > section:not(.hero) {
  position: relative;
  margin: 0 0 22px;
  padding: 24px 20px 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--paper2);
  scroll-margin-top: 22px;
  scroll-margin-bottom: calc(var(--dock) + 30px);
}

.flow > section:not(.hero)::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  opacity: 0.8;
}

.flow :is(h2, h3) {
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.flow h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.42rem);
  font-weight: 600;
}

.flow h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.flow :is(h2, h3) span { position: relative; padding-left: 0.9em; display: inline-block; }

.flow :is(h2, h3) span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 0 50%;
  background: var(--teal);
}

.flow p { margin: 0 0 1em; line-height: 1.78; }
.flow p:last-child { margin-bottom: 0; }

.flow a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.flow a:hover { color: var(--red); }

.flow :is(ul, ol) { margin: 0 0 1em; padding-left: 1.3em; }
.flow li { margin-bottom: 0.45em; }

.flow img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border: 1.5px solid var(--line);
  border-radius: 16px;
}

.flow figure { margin: 1em 0; }
.flow figcaption { font-size: 1rem; color: var(--mute); }

.flow blockquote {
  margin: 1em 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  border-radius: 0 16px 16px 0;
  background: rgba(214, 40, 48, 0.06);
}

.flow aside {
  margin: 1em 0;
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  background: rgba(12, 111, 130, 0.06);
}

.flow strong { color: var(--red); }

/* ---------- footer ---------- */
.foot {
  margin-top: 30px;
  padding: 34px 20px 118px;
  border-top: 1.5px solid var(--line);
  background: rgba(255, 253, 249, 0.76);
}

.foot-top {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
}

.megabrand {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.foot-col h2 {
  margin: 0 0 10px;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--teal);
}

address {
  font-style: normal;
  display: grid;
  gap: 6px;
  color: var(--mute);
  font-size: 1rem;
}

.addr-kw { font-family: 'Fira Code', monospace; letter-spacing: 0.1em; }

.foot-list { display: grid; gap: 2px; }

.foot-list a, .top-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.foot-list a:hover, .top-list a:hover { color: var(--red); border-color: currentColor; }

.foot-bottom {
  max-width: 1140px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copy { margin: 0; font-size: 1rem; color: var(--mute); }

.top-list a {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

/* ---------- dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1.5px solid var(--line);
  background: rgba(248, 243, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
  background: linear-gradient(140deg, var(--red), var(--teal));
}

.dock-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 340px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper2);
}

.dock-search:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.menu-switch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--paper2);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.menu-switch:checked ~ .menu-btn {
  background: var(--red);
  border-color: var(--red);
}

.menu-btn .lbl { pointer-events: none; }

.dock-nav { display: none; }

.menu-switch:checked ~ .dock-nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 16px 18px 40px;
  overflow-y: auto;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(38, 23, 24, 0.12) 1px, transparent 1.3px);
  background-size: 20px 20px;
}

.nav-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper2);
  cursor: pointer;
}

.dock-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.dock-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 18px;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--paper2);
}

.dock-list a:hover { border-color: var(--red); color: var(--red); }

.menu-switch:checked ~ .dock-nav .dock-list li { animation: pop 0.36s ease both; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(1) { animation-delay: 0.03s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(2) { animation-delay: 0.07s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(3) { animation-delay: 0.11s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(4) { animation-delay: 0.15s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(5) { animation-delay: 0.19s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(6) { animation-delay: 0.23s; }
.menu-switch:checked ~ .dock-nav .dock-list li:nth-child(7) { animation-delay: 0.27s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0ms);
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .rail { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 42vh; }
  .shot { width: 34%; opacity: 0.9; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .shell { padding-left: 14px; padding-right: 14px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .foot-top { grid-template-columns: 1fr; gap: 20px; }
  .megabrand { font-size: clamp(2rem, 13vw, 3rem); }
  .dock { gap: 8px; padding: 10px 12px; }
  .brand { font-size: 1rem; }
  .dock-search { max-width: none; }
  .flow > section:not(.hero) { padding: 20px 16px 16px 18px; }
  .shot { width: 36%; }
  .shot.one { left: 2%; top: 5%; }
  .shot.two { right: 2%; bottom: 5%; }
  .hero-copy { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .menu-switch:checked ~ .dock-nav .dock-list li { animation: none; }
  .shot { transform: none; }
  .shot.one { transform: rotate(-4deg); }
  .shot.two { transform: rotate(5deg); }
}

button[aria-expanded]{min-width:44px;min-height:44px}
