:root{
  --bg:#ffffff;
  --ink:#0f1115;
  --muted:#5e636b;
  --line:#e9eaee;
  --accent:#9DFFB8;
  --accent-ink:#252b29;
  --radius:18px;
  --radius-lg:22px;
  --shadow:0 10px 28px rgba(0,0,0,.08);
  --maxw:1100px;
  --nav-h:64px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; color:var(--ink); background:var(--bg);
     font:16px/1.6 system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1{font-size:clamp(36px,7vw,72px); line-height:1.05; margin:.2em 0}
h2{font-size:clamp(24px,3.5vw,40px); margin:.2em 0 .3em}
h3{font-size:20px; margin:.2em 0 .2em}
p.lead{font-size: larger; color:var(--muted); max-width:70ch}

/* Layout */
.wrap{max-width:var(--maxw); margin:0 auto; padding:10px 20px}
.section{padding:64px 0}
.grid{display:grid; gap:28px}
.stack > * + * { margin-top: 26px; }
/* Home is stacked vertically by default (no g2 on the page) */

/* Nav (simple desktop + dropdown on small) */
.nav{position:sticky; top:0; background:rgba(255,255,255,.9); backdrop-filter:blur(8px) saturate(140%);
     border-bottom:1px solid var(--line); z-index:20}
.nav .bar{min-height:var(--nav-h); display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:inline-flex; align-items:center; gap:12px; font-weight:800}
.brand .dot{width:28px; aspect-ratio:1/1; border-radius:50%; background:var(--accent);
            box-shadow:inset 0 0 0 4px var(--accent-ink); flex:0 0 28px}

.nav__menu ul{list-style:none; margin:0; padding:0; display:flex; gap:28px}
.nav__menu a{color:#0f1115; font-weight:600; padding:10px 0}
.nav__menu a:hover{opacity:.85; text-decoration:underline}
.nav__menu a.active{font-weight:800}

.nav__toggle{display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:10px;
             background:#fff; cursor:pointer; position:relative}
.nav__burger, .nav__burger::before, .nav__burger::after{
  content:""; position:absolute; left:10px; right:10px; height:2px; background:#1b1f26;
  transition:transform .25s ease, opacity .25s ease; border-radius:2px
}
.nav__burger{top:50%; transform:translateY(-50%)}
.nav__burger::before{top:-8px}
.nav__burger::after{top:8px}
.nav.nav--open .nav__burger{transform:translateY(-50%) rotate(45deg)}
.nav.nav--open .nav__burger::before{transform:rotate(-90deg) translateX(-8px); opacity:0}
.nav.nav--open .nav__burger::after{transform:translateY(-16px) rotate(-45deg)}

@media (max-width:900px){
  .nav__toggle{display:block}
  .nav__menu{position:absolute; left:20px; right:20px; top:calc(var(--nav-h) - 6px);
             background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
             overflow:hidden; max-height:0; opacity:0; pointer-events:none; transition:max-height .25s ease, opacity .2s ease}
  .nav__menu ul{flex-direction:column; gap:0}
  .nav__menu li + li{border-top:1px solid var(--line)}
  .nav__menu a{display:block; padding:14px 14px}
  .nav.nav--open .nav__menu{max-height:360px; opacity:1; pointer-events:auto}
}
@media (min-width:901px){
  .nav__menu{position:static; border:none; box-shadow:none; max-height:none; opacity:1; pointer-events:auto}
}

/* Cards */
.card{background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:22px}
.media{aspect-ratio:16/10; border-radius:14px; overflow:hidden; background:#ffffff}

/* Chips */
.chips{display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0}
.chip{border:1px solid var(--line); padding:8px 12px; border-radius:999px; font-weight:700; background:#fff}

/* Checklist */
.check{list-style:none; padding:0; margin:12px 0 0}
.check li{position:relative; padding-left:26px; margin:6px 0}
.check li::before{content:"✓"; position:absolute; left:0; top:0; color:#0a7f62; font-weight:800}

/* Tiles grid */
.tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tile{background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden}
.tile .timg{aspect-ratio:1/1; background:#f3f5f8}
.tile .txt{padding:12px; font-weight:700}

/* CTA */
.cta{background:#0d0f13; color:#fff; padding:60px 0; margin-top:40px}
.cta h2{font-size:clamp(28px,4.5vw,44px); margin:0 0 12px}
.btn{display:inline-block; background:var(--accent); color:var(--accent-ink); font-weight:800;
     padding:12px 18px; border-radius:999px; border:2px solid var(--accent-ink)}

/* Footer */
footer{border-top:1px solid var(--line); color:#787e88}

/* Hero background layering — fixed */
.hero{
  position: relative;
  overflow: hidden;
  background:#181818;            /* fallback mint if image fails */
}
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;                     /* was -1 */
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(255,255,255,.92) 0%,
              rgba(255,255,255,.97) 42%,
              rgba(255,255,255,1) 85%);
  z-index: 1;                      /* was -1 */
  pointer-events: none;
}
.hero > .wrap{
  position: relative;
  z-index: 2;                      /* content sits above image + overlay */
}


/* Mint + Dark bands for section headers */
.band--mint{background:#c9f6e3; border-bottom:1px solid var(--line)}
.band--dark{background:#101317; color:#e9edf3; border-bottom:1px solid #1e222a}
.band--dark h1{color:#9DFFB8}

/* ---------- Marquee: flicker-free version ---------- */
.marquee{
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  isolation: isolate;                 /* keeps overlays inside */
}

/* remove the mask approach; fade with overlays instead */
.marquee::before,
.marquee::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(24px, 5vw, 72px);
  pointer-events: none;
  z-index: 2;
}
.marquee::before{
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.marquee::after{
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

.marquee__track{
  display: flex;
  width: max-content;
  will-change: transform;             /* hint the compositor */
  animation: marquee var(--marquee-duration, 30s) linear infinite;
  transform: translate3d(0,0,0);      /* force a GPU layer */
  backface-visibility: hidden;        /* Safari/WebKit stability */
}

.marquee__group{
  display: flex;
  gap: var(--marquee-gap, 36px);
  padding: 12px 0;
  flex: 0 0 auto;                     /* don’t shrink */
  white-space: nowrap;
}

.marquee__item{ font-weight: 900; letter-spacing: .5px; }
.marquee__sep{ display: inline-block; margin: 0 var(--marquee-gap, 36px); user-select: none; }

/* seamless loop: track is 200% wide (two groups);
   we translate half its width */
@keyframes marquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* nice to have: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; transform: none; }
}


/* Make images fill their .media box */
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  display: block;         /* removes any inline-gap */
  object-fit: cover;      /* fill the rectangle */
  object-position: center;/* crop from center; tweak if needed */
}
.card .media {
  width: 100%;
  height: 400px;      /* or any fixed card height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* OR 'cover' if you prefer cropping */
}

.grid .card .media {
  width: 100%;
  height: 250px;       /* ✅ consistent height for all cards */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px; /* optional, for rounded corners */
  background: #ffffff; /* optional, placeholder bg */
}

.grid .card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show whole image without cropping */
}

/* A helper for equal-height card rows */
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
@media (max-width:900px){ .grid-2 { grid-template-columns:1fr; } }

/* Make cards equal height and media consistent */
.card{ display:flex; flex-direction:column; height:100%; }
.card .media{
  height: 250px;        /* set the same height for both images */
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; border-radius:12px; background:#f8f9fa;
}
.card .media img{ width:100%; height:100%; object-fit:contain; } /* or 'cover' */
.card__title{ font-weight:700; padding-top:8px; }

/* === About page layout === */
.about-2col{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;   /* heading a bit wider */
  align-items:center;
  gap:36px;
  margin:56px 0;                        /* breathing room between rows */
}

.about-h1{
  font-size:clamp(34px, 5.4vw, 54px);
  line-height:1.08;
  letter-spacing:-0.02em;
  margin:0 0 12px;
}

.about-copy .lead{ max-width:46ch; }     /* readable line length */

.about-photo{
  border-radius:28px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.about-photo img{
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  display:block;
}

/* Video/thumb row */
.about-videos{
  display:flex; flex-wrap:wrap; gap:16px;
  margin-top:14px;
}
.about-video{
  width:110px; aspect-ratio:1/1;
  border-radius:18px; overflow:hidden;
  background:#f3f5f8; box-shadow:var(--shadow);
  display:block;
}
.about-video img{ width:100%; height:100%; object-fit:cover; }

/* Mobile: stack columns */
@media (max-width: 900px){
  .about-2col{ grid-template-columns:1fr; gap:22px; margin:36px 0; }
  .about-copy .lead{ max-width:unset; }
}

/* === YMA photo cards === */
.yma-grid{ display:grid; gap:28px; }
@media (min-width: 900px){ .yma-grid{ gap:36px; } }

.yma-card{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;                /* prevents flashes while image loads */
  isolation: isolate;              /* keeps overlay blur inside */
  aspect-ratio: 16 / 9;            /* same height for all; change if needed */
}
.yma-card .yma-photo{
  position:absolute; inset:0;
}
.yma-card .yma-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* the frosted text panel */
.yma-overlay{
  position:absolute;
  left:22px; top:22px;
  max-width: 360px;                /* width of the panel */
  padding:16px 18px;
  border-radius:18px;
  color:#0f1115;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
}
.yma-overlay h3{ margin:.1em 0 .35em; font-size:clamp(18px,2.6vw,22px); }
.yma-overlay p{ margin:0; font-size:14px; line-height:1.5; }

/* Mobile: move panel to bottom, full width */
@media (max-width: 720px){
  .yma-card{ aspect-ratio: 4 / 5; }        /* taller for phones */
  .yma-overlay{
    left:12px; right:12px; bottom:12px; top:auto;
    max-width:none; border-radius:14px;
    background:rgba(255,255,255,.88);
  }
}

/* Make the entire YMA card clickable via a stretched link */
.yma-card { position: relative; }
.yma-link{
  position: absolute;
  inset: 0;
  z-index: 5;                  /* above photo/overlay */
  border-radius: inherit;
}

/* Cursor + focus styles for accessibility */
.yma-card,
.yma-link { cursor: pointer; }
.yma-link:focus-visible{
  outline: 3px solid #9DFFB8;
  outline-offset: 3px;
  border-radius: inherit;
}

/* Optional: subtle hover lift on desktop */
@media (hover:hover){
  .yma-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease;
  }
}


/* ---------- About: responsive tuning ---------- */

/* Slightly narrow screens: balance the two columns */
@media (max-width: 1100px){
  .about-2col{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Tablet & down: stack, center copy, keep photos tidy */
@media (max-width: 900px){
  .about-2col{
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 36px 0;
  }
  .about-copy{
    text-align: center;
  }
  .about-h1{
    font-size: clamp(28px, 6.2vw, 40px);
    margin-bottom: 8px;
  }
  .about-copy .lead{
    max-width: 60ch;      /* readable width */
    margin-inline: auto;
  }

  /* Keep images a nice proportion and centered */
  .about-photo{
    max-width: 680px;     /* prevents super-wide images */
    margin-inline: auto;
    border-radius: 24px;
    aspect-ratio: 4 / 3;  /* consistent height on phones/tablets */
  }
  .about-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Phones: tighter spacing, smaller tiles */
@media (max-width: 640px){
  .about-2col{ margin: 30px 0; }
  .about-h1{ font-size: clamp(26px, 7vw, 34px); }
  .about-photo{ border-radius: 20px; aspect-ratio: 3 / 2; }
}

/* Video/thumb row: switch to a responsive grid */
.about-videos{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 14px auto 0;
}
@media (max-width: 900px){
  .about-videos{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .about-videos{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Individual video/thumbs */
.about-video{
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f8;
  box-shadow: var(--shadow);
}
.about-video img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== About › Music section (mobile-friendly) ===== */
.about-music{ margin: 36px 0 8px; }

/* Heading + subcopy */
.about-music h2{
  font-size: clamp(26px, 6.2vw, 40px);  /* shrink on phones */
  line-height: 1.12;
  margin: 0 0 10px;
}
.about-music .lead{
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 18px);
  max-width: 60ch;
  margin: 0 0 16px;
}

/* Cover grid */
.about-videos{
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)); /* desktop */
  gap: 14px;
  max-width: 760px;
  margin: 14px 0 0;
}

@media (max-width: 1000px){
  .about-videos{ grid-template-columns: repeat(3, minmax(110px, 1fr)); }
}
@media (max-width: 640px){
  .about-music{ text-align: center; }
  .about-music .lead{ margin-inline: auto; }
  .about-videos{
    grid-template-columns: repeat(2, minmax(110px, 1fr)); /* phones */
    gap: 12px;
    justify-items: center;
    margin-inline: auto;
    max-width: 520px;
  }
}

/* ===== About › Music section (mobile-friendly) ===== */
.about-music{ margin: 36px 0 8px; }

/* Heading + subcopy */
.about-music h2{
  font-size: clamp(26px, 6.2vw, 40px);  /* shrink on phones */
  line-height: 1.12;
  margin: 0 0 10px;
}
.about-music .lead{
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 18px);
  max-width: 60ch;
  margin: 0 0 16px;
}

/* Cover grid */
.about-videos{
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)); /* desktop */
  gap: 14px;
  max-width: 760px;
  margin: 14px 0 0;
}

@media (max-width: 1000px){
  .about-videos{ grid-template-columns: repeat(3, minmax(110px, 1fr)); }
}
@media (max-width: 640px){
  .about-music{ text-align: center; }
  .about-music .lead{ margin-inline: auto; }
  .about-videos{
    grid-template-columns: repeat(2, minmax(110px, 1fr)); /* phones */
    gap: 12px;
    justify-items: center;
    margin-inline: auto;
    max-width: 520px;
  }
}

/* ===== About › Music section (mobile-friendly) ===== */
.about-music{ margin: 36px 0 8px; }

/* Heading + subcopy */
.about-music h2{
  font-size: clamp(26px, 6.2vw, 40px);  /* shrink on phones */
  line-height: 1.12;
  margin: 0 0 10px;
}
.about-music .lead{
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 18px);
  max-width: 60ch;
  margin: 0 0 16px;
}

/* Cover grid */
.about-videos{
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)); /* desktop */
  gap: 14px;
  max-width: 760px;
  margin: 14px 0 0;
}

@media (max-width: 1000px){
  .about-videos{ grid-template-columns: repeat(3, minmax(110px, 1fr)); }
}
@media (max-width: 640px){
  .about-music{ text-align: center; }
  .about-music .lead{ margin-inline: auto; }
  .about-videos{
    grid-template-columns: repeat(2, minmax(110px, 1fr)); /* phones */
    gap: 12px;
    justify-items: center;
    margin-inline: auto;
    max-width: 520px;
  }
}

/* Individual tiles */
.about-video{
  aspect-ratio: 1 / 1;             /* always square */
  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f8;
  box-shadow: var(--shadow);
  display: block;
}
.about-video img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About → center the stacked blocks on small screens only */
@media (max-width: 900px){
  .about-2col{
    grid-template-columns: 1fr;   /* stack */
    justify-items: center;        /* center each item horizontally */
    gap: 22px;
  }

  .about-2col .about-copy{
    text-align: center;           /* center the text */
    max-width: 60ch;              /* comfortable line length */
    margin-inline: auto;          /* center the block itself */
  }

  .about-2col .about-photo{
    width: min(680px, 100%);      /* keep image tidy */
    border-radius: 24px;
    aspect-ratio: 4 / 3;          /* optional: consistent height on phones */
  }
}

/* ============== Services submenu (clean) ============== */

/* Make sure the header never clips the dropdown */
.nav{ z-index:1000; overflow:visible; }
.nav .bar{ overflow:visible; }

/* Base */
.nav__submenu{ list-style:none; margin:0; padding:0; }
.nav__submenu a{ color:inherit; text-decoration:none; }

/* ---------- Desktop (>=901px): hover dropdown ---------- */
@media (min-width:901px){
  .nav__menu .has-sub{ position:relative; }

  /* tiny caret after "Services" */
  .nav__menu .has-sub > .nav__link::after{
    content:"▾"; margin-left:6px; font-size:.8em;
  }

  /* hidden by default; compact sheet left-aligned under Services */
  .nav__menu .has-sub > .nav__submenu{
    display:none !important;          /* guarantee hidden by default */
    position:absolute;
    top:100%;                         /* no gap (no flicker) */
    left:0;                           /* align to Services link */
    min-width:520px;                  /* room for long label */
    max-width:80vw;
    padding:6px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:var(--shadow);
    white-space:normal;               /* wrap long text */
    z-index:1100;

    /* two items side-by-side */
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
  }

  /* invisible bridge so cursor never "falls through" */
  .nav__menu .has-sub > .nav__submenu::before{
    content:"";
    position:absolute; left:0; right:0; top:-8px; height:8px;
  }

  /* show on hover/focus */
  .nav__menu .has-sub:hover > .nav__submenu,
  .nav__menu .has-sub:focus-within > .nav__submenu{
    display:grid !important;
  }

  .nav__submenu a{
    display:block;
    padding:10px 12px;
    border-radius:8px;
  }
  /* subtle divider between the two cells */
  .nav__submenu li + li a{ border-left:1px solid var(--line); }

  .nav__submenu a:hover,
  .nav__submenu a:focus-visible{ background:#f6f8fb; }
}

/* ---------- Mobile (<=900px): flattened links ---------- */
@media (max-width:900px){
  .nav.nav--open .nav__menu{ max-height:70vh; overflow:auto; }

  .nav__submenu{
    position:static;
    display:block;
    margin:6px 0 10px;
    padding:0;
    border:none;
    box-shadow:none;
  }
  .nav__submenu a{
    display:block;
    padding:12px 12px 12px 18px;  /* indent */
    font-weight:500;
  }
  .nav__submenu a::before{
    content:"•";
    margin-right:8px;
    color:var(--muted);
  }
}

/* ---- Compact single-column Services dropdown (desktop) ---- */
@media (min-width:901px){
  /* keep hidden by default (stays from earlier rules) */

  .nav__menu .has-sub > .nav__submenu{
    /* make it smaller and stack items */
    min-width: unset;         /* cancel the big min-width */
    width: 280px;             /* ↓ tweak 260–320px if you like */
    padding: 6px;
    border-radius: 10px;
    grid-template-columns: 1fr !important; /* single column */
    gap: 0;
  }

  /* show as a simple block when open */
  .nav__menu .has-sub:hover > .nav__submenu,
  .nav__menu .has-sub:focus-within > .nav__submenu{
    display: block !important;
  }

  /* list item styling for a vertical stack */
  .nav__submenu a{
    display: block;
    padding: 8px 10px;        /* tighter vertical rhythm */
    border-radius: 8px;
  }
  .nav__submenu li + li a{
    border-top: 1px solid var(--line);  /* divider between rows */
    border-left: none;                  /* remove old two-col divider */
  }
}

/* Services hub */
.service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  margin:18px 0 56px;
}
@media (max-width:900px){ .service-grid{ grid-template-columns:1fr; } }

.service-card{
  display:grid;
  grid-template-columns: 42% 1fr;
  gap:16px;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.service-card:hover{ transform:translateY(-2px); box-shadow:0 18px 36px rgba(0,0,0,.12); }

.service-media{ height:220px; border-radius:12px; overflow:hidden; }
.service-media img{ width:100%; height:100%; object-fit:cover; display:block; }

.service-body h3{ margin:4px 0 6px; font-size:clamp(20px,2.4vw,28px); }
.service-body p{ margin:0 0 10px; }
.service-cta{ font-weight:700; }

.chips.small .chip{ padding:4px 10px; font-size:13px; }

/* Stack media over text on small screens */
@media (max-width:700px){
  .service-card{ grid-template-columns:1fr; }
  .service-media{ height:200px; }
}

/* ===== Services hub fixes ===== */

/* grid: two cards side-by-side; stack on small screens */
.service-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(280px, 1fr));
  gap:22px;
  align-items:stretch;
  margin:18px 0 56px;
}
@media (max-width:900px){
  .service-grid{ grid-template-columns:1fr; }
}

/* clickable card */
.service-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
  min-height:240px;                 /* equal-ish heights */
  transition:transform .15s ease, box-shadow .15s ease;
  overflow:hidden;                   /* prevents child margins from escaping */
}
.service-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(0,0,0,.12);
}

/* content */
.service-body{ display:flex; flex-direction:column; gap:8px; }
.service-eyebrow{
  margin:0;                          /* stop margin-collapsing at the top */
  font-size:12px; line-height:1.1;
  color:var(--muted);
}
.service-body h3{
  margin:0;                          /* no overlap with eyebrow */
  font-size:clamp(20px, 2.2vw, 28px);
  line-height:1.15;
}
.service-body p{ margin:0; }

/* chips & cta */
.chips.small{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.chips.small .chip{ padding:4px 10px; font-size:13px; }
.service-cta{ margin-top:auto; font-weight:700; }  /* pin CTA to bottom */

/* optional media (if you add an image later) */
.service-media{
  height:200px; border-radius:12px; overflow:hidden; margin-bottom:12px;
}
.service-media img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Only on the Tutoring page/section */
.page-tutoring .chips { margin-bottom: 0; }
.page-tutoring .chips + .card { margin-top: 8px; }  /* 6–10px works nicely */

/* Services: make the two cards taller on larger screens */
.page-services .service-card{
  /* raise the size */
  min-height: 660px;          /* try 420px if you want even more */
  padding: 50px 22px;
}

/* Slightly bigger text so the card feels fuller */
.page-services .service-body h3{ font-size: clamp(22px, 2.8vw, 32px); }
.page-services .service-body p{  font-size: 16px; }

/* Keep it sensible on tablets/phones */
@media (max-width: 1024px){
  .page-services .service-card{ min-height: 320px; }
}
@media (max-width: 700px){
  .page-services .service-card{ min-height: 0; }  /* let content decide */
}

/* Make service cards taller and text larger */
.service-card {
  min-height: 320px;        /* increased from 240px */
  padding: 44px;            /* more breathing room inside */
  font-size: 1.05rem;       /* slightly larger base text */
  line-height: 1.6;         /* spread text for readability */
}

.service-body h3 {
  font-size: clamp(22px, 2.6vw, 32px); /* larger heading */
  line-height: 1.2;
}

.service-body p {
  font-size: 1rem;          /* bump normal text */
  line-height: 1.6;         /* more spread */
}

.service-eyebrow {
  font-size: 14px;          /* slightly bigger eyebrow */
  letter-spacing: 0.2px;
}

.service-cta {
  font-size: 1rem;          /* bigger CTA link */
  margin-top: auto;         /* keep pinned at bottom */
}

/* ===== Services cards – cleaner, bigger, better spaced ===== */

/* slightly larger cards with nicer interior spacing */
.service-grid--comfy .service-card{
  min-height: 655px;               /* dial this up/down if you want */
  padding: 26px 28px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

/* subtle decorative sheen in the corner */
.service-grid--comfy .service-card::after{
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side,
              rgba(157,255,184,.25), transparent 70%);
  pointer-events: none;
}

/* tidy vertical rhythm */
.service-card .service-body{
  display: flex; flex-direction: column;
  gap: 12px;                       /* consistent spacing between elements */
  height: 100%;
}
.service-card .service-body > * { margin: 0; }

/* eyebrow/kicker – small, strong, muted */
.service-eyebrow{
  font-size: 13px; letter-spacing: .3px; color: var(--muted);
  font-weight: 700;
}

/* title + blurb */
.service-title{
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18; letter-spacing: -.01em;
}
.service-blurb{
  font-size: 1.05rem; line-height: 1.65;
  color: #1b1f26;
  max-width: 58ch;
}

/* bigger, roomier chips so they match the card scale */
.chips--lg{ gap: 10px; margin-top: 2px; }
.chips--lg .chip{
  padding: 7px 12px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.03);
}

/* CTA pinned to bottom, styled like a subtle button/link */
.service-cta{
  margin-top: auto;                /* pushes it to the bottom */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fb;
  font-weight: 800;
  width: fit-content;
  transition: .18s ease;
}
.service-cta::after{
  content: "→"; transition: transform .18s ease;
}
.service-card:hover .service-cta{
  background: #eef3f7; box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.service-card:hover .service-cta::after{ transform: translateX(2px); }

/* Hover lift stays subtle */
.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

/* Responsive: stack and reduce height on phones */
@media (max-width: 900px){
  .service-grid--comfy .service-card{ min-height: 0; }
  .service-title{ font-size: clamp(22px, 6.2vw, 28px); }
  .service-blurb{ font-size: 1rem; }
}

.center-text {
  text-align: center;
  max-width: 70ch;
  margin: 20px auto;
  line-height: 1.6;
  font-size: larger;
  color:var(--muted)
}

/* --- Studio Gear cards: pop like Services --- */
.gear-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  margin:12px 0 22px;
}
@media (max-width:900px){ .gear-grid{ grid-template-columns:1fr; } }

.card--pop{
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  background:#fff; border:1px solid var(--line);
  border-radius:16px; box-shadow:var(--shadow);
  padding:18px; position:relative; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
}
.card--pop:hover,
.card--pop:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(0,0,0,.12);
}

