/* Agent Baltic — built from Brand System V1 (light-first, amber accent). */
:root {
  --black: #1a1a1a;
  --amber: #e3a945;
  --teal: #2a9e76;
  --violet: #7a2eac;
  --rust: #b85c1a;
  --slate: #4a5568;
  --cream: #f7f5f0;
  --soft: #eeeeec;
  --warm: #e9e4d9;
  --white: #ffffff;
  --line: #e3e0d8;
  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--black);
  background: var(--white);
  border-top: 6px solid var(--amber);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 10; }

/* Type scale */
h1, h2, h3 { margin: 0; color: var(--black); }
.display { font-weight: 900; font-size: clamp(2.4rem, 6.2vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.98; }
h1, .h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; }
h2, .h2 { font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.025em; line-height: 1.1; }
h3, .h3 { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.25; }
.amber { color: var(--amber); }
.eyebrow {
  margin: 0 0 14px;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); max-width: 40em; margin: 20px 0 0; }
.meta { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--slate); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.wordmark {
  display: inline-flex; flex-direction: column; text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700;
  font-size: 1.3rem; line-height: 0.92; letter-spacing: -0.01em;
}
.wordmark span:last-child { color: var(--amber); }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav a.btn { padding: 9px 16px; border-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.92rem; letter-spacing: 0;
  padding: 13px 22px; border-radius: 6px; border: 2px solid var(--amber);
  background: var(--amber); color: var(--black); text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: #edb95a; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.on-dark .btn.ghost { border-color: var(--white); color: var(--white); }
.on-dark .btn.ghost:hover { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.hero { padding-bottom: clamp(32px, 5vw, 56px); }
.cream { background: var(--cream); }
.warm { background: var(--warm); }
.on-dark { background: var(--black); color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lede { color: #d9d6cf; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head a { font-weight: 600; font-size: 0.92rem; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Video feed */
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: var(--soft); border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.thumb:hover img { transform: scale(1.03); }
.thumb .time {
  position: absolute; right: 10px; bottom: 10px; background: rgba(26, 26, 26, 0.88); color: var(--white);
  font-weight: 600; font-size: 0.75rem; padding: 2px 7px; border-radius: 4px;
}
.thumb .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--amber); display: grid; place-items: center; opacity: 0; transition: opacity 0.15s ease;
}
.thumb:hover .play, .thumb:focus-visible .play, .featured .thumb .play { opacity: 1; }
.thumb .play::after { content: ""; border-left: 20px solid var(--black); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

.featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.featured .thumb { border-left: 6px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; }
.featured p { color: var(--slate); margin: 14px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
.card h3 { margin-top: 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.feed-note { color: var(--slate); }
.more { margin-top: 40px; text-align: center; }

/* Player dialog */
dialog.player { width: min(960px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: var(--black); overflow: visible; }
dialog.player::backdrop { background: rgba(26, 26, 26, 0.82); }
dialog.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
dialog.player .close {
  position: absolute; top: -46px; right: 0; background: none; border: 0; color: var(--white);
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 8px 0;
}

/* About */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.prose p { margin: 0 0 1.1em; max-width: 38em; }
.prose a { font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.portrait { width: 100%; max-width: 320px; border-radius: 50%; border: 1px solid var(--line); justify-self: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.tags li { background: var(--white); border: 1.5px solid var(--black); border-radius: 999px; padding: 6px 16px; font-weight: 500; font-size: 0.88rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.panel { background: var(--white); border-left: 4px solid var(--amber); padding: 22px 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.panel p { margin: 8px 0 0; color: var(--slate); font-size: 0.95rem; }
.quote { font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.2; max-width: 24em; margin: 0; border-left: 6px solid var(--amber); padding-left: 24px; }

/* Contact form */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--black); background: var(--white);
  border: 1.5px solid #bdb9ae; border-radius: 6px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--black); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.65em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--rust); }
.aside h2 { margin-bottom: 10px; }
.aside p { color: var(--slate); margin: 0 0 22px; }
.aside a { font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 4px solid var(--amber); padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .featured, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; justify-self: start; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav a.btn { display: none; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
