:root {
  --bg: #F7F8F8;
  --white: #FFFFFF;
  --ink: #12181B;
  --muted: #5B6A6E;
  --line: #DCE3E3;
  --tide: #1D6B73;
  --deep: #0E2B33;
  --brass: #D8A31E;
  --error: #B3261E;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: 1.04; letter-spacing: -0.015em; }
h3 { font: 600 1.1rem/1.3 var(--sans); }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(247,248,248,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: -0.01em; }
header nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
header nav a { text-decoration: none; font-size: .97rem; color: var(--muted); }
header nav a:hover { color: var(--ink); }
header nav a.pill { color: var(--ink); border: 1.5px solid var(--ink); padding: .4rem 1.1rem; border-radius: 999px; font-weight: 500; transition: background .2s, color .2s; }
header nav a.pill:hover { background: var(--ink); color: #fff; }

/* Buttons and links */
.btn { display: inline-block; background: var(--ink); color: #fff; font: 600 1rem var(--sans); padding: .9rem 1.6rem; border-radius: var(--r); border: 0; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--tide); }
.btn.light { background: #fff; color: var(--deep); }
.btn.light:hover { background: var(--brass); }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); text-decoration-thickness: 2px; font-weight: 500; }
.link:hover { text-decoration-color: var(--tide); }

/* Hero */
.hero { padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.8rem, 7.6vw, 6.2rem); max-width: 15ch; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { max-width: 56ch; margin: 1.75rem 0 2.25rem; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 2.5rem; margin: clamp(3.5rem, 8vw, 6rem) 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 1.25rem 0; }
.facts dt { font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.facts dd { margin: 0; font-weight: 500; max-width: 26ch; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
section.alt { background: var(--white); border-block: 1px solid var(--line); }
.head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.head p { color: var(--muted); margin-top: 1.1rem; max-width: 46ch; }
#brands .head { margin-bottom: 2.5rem; }

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.rules h3 { margin-bottom: .4rem; }
.rules p { color: var(--muted); max-width: 48ch; }

.channels li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.tag { flex-shrink: 0; font-size: .88rem; font-weight: 500; color: var(--tide); border: 1.5px solid var(--tide); border-radius: 999px; padding: .15rem .8rem; margin-top: .1rem; }
@media (max-width: 540px) { .channels li { flex-direction: column; gap: .8rem; } }

/* Brands */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.trio div { border-left: 2px solid var(--tide); padding-left: 1.4rem; }
.trio h3 { margin-bottom: .5rem; }
.trio p { color: var(--muted); }

/* Contact */
section.dark { background: var(--deep); color: #fff; }
.dark .head p { color: #B9CDCC; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.details { margin: 2.5rem 0 0; }
.details dt { font-size: .9rem; color: #9DB5B4; margin-top: 1.4rem; }
.details dd { margin: .2rem 0 0; }
.details a { text-decoration: underline; text-underline-offset: 4px; }
form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: clamp(1.4rem, 4vw, 2.4rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
label .opt { color: #9DB5B4; font-weight: 400; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: #fff; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--r); padding: .8rem .9rem; transition: border-color .15s, background .15s; }
select option { color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(216,163,30,.25); }
.err { display: none; color: #FFB4AB; font-size: .88rem; margin-top: .3rem; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FFB4AB; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.foot small { color: #B9CDCC; max-width: 34ch; line-height: 1.45; }
.foot small a { text-decoration: underline; }
.status { display: none; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--r); font-weight: 500; }
.status.ok { display: block; background: #E2F1EA; color: #14513A; }
.status.fail { display: block; background: #FBE9E7; color: #7A1913; }

/* Footer */
footer.site { padding: 2.25rem 0; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.legal { display: flex; flex-direction: column; gap: .15rem; }
.legal strong { color: var(--ink); font-weight: 600; }
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
[hidden] { display: none !important; }

/* Simple text pages (privacy, 404) */
.doc { padding: clamp(3rem, 8vw, 6rem) 0; }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1.5rem; }
.doc h2 { font: 600 1.25rem var(--sans); margin: 2.25rem 0 .5rem; letter-spacing: 0; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2rem; }
.doc a { color: var(--tide); }

.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); background: var(--white); border-bottom: 2px solid var(--ink); }
.tablewrap { overflow-x: auto; margin: 0 -.25rem; }
.tablewrap table { min-width: 620px; }
.doc .summary { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--tide); border-radius: var(--r); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.doc .summary ul { margin: .5rem 0 0; }
.doc .toc { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.doc .meta { font-size: .95rem; }
.doc h2 { scroll-margin-top: 5rem; }
@media (max-width: 600px) { .doc .toc { columns: 1; } }

/* Responsive */
@media (max-width: 960px) {
  .trio { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 800px) {
  .hide-sm { display: none; }
  .split, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
}