/* subtle corner sheen (like Services) */
.card--pop::after{
  content:""; position:absolute; right:-60px; top:-60px;
  width:220px; height:220px; border-radius:50%;
  background:radial-gradient(closest-side, rgba(157,255,184,.25), transparent 70%);
  pointer-events:none;
}

/* consistent media box */
.card--pop .media{
  height:220px; border-radius:12px; overflow:hidden;
  background:#f7f9fb; display:flex; align-items:center; justify-content:center;
}
.card--pop .media img{ width:100%; height:100%; object-fit:contain; }

/* title styling */
.card--pop .card__title{ font-weight:800; padding-top:10px; letter-spacing:.2px }

/* nice keyboard focus */
.card--pop:focus-visible{ outline:3px solid #a8f3c5; outline-offset:3px }

/* Email button: subtle hover FX */
.btn--mail{
  position: relative;
  overflow: hidden;                 /* keeps the sheen inside */
  border-color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition:
    transform .18s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

/* small lift + slightly brighter background on hover */
.btn--mail:hover,
.btn--mail:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  background: linear-gradient(180deg, var(--accent), #b9ffd0);
  text-decoration: none;
}

/* arrow nudge */
.btn--mail::after{
  content:"→";
  margin-left:.5em;
  transition: transform .18s ease;
}
.btn--mail:hover::after,
.btn--mail:focus-visible::after{
  transform: translateX(2px);
}

/* faint moving sheen across the button */
.btn--mail::before{
  content:"";
  position:absolute; top:0; left:-120%;
  width:60%; height:100%;
  background: linear-gradient(75deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  transform: skewX(-15deg);
  transition: transform .6s ease;
  pointer-events:none;
}
.btn--mail:hover::before,
.btn--mail:focus-visible::before{
  transform: translateX(260%) skewX(-15deg);
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .btn--mail{ transition: background .2s ease, border-color .2s ease; }
  .btn--mail:hover{ transform:none; box-shadow:0 8px 18px rgba(0,0,0,.08); }
  .btn--mail::before{ display:none; }
  .btn--mail::after{ transition:none; }
}

html, body { height: 100%; }
body.app {
  position: fixed;      /* stop the document from scrolling */
  inset: 0;
  overflow: hidden;
}

.app__scroll {
  height: 100%;
  overflow-y: auto;                 /* scroll inside this container */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* reduce pull-to-refresh / overscroll */
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.hero__content {
  position: relative;
  padding: 60px 20px;
  z-index: 2;
  color: white;
  font-weight: bold;
}

/* Main heading */
.hero__content h1 {
  margin: 0 0 4px;
  color: #9DFFB8;
}

/* Tagline (always looks strong) */
.hero-tagline {
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

/* Sub text */
.hero-sub {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* --- Hero text: mobile-only tidy + lower placement --- */
@media (max-width: 1400px){
  /* Give the hero some height so we can push text lower */
  .hero{ min-height: 38vh; }
  @supports (height: 1svh){
    .hero{ min-height: 38svh; }          /* avoids the mobile 100vh jump */
  }

  /* Push content lower and center it */
  .hero > .wrap{
    padding: 300px 20px 50px !important;  /* lower the text */
    text-align: start;
  }

  /* Heading: slightly smaller, tighter */
  .hero h1{
    font-size: clamp(28px, 11vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 6px !important;
  }

  /* First line: "A tailored music experience" */
  .hero .lead:first-of-type{
    font-size: clamp(16px, 4.4vw, 18px) !important;
    font-weight: 600 !important;          /* soften from bold */
    color: rgba(255,255,255,0.98) !important;
    margin-top: 10px !important;
  }

  /* Second block: the two-line “Freelance… / Education…” */
  .hero .lead:first-of-type + .lead{
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;          /* lighter than bold */
    color: rgba(255,255,255,0.92) !important;
    margin-top: 6px !important;
  }
}
