/* ==========================================================================
   Sauna Media — premium corporate site
   Palette: charcoal / near-black / warm white / copper / light grey
   ========================================================================== */

:root {
  --charcoal: #111820;
  --near-black: #0B1016;
  --warm-white: #F7F5F1;
  --copper: #D88952;
  --copper-deep: #C2763F;
  --light-grey: #E7EAED;
  --text-grey: #77828D;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--copper); color: #fff; }

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

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* Typography -------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.display {
  font-size: clamp(2.4rem, 6.2vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-grey);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-bottom: 16px; }
.section-head p {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-grey);
  text-wrap: pretty;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-deep); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: .85;
}
.btn--ghost:hover { opacity: 1; background: rgba(255,255,255,.06); }
.btn--dark { background: var(--charcoal); color: var(--warm-white); }
.btn--dark:hover { background: var(--near-black); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--light-grey);
  background: rgba(247, 245, 241, .94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.logo-mark svg { width: 100%; height: 100%; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .925rem;
  font-weight: 600;
  color: var(--text-grey);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--charcoal); background: rgba(17,24,32,.05); }

.header-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(17,24,32,.06);
  flex-shrink: 0;
}
.lang a, .lang span {
  display: block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text-grey);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang a:hover { color: var(--charcoal); }
.lang [aria-current="true"] {
  background: var(--charcoal);
  color: var(--warm-white);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 19px;
  height: 1.8px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--light-grey);
  background: var(--warm-white);
  padding: 12px var(--gutter) 28px;
}
.mobile-panel[data-open="true"] { display: block; }
.mobile-panel a {
  display: block;
  padding: 15px 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--light-grey);
}
.mobile-panel a:last-child { border-bottom: 0; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--near-black);
  color: var(--warm-white);
  overflow: hidden;
  isolation: isolate;
}
.hero-graphic {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
}
.hero-graphic svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 420px at 78% 18%, rgba(216,137,82,.16), transparent 70%),
    linear-gradient(180deg, rgba(11,16,22,.2) 0%, rgba(11,16,22,.75) 100%);
  pointer-events: none;
}
.hero-inner {
  padding-block: clamp(88px, 13vw, 168px) clamp(72px, 10vw, 132px);
  max-width: 860px;
}
.hero .eyebrow { color: var(--copper); }
.hero .display { margin-bottom: 28px; }
.hero .lede {
  color: rgba(247,245,241,.72);
  margin-bottom: 40px;
  max-width: 58ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--ghost { color: var(--warm-white); }

/* Meta strip under hero */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  padding-block: 34px;
  border-top: 1px solid rgba(247,245,241,.12);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,245,241,.45);
  margin-bottom: 6px;
}
.hero-meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(247,245,241,.92);
}

/* Network grid ------------------------------------------------------------ */
.network { background: var(--warm-white); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.site-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  box-shadow: 0 1px 2px rgba(17,24,32,.03);
}
.site-card:hover,
.site-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(216,137,82,.45);
  box-shadow: 0 18px 40px -18px rgba(17,24,32,.28);
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .55s var(--ease);
}
.site-card:hover .shot img,
.site-card:focus-within .shot img { transform: scale(1.035); }

.shot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,16,22,.16) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-card:hover .shot-overlay { opacity: 1; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  gap: 10px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--light-grey);
  padding: 5px;
  display: grid;
  place-items: center;
}
.card-logo img { width: 100%; height: 100%; object-fit: contain; }

.card-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.card-domain {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-grey);
  letter-spacing: .01em;
}

.card-cat {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper-deep);
  background: rgba(216,137,82,.11);
  border-radius: 5px;
  padding: 4px 9px;
}

.card-desc {
  font-size: .925rem;
  line-height: 1.6;
  color: var(--text-grey);
  flex: 1;
  text-wrap: pretty;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 4px;
}
.card-link .arrow {
  transition: transform .24s var(--ease);
  font-size: .95em;
}
.site-card:hover .card-link .arrow { transform: translateX(4px); }

