/*
  Kybele Global
  Type
    Display : Cabinet Grotesk 700 (headings, wordmark), 500 (numerals)
    Text/UI : Satoshi 400 / 500 / 700
    Scale   : 13 label / 15 small / 17 body / 20 lead / 22 h3 / 40 h2 / 40-72 h1
  Color
    One brass (#c9a55c), flat. No gradients, glows or shadows.
*/
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/cabinet-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/cabinet-grotesk-700.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 400; font-display: swap; src: url(fonts/satoshi-400.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-display: swap; src: url(fonts/satoshi-500.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-display: swap; src: url(fonts/satoshi-700.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --base: #070a11;
  --surface: #0d1119;
  --text: #eeebe4;
  --muted: #a6a39b;
  --dim: #7d7b75;
  --line: rgba(238, 235, 228, 0.13);
  --brass: #c9a55c;
  --brass-hover: #d6b46e;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --radius: 8px;
  --gutter: 28px;
  --section: 104px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(201, 165, 92, 0.25); }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.1rem + 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); }

a { color: var(--text); text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brass-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.icon { width: 22px; height: 22px; flex: none; color: var(--muted); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

.skip { position: absolute; left: 12px; top: -80px; background: var(--text); color: var(--base); padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 17, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.home .site-header:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.wordmark { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.wordmark b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.16em; margin-right: -0.16em; }
.wordmark i { width: 1px; height: 20px; background: rgba(238, 235, 228, 0.35); }
.wordmark span { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.3em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 34px; font-weight: 500; font-size: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.site-nav a[aria-current='page'] { box-shadow: 0 1px 0 var(--brass); }
.site-nav a.button { color: var(--text); padding: 10px 18px; }
.menu-toggle { display: none; font: inherit; font-weight: 500; color: var(--text); background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 16px; cursor: pointer; }

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 24px;
  border: 1px solid rgba(238, 235, 228, 0.32);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.button:hover { color: var(--text); border-color: var(--text); }
.button.primary { background: var(--brass); border-color: var(--brass); color: #14100a; }
.button.primary:hover { background: var(--brass-hover); border-color: var(--brass-hover); color: #14100a; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -76px; min-height: min(78vh, 740px); display: flex; align-items: center; background: #04060b; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--base) 0%, var(--base) 28%, rgba(7, 10, 17, 0.85) 50%, rgba(7, 10, 17, 0) 72%),
    linear-gradient(180deg, rgba(7, 10, 17, 0.55) 0%, rgba(7, 10, 17, 0) 22%, rgba(7, 10, 17, 0) 76%, var(--base) 100%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 140px; padding-bottom: 88px; }
.hero h1 { max-width: 11.5em; }
.hero .lead { max-width: 27em; margin-top: 28px; color: #c4c1b9; }

/* Page head */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 88px; padding-bottom: 72px; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.75rem); }
.page-head p { max-width: 34em; margin-top: 20px; }

/* Sections */
.section { padding: var(--section) 0; }
.section.surface { background: var(--surface); }
.section.first { padding-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head a { font-weight: 500; white-space: nowrap; }

/* Numbered rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: row; }
.rows > li { counter-increment: row; display: grid; grid-template-columns: 72px 5fr 6fr; gap: 12px 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows > li::before { content: counter(row, decimal-leading-zero); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--brass); }
.rows h3 { font-size: 1.75rem; }
.rows p { color: var(--muted); max-width: 36em; }
.rows .includes { margin-top: 14px; font-size: 0.95rem; color: var(--dim); }
.rows.plain > li::before { content: none; }
.rows.plain > li { grid-template-columns: 4fr 8fr; padding: 26px 0; }
.rows.plain h3 { font-size: 1.375rem; }
.after-rows { margin-top: 28px; color: var(--muted); }
.note { margin-top: 22px; font-size: 0.9rem; color: var(--dim); max-width: 60em; }

/* Feature: text beside a photograph */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feature h2 { margin-bottom: 22px; }
.feature p { color: var(--muted); max-width: 33em; }
.feature .button { margin-top: 30px; }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.photo.tall img { aspect-ratio: 4 / 5; }

/* Inspection table */
.spec { margin-top: 80px; }
.spec h3 { margin-bottom: 20px; }
.spec table { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-bottom: 12px; border-bottom-color: rgba(238, 235, 228, 0.3); }
.spec tbody th { font-weight: 700; width: 28%; }
.spec td { color: var(--muted); }

/* Port band: photograph only */
.band { height: 460px; background: #04060b url(img/port.jpg) 62% 46% / cover no-repeat; position: relative; }
.band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--surface) 0, rgba(13, 17, 25, 0) 90px, rgba(7, 10, 17, 0) calc(100% - 90px), var(--base) 100%); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid rgba(238, 235, 228, 0.3); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--brass); margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Two-column prose */
.columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
.prose-blocks > div + div { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose-blocks h3 { margin-bottom: 12px; }
.prose-blocks p { color: var(--muted); max-width: 38em; }

/* Details list */
.details { margin: 0; border-top: 1px solid var(--line); }
.details .row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.details .icon { margin-top: 3px; }
.details dt { font-size: 0.875rem; color: var(--dim); }
.details dd { margin: 0; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }

/* CTA */
.cta { border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 88px; padding-bottom: 88px; }
.cta p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }

/* Form */
.form .field { margin-bottom: 20px; }
.form .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.form label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid rgba(238, 235, 228, 0.22); border-radius: var(--radius); padding: 13px 15px; transition: border-color 0.2s ease; }
.form textarea { resize: vertical; line-height: 1.5; min-height: 150px; }
.form ::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brass); }
.form-note { font-size: 0.875rem; color: var(--dim); margin-top: 14px; }

/* Legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 2.2em 0 0.6em; scroll-margin-top: 100px; }
.prose p, .prose li { color: #c4c1b9; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #05070c; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.site-footer strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 20px; font-size: 0.875rem; color: var(--dim); }

/* Motion: one settle on the hero image, one reveal per section */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes settle { from { transform: scale(1.04); } }

@media (max-width: 1000px) {
  :root { --section: 76px; }
  .rows > li { grid-template-columns: 56px minmax(0, 1fr); }
  .rows > li > p, .rows > li > div { grid-column: 2; }
  .rows.plain > li { grid-template-columns: minmax(0, 1fr); }
  .rows.plain > li > p { grid-column: 1; }
  .feature, .feature.flip, .columns { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .columns { gap: 28px; }
  .feature.flip .photo { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { height: 320px; }
  .spec { margin-top: 56px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--base); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current='page'] { box-shadow: none; }
  .site-nav a.button { margin-top: 16px; text-align: center; border: 1px solid rgba(238, 235, 228, 0.32); }
  .home .site-header:not(.scrolled) { background: rgba(7, 10, 17, 0.86); }
  .hero { display: block; min-height: 0; margin-top: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 44px; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; order: 2; }
  .hero-media::after { background: linear-gradient(180deg, var(--base) 0, rgba(7, 10, 17, 0) 28%, rgba(7, 10, 17, 0) 80%, var(--base) 100%); }
  .hero-media img { object-position: 88% 50%; }
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .band { height: 240px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .form .pair { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .spec tbody th { width: 38%; }
  .actions .button { flex: 1 1 auto; text-align: center; }
  .page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
}
