/* sammathis.com — design D: dark credits, poster grid, film halation + grain */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/archivo-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/archivo-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0B0B0C;
  --text: #EDEBE7;
  --text-strong: #F5F3EF;
  --text-soft: #C9C5BE;
  --text-muted: #A9A6A0;
  --text-faint: #8E8B85;
  --line: #222224;
  --tile-border: #26262A;
  --accent: #FF6A1F;
  --accent-hover: #FF8C4D;
  --content: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #121213; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over the whole page, scrolling with the content: a small tileable, contrast-boosted noise texture (dark and light specks,
   so it reads on the dark ground and on light text alike). Normal blending only: mix-blend-mode on a
   fixed layer composites against a wrong backdrop in iOS Safari and greys out the whole page.
   The grain lifts the average page tone to about #121213; html and theme-color use that tone so
   Safari's bars (tinted from the page colour) match the grained page instead of looking darker. */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.br-mobile { display: none; }

.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--text-strong); color: var(--bg); border-radius: 6px; }

/* Header */
.site-header {
  max-width: var(--content); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 600; font-size: 28px; color: var(--text); letter-spacing: 0.02em; }
.logo:hover { color: var(--text-strong); }
.accent { color: var(--accent); }
.nav { display: flex; gap: 32px; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav a { color: var(--text-muted); padding: 10px 0; }
.nav a:hover { color: var(--text-strong); }

/* Hero: film halation on the type, faint warm light behind it */
.hero {
  background: radial-gradient(ellipse 50% 55% at 50% 50%, rgba(255, 106, 31, 0.06), rgba(255, 106, 31, 0) 70%);
}
.hero__inner {
  max-width: 1000px; margin: 0 auto; padding: 120px var(--gutter) 110px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.eyebrow {
  margin: 0; font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 8px rgba(255, 106, 31, 0.35);
}
.hero__title {
  margin: 0; font-weight: 600; font-size: clamp(46px, 9vw, 80px); line-height: 1; letter-spacing: -0.025em;
  color: var(--text-strong);
  text-shadow: 0 0 2px rgba(255, 120, 80, 0.35), 0 0 14px rgba(255, 90, 40, 0.16);
}
/* Hero intro: RGB channels converge onto all hero text, tracking markers lock onto the headline.
   Each element ends on its own resting shadow via --glow. */
.eyebrow { --glow: 0 0 8px rgba(255, 106, 31, 0.35); }
.hero__lead { --glow: 0 0 0 transparent; }
.hero__title { position: relative; --glow: 0 0 2px rgba(255, 120, 80, 0.35), 0 0 14px rgba(255, 90, 40, 0.16); }
.eyebrow, .hero__title, .hero__lead { animation: rgb-converge 1.5s 0.3s cubic-bezier(.25,.7,.25,1) both; }
.hero__title { animation-delay: 0.45s; }
.hero__lead { animation-delay: 0.6s; }
@keyframes rgb-converge {
  0% { opacity: 0; text-shadow: -14px 0 rgba(255, 106, 31, 0.85), 14px 0 rgba(255, 196, 120, 0.6); }
  25% { opacity: 1; }
  100% { text-shadow: var(--glow); }
}
.hero__dot { color: var(--accent); text-shadow: 0 0 12px rgba(255, 106, 31, 0.6); animation: dot-blink 1.1s 1.9s steps(1) infinite; }
@keyframes dot-blink { 50% { opacity: 0.15; } }
.trk {
  position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0.25;
  animation: trk-lock 1.4s cubic-bezier(.2,.8,.2,1) both, trk-drift 5s 1.9s ease-in-out infinite;
}
.trk::before, .trk::after { content: ""; position: absolute; background: var(--accent); }
.trk::before { left: 6px; top: 0; width: 2px; height: 14px; }
.trk::after { top: 6px; left: 0; width: 14px; height: 2px; }
.trk span {
  position: absolute; left: 18px; top: -2px; color: var(--accent); text-shadow: none;
  font: 500 10px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.04em;
}
.trk--tl { left: -18px; top: -14px; --dx: -30px; --dy: -30px; animation-delay: 0.3s, 1.9s; }
.trk--tr { left: calc(100% + 4px); top: -14px; --dx: 30px; --dy: -30px; animation-delay: 0.42s, 1.9s; }
.trk--bl { left: -18px; top: 100%; --dx: -30px; --dy: 30px; animation-delay: 0.54s, 1.9s; }
.trk--br { left: calc(100% + 4px); top: 100%; --dx: 30px; --dy: 30px; animation-delay: 0.66s, 1.9s; }
@keyframes trk-lock {
  0% { opacity: 0; transform: scale(2.5) translate(var(--dx), var(--dy)); }
  60% { opacity: 0.9; }
  100% { opacity: 0.25; transform: none; }
}
@keyframes trk-drift { 0%, 100% { translate: 0 0; } 50% { translate: 1px -1px; } }
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero__title, .hero__lead, .hero__dot, .trk { animation: none; }
}
.hero__lead { margin: 0; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; color: var(--text-soft); max-width: 640px; }

/* Credits grid */
.credits { max-width: var(--content); margin: 0 auto; padding: 20px var(--gutter) 120px; }
.section-label {
  margin: 0 0 48px; text-align: center; font-weight: 500; font-size: 15px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-faint);
}
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px;
}
.credit__link { display: flex; flex-direction: column; gap: 14px; text-align: center; color: inherit; height: 100%; }
a.credit__link:hover { color: inherit; }
a.credit__link:hover .tile { border-color: #4A4A50; }
a.credit__link:hover .credit__title { color: #FFFFFF; }
.tile {
  position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--tile-border); background: #18181A;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.credit__link:hover .tile { transform: scale(1.04); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
}
.grid > li:nth-child(4n+2) .tile--empty { background: #1C1A18; }
.grid > li:nth-child(4n+3) .tile--empty { background: #17191A; }
.grid > li:nth-child(4n+4) .tile--empty { background: #1A181B; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }
.tile picture { width: 100%; height: 100%; }
/* Title card for credits without a poster: reads like an opening title */
.tile--empty { background: radial-gradient(ellipse 90% 60% at 50% 45%, #232226, #141416) !important; }
.tile__card {
  position: absolute; inset: 0; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
}
.tile__client { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.tile__title {
  font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.2; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--text-strong);
  text-shadow: 0 0 2px rgba(255, 120, 80, 0.3), 0 0 12px rgba(255, 90, 40, 0.12);
}
.tile__title::after { content: ""; display: block; width: 28px; height: 1px; margin: 14px auto 0; background: var(--accent); }
.tile__year { font-size: 12px; letter-spacing: 0.18em; color: var(--text-faint); }
.badge {
  position: absolute; top: 10px; right: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; background: var(--accent); color: var(--bg); font-weight: 500;
}
.credit__meta { display: flex; flex-direction: column; gap: 4px; }
.credit__role { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.credit__title { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--text-strong); transition: color 0.2s ease; }
.credit__info { font-size: 14px; color: var(--text-muted); }

/* Contact */
.contact {
  border-top: 1px solid var(--line); max-width: 1100px; margin: 0 auto; padding: 110px var(--gutter);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, rgba(255, 106, 31, 0.06), rgba(255, 106, 31, 0) 70%);
}
.contact__title { margin: 0; font-weight: 600; font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-strong);
  text-shadow: 0 0 2px rgba(255, 120, 80, 0.35), 0 0 14px rgba(255, 90, 40, 0.16); }
.contact__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 540px; }
.contact__fallback { margin: 0; color: var(--text-soft); }
.button {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 32px;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--accent);
  font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 106, 31, 0.35);
  box-shadow: 0 0 14px rgba(255, 106, 31, 0.22), inset 0 0 10px rgba(255, 106, 31, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { background: var(--accent); color: var(--bg); text-shadow: none; box-shadow: 0 0 24px rgba(255, 106, 31, 0.45); }

/* Footer */
.site-footer {
  max-width: 1100px; margin: 0 auto; padding: 32px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center;
  font-size: 14px; color: var(--text-faint);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text-strong); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 60px var(--gutter) 100px; color: var(--text-soft); }
.legal h1 { font-weight: 600; font-size: 40px; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 32px; }
.legal h2 { font-weight: 600; font-size: 20px; color: var(--text-strong); margin: 40px 0 12px; }
.legal p, .legal li { line-height: 1.7; }
.legal address { font-style: normal; }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .br-mobile { display: inline; }
  .nav { gap: 20px; }
  .hero__inner { padding: 72px var(--gutter) 72px; }
  .credits { padding-bottom: 80px; }
  .contact { padding: 80px var(--gutter); }
  .button { padding: 0 24px; }
}
.tile--empty .badge { top: auto; bottom: 44px; right: auto; left: 50%; transform: translateX(-50%); }
