:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e4e4e4;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* Optional: enables smooth scroll without JS */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.case-copy ul {
  margin: 8px 0 0;
  padding-left: 20px; /* controls indent */
}

.case-copy li {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-box {
  width: 189px;
  height: 24px;
  background: url("../images/logo2.svg") center/cover no-repeat;
  border-radius: 4px;
}

.logo-text {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav a {
  margin-left: 24px;
  font-size: 14px;
  text-decoration: none;
  color: #111;
}

.main-nav a:hover {
  color: #111;
  text-decoration: underline #27FB6B;
  text-decoration-thickness: 4px;
}


/* Header layout */


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
}

/* Burger button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile */
@media (max-width: 500px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(70% + 10px);
    right: 0;
    width: 180px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 1000;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 4px 0;
  }

  /* Animate burger into X */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero */

./* HERO */
.hero {
  padding-top: clamp(96px, 10vw, 150px);   /* MORE space at top */
  padding-bottom: clamp(18px, 3vw, 34px);  /* LESS space at bottom */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #dddddd 0%,
    #dddddd 15%,
    rgba(246, 246, 246, 0) 90%
  );
  z-index: -1;
}


.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 12px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}



.hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 21ch;
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-subtitle {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--muted, #666);
  max-width: 68ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Buttons (safe defaults) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border, #e4e4e4);
  text-decoration: none;
  color: var(--text, #111);
  background: var(--bg, #fff);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--text, #111);
}

.btn-ghost {
  background: transparent;
}



/* FEATURED CASE STUDY */

.featured-case {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.featured-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .featured-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.featured-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}

.featured-summary {
  margin: 0 0 18px;
  max-width: 60ch;
  color: var(--muted);
}

.featured-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.featured-meta strong {
  color: var(--text);
}

.featured-cta {
  margin-top: 6px;
}

/* Visual */
.featured-visual {
  position: relative;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    #f5f5f5,
    #ededed
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   Shared hover elevation for project cards
   ========================================= */

/* Base state (no shadow) */
.visual-placeholder,
.work-card{
  transition: box-shadow 0.25s ease;
}

/* Featured case image hover */
.featured-image-link:hover .visual-placeholder{
  box-shadow: 0 4px 20px rgba(0,0,0,0.50);
}

.featured-image-link:hover .visual-placeholder,
.work-card:hover{
  border-color: rgba(0,0,0,0.15);
}

/* Grid case study hover */
.work-image:hover{
  box-shadow: 0 4px 20px rgba(0,0,0,0.50);
}

/* Optional: slightly tighter shadow on mobile */
@media (max-width: 768px){
  .featured-image-link:hover .visual-placeholder,
  .work-card:hover{
    box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  }
}


/* =========================================
   Featured thumbnail: match work-grid thumbs
   ========================================= */

/* 1) Make the featured image wrapper behave like a thumbnail */
.featured-visual .visual-placeholder{
  width: 100%;
  aspect-ratio: 16 / 10;     /* match your work card thumb ratio */
  overflow: hidden;
  border-radius: 6px;       /* match your card radius if different */
  border: 1px solid var(--border);
  background: #fff;
}

/* 2) Force the image to fill the box like the grid thumbs */
.featured-visual .visual-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) (Optional) Ensure featured layout aligns with your site container */
.featured-case .container.featured-inner{
  max-width: 1120px;         /* adjust if your .container uses a different max */
  margin: 0 auto;
}
 

/* Give the featured image a bit more real estate on desktop */
@media (min-width: 900px){
  .featured-inner{
    display: grid;
    grid-template-columns: 1fr 1fr;  /* equal columns */
    gap: 32px;
    align-items: center;
  }
}




/* CASE STUDY PAGE */
.feature-hero {
  padding-top: clamp(70px, 8vw, 0px);
  padding-bottom: clamp(36px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #f5f5f5 0%, #f5f5f5 52%, rgba(245,245,245,0) 100%);
}

.case-hero {
  padding-top: 0;
  padding-bottom: clamp(36px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #f5f5f5 0%, #f5f5f5 52%, rgba(245,245,245,0) 100%);
}

.case-hero-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .case-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.case-back {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.case-back:hover { color: var(--text); }

.case-title {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.case-subtitle {
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--muted);
}

.case-pillrow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.case-hero-visual .visual-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #f5f5f5, #ededed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.case-section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.case-h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.case-h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.case-p {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.case-p + .case-p { margin-top: 12px; }

.case-p-small {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Layout grids */
.case-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 900px) {
  .case-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
  }
}

.case-grid-2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .case-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.case-aside {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.case-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

.callouts {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .callouts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.callout {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.callout-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* Process */
.process-steps {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.step {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

/* Decisions */
.decision-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .decision-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.decision {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

/* Outcomes */
.outcome-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Next */
.case-next {
  border-top: 1px solid var(--border);
}

.next-inner {
  display: grid;
  gap: 16px;
  align-items: center;
}

@media (min-width: 900px) {
  .next-inner {
    grid-template-columns: 0.35fr 0.65fr;
    gap: 24px;
  }
}

.next-card {
  padding: 18px;
}


/* New subtle scroll cue (replaces big button) */
.scroll-cue {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  color: #cfcfcf;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.scroll-cue:hover {
  color: #ffffff;
  text-decoration: underline #27FB6B;
  text-decoration-thickness: 3px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1;
}

.btn-primary {
  background: #00999e;
  color: #fff;
}

.btn-primary:hover {
  background: #00b2b8;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #000;
  border: 2px solid #00999e;
}

/* Work grid */

.section-work {
  border-top: 1px solid var(--border);
}

.section-work .section-header {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-work .section-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-work .section-header p {
  margin: 0;
  color: #666;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-link {
  color: inherit;
  text-decoration: none;
}

.work-image {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.work-meta {
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.work-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.work-description {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}


.cs-hero-imagewrap {
  margin-top: 18px;
}

.cs-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.case-image-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .case-image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-image-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}


.maillink {
  font-size: 16px;
  font-weight: 600;
  color: #00999e;
}
 


/* About / services */

.section-about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.about-grid h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.about-grid p {
  margin-top: 0;
  color: #666;
  font-size: 14px;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.services-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.services-list p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* Contact CTA */

.section-contact {
  border-top: 1px solid var(--border);
  text-align: center;
  background-color: #111111;
}

.contact-inner {
  max-width: 520px;
}

.section-contact h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-contact p {
  margin: 0 0 24px;
  color: #999;
  font-size: 14px;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  font-size: 12px;
  background-color: #222;
  color: #999;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-center a {
  height: 26px;
  width: 100px;
  background: url("../images/linkedin.png") center/cover no-repeat;
}

/* Case study */

.case-body {
  background: #fff;
}

.case-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.case-header-inner {
  padding: 12px 20px;
}

.back-link {
  font-size: 13px;
  text-decoration: none;
  color: #666;
}

.case-main {
  padding: 40px 0 80px;
}

.case-hero-image {
   width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.case-intro-left h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.case-lead {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
}

.case-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.case-details {
  margin: 0;
}

.case-details div + div {
  margin-top: 16px;
}

.case-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.case-details dd {
  margin: 2px 0 0;
  font-size: 14px;
}

.case-copy {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.case-copy article + article {
  margin-top: 24px;
}

.case-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.case-copy p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.case-gallery {
  padding-top: 0px;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.case-gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.case-gallery-grid img:first-child {
  grid-column: 1 / -1;
}

/* 🔹 STN Sports custom gallery layout
   1) First item full-width
   2) Two middle items side-by-side
   3) Last item full-width
   Only applies when you add "stn-layout" to the grid container.
*/
.case-gallery-grid.stn-layout > * {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* Full-width for first & last items */
.case-gallery-grid.stn-layout > *:first-child,
.case-gallery-grid.stn-layout > *:last-child {
  grid-column: 1 / -1;
}

/* Middle two sit naturally side-by-side in 2-column grid */
.case-gallery-grid.stn-layout > *:nth-child(2),
.case-gallery-grid.stn-layout > *:nth-child(3) {
  grid-column: auto;
}

/* Make sure the video visually matches the images */
.case-gallery-grid.stn-layout video {
  height: 100%;
}

/* Full-width stacked images */

.full-width-images {
  display: flex;
  flex-direction: column;
}

.full-width-images img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 80vh;
  border-radius: 4px;
}

.full-width-images img + img {
  margin-top: 24px;
}

.case-footer-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive */

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6px 0 6px;
  }

.hero-inner {
  padding: 34px 20px;}

  .case-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-main {
    padding-top: 24px;
  }

  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
}