/* Make whole card clickable while keeping one accessible link */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.site-card { position: relative; }

/* About ------------------------------------------------------------------- */
.about {
  background: var(--charcoal);
  color: var(--warm-white);
}
.about .eyebrow { color: var(--copper); }
.about .h2 { margin-bottom: 28px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-copy p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.72;
  color: rgba(247,245,241,.74);
  margin-bottom: 20px;
  text-wrap: pretty;
  max-width: 60ch;
}
.about-copy p:last-child { margin-bottom: 0; }

/* CEO card */
.ceo-card {
  position: relative;
  background: linear-gradient(160deg, #1a222c 0%, #131a22 100%);
  border: 1px solid rgba(247,245,241,.11);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
  overflow: hidden;
}
.ceo-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent 70%);
}
.ceo-initials {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--warm-white);
  background: linear-gradient(145deg, rgba(216,137,82,.9), rgba(194,118,63,.7));
  margin-bottom: 22px;
}
.ceo-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.ceo-role {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 3px;
}
.ceo-org {
  font-size: .92rem;
  color: rgba(247,245,241,.55);
  margin-bottom: 20px;
}
.ceo-bio {
  font-size: .93rem;
  line-height: 1.68;
  color: rgba(247,245,241,.66);
  padding-top: 20px;
  border-top: 1px solid rgba(247,245,241,.1);
  text-wrap: pretty;
}

/* Partnerships ------------------------------------------------------------ */
.partners {
  background: var(--near-black);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.partners::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,137,82,.15), transparent 66%);
  pointer-events: none;
}
.partners-inner {
  position: relative;
  max-width: 780px;
}
.partners .h2 { margin-bottom: 24px; }
.partners p {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
  color: rgba(247,245,241,.72);
  margin-bottom: 36px;
  max-width: 64ch;
  text-wrap: pretty;
}

/* Contact ----------------------------------------------------------------- */
.contact { background: var(--warm-white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-lead .h2 { margin-bottom: 20px; }
.contact-lead p {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-grey);
  line-height: 1.7;
  max-width: 46ch;
  text-wrap: pretty;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 1px 2px rgba(17,24,32,.03);
}
.contact-row + .contact-row {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--light-grey);
}
.contact-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-grey);
  margin-bottom: 7px;
}
.contact-value {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}
.contact-value a {
  color: var(--charcoal);
  border-bottom: 1px solid rgba(216,137,82,.5);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact-value a:hover { color: var(--copper-deep); border-color: var(--copper); }

.email-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--light-grey);
  background: var(--warm-white);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-grey);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.copy-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--warm-white); }
.copy-btn[data-copied="true"] {
  background: #1e7a4d;
  border-color: #1e7a4d;
  color: #fff;
}
.copy-btn svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--charcoal);
  color: var(--warm-white);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: .88rem;
  color: rgba(247,245,241,.5);
  line-height: 1.6;
  max-width: 26ch;
}
.footer-col h3 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,245,241,.4);
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a,
.footer-col address {
  font-size: .9rem;
  font-style: normal;
  color: rgba(247,245,241,.78);
  line-height: 1.6;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--copper); }
.footer-col address span { display: block; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(247,245,241,.1);
  font-size: .82rem;
  color: rgba(247,245,241,.4);
}

/* Reveal animation -------------------------------------------------------- */
/* Only hidden when JS is confirmed running — content is always visible otherwise. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal[data-delay="1"] { transition-delay: .07s; }
.js .reveal[data-delay="2"] { transition-delay: .14s; }
.js .reveal[data-delay="3"] { transition-delay: .21s; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-inner { min-height: 68px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 560px) {
  .hero-inner { padding-block: 64px 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 24px 32px; padding-block: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .burger, .mobile-panel, .hero-graphic, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
