/* =========================================================
   Tommkraft — site styles
   Colours match the channel's blue intro background:
   blue-black #0B0F19 glowing up to #1F3A6A, manila accents.
   ========================================================= */

:root {
  --night: #0B0F19;
  --night-raised: rgba(18, 27, 46, 0.62);
  --glow: #1F3A6A;
  --line: rgba(160, 185, 230, 0.12);
  --line-warm: rgba(224, 196, 143, 0.38);
  --manila: #E0C48F;
  --kraft: #C8964F;
  --bone: #EFE9DE;
  --mist: #98A4BC;

  --font-display: "Instrument Serif", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mark: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(2.25rem, 1.5rem + 2.8vw, 3.25rem);
  --step-3: clamp(3rem, 1.8rem + 4.6vw, 5rem);
  --step-4: clamp(3.5rem, 1.4rem + 8.4vw, 8.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Fine film grain. Procedural SVG noise, no images. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.9 0 0 0 0 1 0 0 0 0.075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Floating dust, echoing the particles in the intro. */
  --dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg fill='%23D6E2FF'%3E%3Ccircle cx='38' cy='62' r='1.1' opacity='.45'/%3E%3Ccircle cx='121' cy='18' r='.7' opacity='.35'/%3E%3Ccircle cx='190' cy='140' r='1.6' opacity='.22'/%3E%3Ccircle cx='260' cy='44' r='.8' opacity='.5'/%3E%3Ccircle cx='331' cy='112' r='1.2' opacity='.3'/%3E%3Ccircle cx='402' cy='31' r='.6' opacity='.45'/%3E%3Ccircle cx='478' cy='96' r='1.4' opacity='.25'/%3E%3Ccircle cx='72' cy='211' r='.7' opacity='.4'/%3E%3Ccircle cx='150' cy='268' r='1' opacity='.3'/%3E%3Ccircle cx='238' cy='231' r='.6' opacity='.55'/%3E%3Ccircle cx='309' cy='296' r='1.8' opacity='.16'/%3E%3Ccircle cx='388' cy='219' r='.9' opacity='.4'/%3E%3Ccircle cx='463' cy='262' r='.7' opacity='.35'/%3E%3Ccircle cx='24' cy='348' r='1.3' opacity='.25'/%3E%3Ccircle cx='101' cy='401' r='.6' opacity='.5'/%3E%3Ccircle cx='183' cy='362' r='.9' opacity='.35'/%3E%3Ccircle cx='269' cy='428' r='1.2' opacity='.28'/%3E%3Ccircle cx='347' cy='381' r='.7' opacity='.45'/%3E%3Ccircle cx='421' cy='446' r='1.5' opacity='.2'/%3E%3Ccircle cx='497' cy='371' r='.8' opacity='.4'/%3E%3Ccircle cx='58' cy='489' r='.9' opacity='.3'/%3E%3Ccircle cx='212' cy='502' r='.6' opacity='.45'/%3E%3Ccircle cx='371' cy='507' r='1' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
  scroll-padding-top: 40px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grain);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* The page-wide gradient: blue glow at the edges, darker centre for the text,
   vignette at the corners. Same light logic as the intro background. */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    var(--dust),
    radial-gradient(ellipse 50% 45% at 50% 46%, rgba(11, 15, 25, 0.75), transparent 75%),
    radial-gradient(ellipse 55% 50% at 18% 22%, rgba(40, 74, 135, 0.85), transparent 70%),
    radial-gradient(ellipse 50% 55% at 86% 78%, rgba(31, 58, 106, 0.9), transparent 70%),
    radial-gradient(ellipse 40% 35% at 82% 14%, rgba(31, 58, 106, 0.45), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(4, 6, 12, 0.85) 100%),
    var(--night);
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 48s ease-in-out infinite alternate; }
}

@keyframes drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

main { flex: 1; }

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

a { color: inherit; }

p { margin: 0 0 1em; }

::selection { background: var(--manila); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--manila);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.6em 1em;
  border-radius: 999px;
  background: var(--manila);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.wordmark {
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--manila);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--manila);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover { color: var(--manila); }
.nav a:hover::after,
.nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--manila); }

