/* ============================================================
   GOATED Ads — creative studio site
   Direction: Red Antler skeleton × Anagrama editorial polish
   Type: Fraunces (display serif) + Inter (UI/body)
   ============================================================ */

:root {
  /* Palette — premium restraint, warm */
  --bone:        #f6f2ea;   /* page background */
  --bone-2:      #efe9dd;   /* alt section bg */
  --ink:         #16130e;   /* near-black warm */
  --ink-soft:    #4a4438;   /* muted text */
  --line:        #d9d1c1;   /* hairline rules */
  --brass:       #9a7b43;   /* single restrained accent */
  --brass-deep:  #7d6234;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 12px 18px;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass);
  margin: 0 0 var(--s-5);
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 380;
}
.section-head { margin-bottom: var(--s-8); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 0.42em; line-height: 1; }
.logo__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo__sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--brass);
  transform: translateY(-1px);
}

/* Logo variant B — confident grotesque */
[data-logo="b"] .logo__mark { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; }
[data-logo="b"] .logo__sub  { color: var(--ink); }

/* Logo variant C — stacked editorial */
[data-logo="c"] .logo { flex-direction: column; align-items: flex-start; gap: 2px; }
[data-logo="c"] .logo__mark { font-size: 21px; }
[data-logo="c"] .logo__sub { font-size: 9px; letter-spacing: 0.42em; }

/* Logo variant D — all caps serif */
[data-logo="d"] .logo__mark { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 500; }
[data-logo="d"] .logo__sub  { color: var(--ink); opacity: 0.55; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important; border: 1px solid var(--ink);
  padding: 9px 18px; border-radius: 100px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease) !important;
}
.nav__cta:hover { background: var(--ink); color: var(--bone) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--lg { font-size: 19px; padding: 18px 40px; }
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--brass-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 9vw, 120px); }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 360;
  max-width: 16ch;
  margin-bottom: var(--s-6);
}
.hero__title em { color: var(--brass); font-weight: 360; }
.hero__sub {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55; color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 var(--s-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- Clients ---------- */
.clients { padding: clamp(36px, 6vw, 56px) 0; background: #fff; border-block: 1px solid var(--line); }
.clients__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}
.clogo { display: flex; align-items: center; justify-content: center; }
.clogo-img {
  width: auto; display: block;
  transition: opacity 0.25s var(--ease);
}
/* Per-logo heights tuned so each wordmark's cap-height reads consistently */
.clogo-img--svr    { height: 40px; }
.clogo-img--laz    { height: 22px; }
.clogo-img--skin   { height: 38px; }
.clogo-img--talika { height: 36px; }

@media (max-width: 680px) {
  .clogo-img--svr    { height: 34px; }
  .clogo-img--laz    { height: 19px; }
  .clogo-img--skin   { height: 32px; }
  .clogo-img--talika { height: 30px; }
}

/* ---------- Work ---------- */
.work { padding: var(--s-10) 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.work-card { cursor: default; }
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bone-2);
}
.work-card__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card.has-video .work-card__video { opacity: 1; }
.work-card.has-video .work-card__poster { opacity: 0; }
.work-card__poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 60%),
    linear-gradient(145deg, var(--bone-2), color-mix(in srgb, var(--ink) 8%, var(--bone-2)));
  transition: opacity 0.5s var(--ease);
}
.work-card__brand {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 420; letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.work-card__media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 6px; pointer-events: none;
}
.work-card__play {
  position: absolute; left: 18px; bottom: 16px;
  width: 42px; height: 42px; border-radius: 100px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  color: var(--ink); font-size: 13px; padding-left: 2px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card.has-video .work-card__play { opacity: 0; }
@media (hover: hover) {
  .work-card:hover .work-card__media { transform: none; }
  .work-card:hover .work-card__play { opacity: 1; transform: translateY(0); }
}
.work-card__meta {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; padding: var(--s-4) 2px 0;
  border-top: 1px solid var(--line); margin-top: var(--s-4);
}
.work-card__name { font-family: var(--serif); font-size: 22px; font-weight: 460; }
.work-card__tag { font-size: 14px; color: var(--ink-soft); }

/* ---------- Studio ---------- */
.studio { padding: var(--s-10) 0; background: var(--bone-2); }
.studio__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.studio__body p { font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 50ch; margin: 0 0 var(--s-7); }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }
.capabilities li {
  font-size: 16px; padding-top: var(--s-3);
  border-top: 1px solid var(--line); color: var(--ink);
}

/* ---------- Contact ---------- */
.contact { padding: var(--s-10) 0; text-align: center; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 92px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 360;
  margin-bottom: var(--s-5);
}
.contact__title em { color: var(--brass); }
.contact__sub { font-size: 19px; color: var(--ink-soft); max-width: 44ch; margin: 0 auto var(--s-7); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-7) 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.footer-meta { display: flex; align-items: center; gap: var(--s-6); font-size: 14px; color: var(--ink-soft); }
.footer-meta a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .work-grid { gap: 18px; }
  .studio__inner { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { gap: var(--s-4); }
  .nav a:not(.nav__cta) { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
