:root {
  --fog: #e6eef1;
  --paper: #f6f3ee;
  --ink: #142026;
  --slate: #3d515b;
  --copper: #c4622d;
  --line: #c5d2d7;
  --deep: #10181c;
  --display: "Syne", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.top {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  color: var(--paper);
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand svg { display: block; }
.top nav { display: flex; gap: 6px; }
.top a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}
.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.topo path {
  fill: none;
  stroke: rgba(246, 243, 238, 0.72);
  stroke-width: 1.2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
}
.topo path:nth-child(2) { animation-delay: 0.25s; stroke: rgba(196, 98, 45, 0.9); }
.topo path:nth-child(3) { animation-delay: 0.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 90px 28px 36px;
  background: linear-gradient(90deg, rgba(16, 24, 28, 0.78) 0%, rgba(16, 24, 28, 0.2) 58%, transparent 100%);
}
.coords {
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: #f0c2a4;
  margin: 0 0 12px;
}
h1 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.05em;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.8;
  margin: 0;
  max-width: 8ch;
}
.sub {
  max-width: 36ch;
  font-size: 18px;
  margin: 18px 0 0;
}
.hero-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  min-height: 48px;
  padding: 0 20px;
  background: var(--copper);
  color: #fff;
  border: 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}
.btn:hover { background: #a34e22; }
.btn.line { background: transparent; color: var(--paper); border: 1px solid rgba(246, 243, 238, 0.6); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.lat {
  margin-left: auto;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.sheet { padding: 72px 28px; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
h2 {
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}
.sheet-head p { max-width: 36ch; margin: 0; color: var(--slate); }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}
.rail img { width: 100%; height: 520px; object-fit: cover; }
.panel {
  border-top: 3px solid var(--copper);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}
.panel h3 {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.meta span { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.meta strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }

.log {
  background: var(--deep);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.log article { padding: 36px 28px; border-right: 1px solid #243038; }
.log article:last-child { border-right: 0; }
.log em { font-family: var(--display); font-style: normal; font-size: 48px; letter-spacing: -0.05em; display: block; }
.log span { color: #b7c6cc; }

.commission {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 72px 28px;
}
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
input, textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 12px 0;
  min-height: 44px;
  border-radius: 0;
}
textarea { min-height: 90px; resize: vertical; }
.thanks { font-family: var(--display); font-size: 32px; letter-spacing: -0.04em; line-height: 1.1; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 32px;
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero-copy { background: linear-gradient(180deg, rgba(16, 24, 28, 0.2), rgba(16, 24, 28, 0.82)); }
  .rail, .log, .commission, .sheet-head { grid-template-columns: 1fr; display: grid; }
  .log article { border-right: 0; border-bottom: 1px solid #243038; }
  .rail img { height: 62vw; min-height: 220px; }
  .lat { margin-left: 0; }
  .sheet, .commission, footer { padding-left: 16px; padding-right: 16px; }
  .top { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .topo path { stroke-dashoffset: 0; }
  .hero-photo { transform: none; }
  html { scroll-behavior: auto; }
}