/* ---------- Type ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--bone);
  text-wrap: balance;
}

.display--xl { font-size: var(--step-4); line-height: 0.94; letter-spacing: -0.02em; }
.display--l { font-size: var(--step-3); }
.display--m { font-size: var(--step-2); line-height: 1.02; }

.lede {
  max-width: 38ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--bone);
  text-wrap: pretty;
}

.prose { max-width: var(--measure); }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75em 1.6em;
  border: 1px solid var(--manila);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.btn--solid {
  background: var(--manila);
  color: var(--night);
  box-shadow: 0 10px 30px -10px rgba(224, 196, 143, 0.45);
}
.btn--solid:hover { background: var(--bone); border-color: var(--bone); }

.btn--line {
  background: rgba(11, 15, 25, 0.35);
  border-color: rgba(224, 196, 143, 0.55);
  color: var(--manila);
}
.btn--line:hover { background: var(--manila); border-color: var(--manila); color: var(--night); }

/* ---------- Home: hero ---------- */

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - 73px), 900px);
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.hero h1 { max-width: 13ch; }

.hero .lede {
  margin: 2rem auto 0;
  max-width: 40ch;
  color: var(--bone);
}

.hero__note {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  color: var(--mist);
  text-wrap: pretty;
}

.hero .actions { justify-content: center; }

/* One orchestrated moment: the hero settles into focus on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lede,
  .hero__note,
  .hero .actions {
    animation: focus-in 1.1s var(--ease) both;
  }
  .hero .lede { animation-delay: 0.16s; }
  .hero__note { animation-delay: 0.26s; }
  .hero .actions { animation-delay: 0.36s; }
}

@keyframes focus-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.section__head { max-width: 46ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head p { margin: 1.1rem 0 0; color: var(--mist); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Videos ---------- */

.video-group + .video-group { margin-top: clamp(3rem, 7vw, 4.5rem); }

.group-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--manila);
}

.video-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-grid--long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid--short { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.vcard__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #05070C;
  box-shadow: 0 30px 70px -35px rgba(31, 58, 106, 0.95);
}

.vcard--short .vcard__frame { aspect-ratio: 9 / 16; }

.vcard__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.vcard__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
  filter: saturate(0.92) brightness(0.92);
}

.vcard__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.55), transparent 45%);
  pointer-events: none;
}

.vcard__icon {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(224, 196, 143, 0.92);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease), background-color 0.2s ease;
}

.vcard__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--night);
}

.vcard--short .vcard__icon { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.vcard--short .vcard__icon::before { margin: -8px 0 0 -5px; border-width: 8px 0 8px 14px; }

.vcard__play:hover img,
.vcard__play:focus-visible img { transform: scale(1.04); filter: none; }
.vcard__play:hover .vcard__icon,
.vcard__play:focus-visible .vcard__icon { transform: scale(1.08); background: var(--bone); }
.vcard__play:focus-visible { outline: 2px solid var(--manila); outline-offset: -2px; }

.vcard__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.vcard__title {
  margin: 0.9rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: pretty;
}

.vcard--short .vcard__title { font-size: 0.975rem; }

.vcard__title a { color: var(--bone); text-decoration: none; transition: color 0.2s ease; }
.vcard__title a:hover { color: var(--manila); }

#videos .actions { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Contact ---------- */
.email-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.email-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 3.8vw, 3.75rem);
  font-style: italic;
  line-height: 1.1;
  color: var(--manila);
  text-decoration: underline;
  text-decoration-color: var(--line-warm);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.email-big:hover { color: var(--bone); text-decoration-color: var(--bone); }

.copy-btn { min-height: 44px; padding: 0.55em 1.25em; font-size: 0.95rem; }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 17, 0.55);
  font-size: 0.975rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  gap: 2rem 3.5rem;
  padding-block: 3rem 2.5rem;
}

.site-footer .wordmark { font-size: 1.05rem; }
.site-footer .tagline { margin: 0.8rem 0 0; color: var(--mist); }

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }

.site-footer a { color: var(--mist); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--manila); }

.site-footer .legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--mist);
}

/* ---------- 404 ---------- */

.lost { padding-block: clamp(5rem, 14vw, 10rem); }
.lost .lede { margin-top: 1.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .video-grid--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .site-header .wrap { min-height: 64px; }
  .wordmark { font-size: 1rem; letter-spacing: 0.06em; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 0.975rem; }
  .hero .wrap { min-height: calc(100svh - 65px); padding-block: 3rem 4rem; }
  .actions .btn { flex: 1 1 auto; }
  .hero .actions { width: 100%; }
  .video-grid--long { grid-template-columns: 1fr; }
  .vcard__frame { border-radius: 10px; }
  .group-title { font-size: 1.75rem; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 0.92rem; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.93rem; }
}
