:root {
--blue: #00b7ff;
--orange: #f75f31;
--accent: #5b94ca;
--bg-dark: #0b0b10;

--glass-bg: rgba(12,12,20,0.4);
--glass-border: rgba(255,255,255,0.05);
--glass-blur: 4px;

--card-bg: rgba(255,255,255,0.03);
--card-bd: rgba(255,255,255,0.06);
--muted:   #b9b9c6;
--line:    rgba(255,255,255,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

body {
font-family: 'Montserrat', sans-serif;
background-color: var(--bg-dark);
color: #fff;
min-height: 100vh;
overflow-x: hidden;
}
body::before {
content: "";
position: fixed;
inset: 0;
background:
    radial-gradient(circle at 15% 25%, rgba(0, 183, 255, 0.15), transparent 50%),  /* teal */
    radial-gradient(circle at 85% 75%, rgba(249, 75, 22, 0.15),  transparent 50%); /* orange */
z-index: -2;
}
body::after {
content: "";
position: fixed;
inset: 0;
background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 40px);
z-index: -1;
}

nav {
width: 100%;
padding: 1rem 2rem;
position: fixed;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--glass-bg);
backdrop-filter: blur(var(--glass-blur));
-webkit-backdrop-filter: blur(var(--glass-blur));
border-bottom: 1px solid var(--glass-border);
z-index: 10;
}
.logo {
font-weight: 700;
font-size: 1.2rem;
letter-spacing: 2px;
background: var(--accent);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-links {
display: flex;
gap: 1.5rem;
}
.nav-links a {
color: #ddd;
font-weight: 700;
letter-spacing: 1px;
text-decoration: none;
transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ACTIVE LINK */
.nav-links a[aria-current="page"] {
    color: var(--accent);
    position: relative;
}
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -4px;              
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

/* HAMBURGER */
.nav-toggle{
    display:none;
    position:relative;
    width:32px; height:24px;
    background:transparent; border:0; padding:0;
    cursor:pointer; border-radius:8px;
}
.nav-toggle:focus-visible{ outline:2px solid rgba(255,255,255,0.35); outline-offset:2px; }
.nav-toggle .bar{
    position:absolute; left:4px; right:4px; height:2px; background:#e6e6e6; border-radius:2px;
    transform-origin:center; transition:transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle .bar:nth-child(1){ top:5px; }
.nav-toggle .bar:nth-child(2){ top:11px; }
.nav-toggle .bar:nth-child(3){ top:17px; }
nav.open .nav-toggle .bar:nth-child(1){ top:11px; transform:rotate(45deg); }
nav.open .nav-toggle .bar:nth-child(2){ opacity:0; }
nav.open .nav-toggle .bar:nth-child(3){ top:11px; transform:rotate(-45deg); }

/* MOBILE MENU */
@media (max-width:900px){
    .nav-toggle{ display:inline-block; }
  .nav-links {
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  nav.open + .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
    .nav-links a{ justify-self:start; display:inline-block; padding:10px 8px; border-radius:8px; }
}

@media (min-width: 901px) {
  .nav-links {
    position: absolute;
    top: 0;
    right: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 11;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
  }

  .nav-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 700;
    padding: 0px 0px;
    transition: color 0.2s ease;
  }
}


/* HERO SECTION */
header.hero {
    padding: 6rem 1rem 1rem;
}
header.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 6px;
}
header.hero p {
    margin-top: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 3px;
}
.hero-photo {
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin: 0 auto 1rem; 
    display: block;
}
.about-line {
    margin-top: 0.5rem;
    font-size: 1.2rem !important;
    color: #bbb;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
}
header.hero {
    padding: 6rem 1rem 1rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 24px);
}

.hero-inner .hero-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    align-self: center; 
}

.hero-inner .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: left;
}

.page-wrap {
    padding-inline: clamp(16px, 4vw, 24px);
}

/* SECTIONS */
section {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 1.5rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 1px;
    color: #bbb;
}

section:first-of-type {
    margin-top: 1rem;
}

/* CLIENT GRID */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
/* 3-up desktop, 2-up tablet, 1-up mobile */
    .clients-grid > * { grid-column: span 4; }
    @media (max-width: 900px) { .clients-grid > * { grid-column: span 6; } }
    @media (max-width: 580px) { .clients-grid > * { grid-column: span 12; } }

.client-card {
    position: relative;
    background: linear-gradient(180deg, #12121a, #171725);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.client-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.thumb {
    width: 72px; height: 72px; flex: 0 0 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    overflow: hidden;
    display: grid; place-items: center;
    font-weight: 700;
    letter-spacing: .5px;
}
.thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.thumb .initials {
    color: #fff; font-size: 1.05rem;
}
.thumb.no-bg {
    background: none;
}


.meta { display: grid; gap: 6px; min-width: 0; }
.title {
    font-weight: 600; font-size: 1.05rem; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.subcount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #b9b9c6;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
    max-width: 100%;
}
.sub-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: red;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    z-index: 100;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .28s ease;
}
.modal-overlay.open {
    opacity: 1;
}

/* === Modal layout === */
.modal {
    width: min(900px, 92vw);
    background: #181820;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    position: relative;
    transform-origin: var(--ox, 50%) var(--oy, 30%);
    transform: translateY(18px) scale(0.55, 0.78);
    opacity: 0;
    will-change: transform, opacity;
}
@media (max-width: 820px) {
    .modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    }
}
.modal-overlay.open .modal {
    animation: modalGenieIn 0.6s cubic-bezier(.22,1,.36,1) forwards;
}
.modal-overlay.closing .modal {
    animation: modalGenieOut 0.45s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes modalGenieIn {
    0%   { transform: translateY(18px) scale(0.55, 0.78); opacity: 0; }
    35%  { transform: translateY(-10px) scale(1.08, 1.02); opacity: 1; }
    60%  { transform: translateY(6px)  scale(0.96, 1.02);  opacity: 1; }
    100% { transform: translateY(0)    scale(1, 1);        opacity: 1; }
}
@keyframes modalGenieOut {
    0%   { transform: translateY(0)    scale(1, 1);        opacity: 1; }
    35%  { transform: translateY(-6px) scale(1.02, 0.98);  opacity: 1; }
    100% { transform: translateY(18px) scale(0.52, 0.76);  opacity: 0; } 
}
@media (prefers-reduced-motion: reduce) {
    .modal, .modal-overlay.open .modal, .modal-overlay.closing .modal {
    animation: none !important;
    transition: none !important;
    transform: translateY(0) scale(1,1) !important;
    opacity: 1 !important;
    }
}

/* === Modal inner layout === */
.modal-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0f0f14;
}
.modal-media {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #0f0f14;
    aspect-ratio: 16 / 9;
}
.modal-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.modal-attribution {
    color: #888;
    font-size: 0.85rem;
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex: none;
}

/* === Modal right side === */
.modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}
.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.modal-subtle {
    color: #b9b9c6;
    font-size: .95rem;
    margin-bottom: 16px;
}
.modal-subtle ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.modal-subtle li {
    margin-bottom: 4px;
}
.modal-body .subcount {
    margin-bottom: 16px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.modal-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}
.modal-visit .external-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* FOOTER */
    html, body { height: 100%; }
    body { display: flex; flex-direction: column; min-height: 100vh; }
    main { flex: 1 0 auto; }

    .site-footer{
    position: static !important;
    left:auto !important; right:auto !important; bottom:auto !important; top:auto !important;
    transform:none !important;
    display:block; width:100%; box-sizing:border-box; z-index:5; isolation:isolate;

    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    color:#ddd;
    }
    .site-footer .footer-inner{
    max-width:1200px;
    margin:0 auto;
    padding:16px 20px;
    display:grid;
    grid-template-columns: 1fr auto;
    align-items:center;
    gap:20px;
    }

    .footer-brand { min-width:0; }
    .footer-brand strong{ font-weight:800; letter-spacing:.5px; }
    .footer-brand .tagline{ margin:2px 0 0; color:#bdbdbd; font-size:.95rem; }

    .footer-social{ display:flex; gap:12px; justify-content:flex-end; }
    .icon-link{ display:inline-flex; align-items:center; padding:6px; color:#e6e6e6; opacity:1; }
    .icon-link:hover{ color: var(--accent); }

    .site-footer .footer-meta{
    max-width:1200px;
    margin:0 auto;
    padding:10px 20px 16px;
    display:flex; gap:12px;
    align-items:center; justify-content:space-between;
    color:#bdbdbd; font-size:.9rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    }

        .footer-social .icon {
        width: 20px;
        height: 20px;
        display: inline-block;
        background-color: currentColor;        
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        }

        .si-x          { -webkit-mask-image: url("https://cdn.simpleicons.org/x");          mask-image: url("https://cdn.simpleicons.org/x"); }
        .si-discord    { -webkit-mask-image: url("https://cdn.simpleicons.org/discord");    mask-image: url("https://cdn.simpleicons.org/discord"); }
        .si-instagram  { -webkit-mask-image: url("https://cdn.simpleicons.org/instagram");  mask-image: url("https://cdn.simpleicons.org/instagram"); }
        .si-letterboxd { -webkit-mask-image: url("https://cdn.simpleicons.org/letterboxd"); mask-image: url("https://cdn.simpleicons.org/letterboxd"); }

/* Responsive */
    @media (max-width:900px){
    .site-footer .footer-inner{ grid-template-columns:1fr; gap:12px; }
    .footer-social{ justify-content:flex-start; }
    .site-footer .footer-meta{ flex-direction:column; align-items:flex-start; gap:6px; }
    }


/* === Intro screen === */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#intro-screen h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 6px;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
  transform: scale(1);
  transition: transform 1s ease, opacity 1s ease;
}

body[data-page="home"] nav,
body[data-page="home"] .site-footer {
  opacity: 0;
  transition: opacity 1.2s ease;
}

body[data-page="home"] header.hero,
body[data-page="home"] section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Final state (home only) */
body[data-page="home"].loaded nav,
body[data-page="home"].loaded .site-footer {
  opacity: 1;
}

body[data-page="home"].loaded header.hero,
body[data-page="home"].loaded section {
  opacity: 1;
  transform: translateY(0);
}

/* Shrink/fade intro */
body.loaded #intro-screen h1 {
  opacity: 0;
  transform: scale(0.8);
}

/* Remove after fade */
body.loaded #intro-screen {
  pointer-events: none;
  animation: hideIntro 0.2s forwards;
  animation-delay: 1s;
}

/* Skip intro instantly when JS decides we've seen it recently */
body.skip-intro #intro-screen { display: none !important; }

@keyframes hideIntro {
  to {
    display: none;
    visibility: hidden;
  }
}




/* === About page === */
body[data-page="about"] .page-wrap > section:first-of-type { margin-top: 5rem; }

/* Layout / portrait */
body[data-page="about"] .about-grid { display:block; }
body[data-page="about"] .about-grid::after { content:""; display:block; clear:both; }
body[data-page="about"] .about-photo {
  float:right; width:min(260px,38%); margin-left:16px; margin-bottom:12px;
  border-radius:14px; overflow:hidden; background:var(--card-bg);
  border:1px solid var(--card-bd); aspect-ratio:4/5; box-shadow:0 6px 18px rgba(0,0,0,.25);
}
body[data-page="about"] .about-photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* Typographic helpers */
body[data-page="about"] .eyebrow { color:var(--muted); letter-spacing:.08em; text-transform:uppercase; font-size:.8rem; }
body[data-page="about"] .muted   { color:var(--muted); }
body[data-page="about"] .row     { display:flex; align-items:center; gap:10px; }
body[data-page="about"] .icon    { width:18px; height:18px; flex:0 0 18px; opacity:.9; }

/* Content blocks */
body[data-page="about"] .ilist { display:grid; gap:10px; margin:12px 0 0; }
body[data-page="about"] .ilist .item { display:flex; gap:10px; align-items:flex-start; }
body[data-page="about"] .ilist .item p { margin:0; color:var(--muted); line-height:1.6; }

body[data-page="about"] .how-divider { margin:16px 0 12px; height:1px; background:var(--line); border-radius:1px; }

body[data-page="about"] .cards { display:grid; gap:16px; grid-template-columns:repeat(3,1fr); }
body[data-page="about"] .card  { background:var(--card-bg); border:1px solid var(--card-bd); border-radius:12px; padding:14px; }
body[data-page="about"] .card h3 { margin:0 0 6px; font-size:1rem; letter-spacing:.02em; }
body[data-page="about"] .card p  { margin:0; color:var(--muted); line-height:1.6; }

/* Testimonials */
body[data-page="about"] .cards.testimonials { grid-template-columns:repeat(2,1fr); }
@media (max-width:700px){ body[data-page="about"] .cards.testimonials { grid-template-columns:1fr; } }

body[data-page="about"] .t-card  { display:grid; gap:10px; }
body[data-page="about"] .t-quote { font-size:1rem; line-height:1.6; color:#e7e7ee; font-style:italic; }

body[data-page="about"] .t-meta { display:flex; align-items:center; gap:10px; margin-top:6px; }
body[data-page="about"] .t-avatar {
  width:42px; height:42px; border-radius:50%; object-fit:cover;
  border:1px solid var(--card-bd); background:var(--card-bg); flex-shrink:0;
}
body[data-page="about"] .t-text { display:flex; flex-direction:column; line-height:1.3; }
body[data-page="about"] .t-name { font-weight:700; letter-spacing:.02em; }
body[data-page="about"] .t-role { font-size:.9rem; }

/* Toolbelt chips */
body[data-page="about"] .chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

body[data-page="about"] .chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--card-bg);
  border:1px solid var(--card-bd);
  font-size:.9rem;
  color:var(--muted);
}

body[data-page="about"] .chip img {
  height:0.9em;
  width:auto;
  display:inline-block;
  vertical-align:-0.1em;
}

/* Responsive */
@media (max-width:960px){
  body[data-page="about"] .about-grid { display:block; }
  body[data-page="about"] .about-photo { float:none; width:auto; max-width:220px; margin:0 0 12px 0; }
  body[data-page="about"] .cards { grid-template-columns:1fr; }
}



/* Contact page socials */

body[data-page="contact"] header.hero .email-link{
  color: inherit !important;
  text-decoration: none !important;
  border: 0;
}
body[data-page="contact"] header.hero .email-link:hover{
  opacity:.9;
}
body[data-page="contact"] header.hero .email-link:focus{
  outline:2px solid rgba(255,255,255,.35);
  outline-offset:3px;
  text-decoration:none;
}

@property --t {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 18%;
}
/* Contact page socials — same look, smooth hover via --t */
body[data-page="contact"] .social-links{
  display:flex; flex-wrap:wrap; gap:1rem; margin-top:1rem;
}

body[data-page="contact"] .social-card{
  --t: 18%;
  --c1: #999; --c2: #666;

  flex:1 1 240px;
  display:flex; align-items:center; gap:14px;
  padding:16px 20px;
  border-radius:14px;

  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--c1) var(--t), transparent) 0%,
      color-mix(in oklab, var(--c2) var(--t), transparent) 100%
    ),
    var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border:1px solid var(--glass-border);

  text-decoration:none; color:#fff; font-weight:700; letter-spacing:.3px;

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    --t .22s ease;  
}

body[data-page="contact"] .social-card:hover{
  --t: 65%;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

body[data-page="contact"] .social-card .icon{
  width:36px; height:36px; flex:0 0 36px; display:block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
body[data-page="contact"] .social-card span{
  color:#eee; font-size:1.05rem;
}

@media (max-width:700px){
  body[data-page="contact"] .social-card{ flex-basis:100%; }
}

body[data-page="contact"] .social-card.email     { --c1:#ff5a5f; --c2:#c81d25; }
body[data-page="contact"] .social-card.twitter   { --c1:#58bdfc; --c2:#02629e; }
body[data-page="contact"] .social-card.discord   { --c1:#6975f1; --c2:#242d97; }
body[data-page="contact"] .social-card.instagram { --c1:#f58529; --c2:#dd2a7b; }


/* Contact form layout */
body[data-page="contact"] .contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.25rem;
}
@media (max-width: 900px){
  body[data-page="contact"] .contact-grid{
    grid-template-columns: 1fr;
  }
}

/* Form + inputs */
body[data-page="contact"] .contact-form{
  display:grid; gap:12px; max-width:700px;
}
body[data-page="contact"] .contact-form input,
body[data-page="contact"] .contact-form textarea{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--card-bd);
  background: var(--card-bg);
  color:#fff;
  font: inherit;
  width:100%;
  box-sizing:border-box;
  resize: vertical;  
}

/* Right-hand copy */
body[data-page="contact"] .contact-aside h3{
  margin: 0 0 6px;
}

/* Global divider (used on contact too) */
.how-divider{
  margin:16px 0 12px;
  height:1px;
  background: var(--line);
  border-radius:1px;
}

/* === Portfolio capability rows === */
.cap .muted { color: var(--muted); }

.cap-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: center;
}
.cap-grid--flip{ grid-template-columns: .8fr 1.2fr; }
.cap-grid--flip .cap-media{ order:2; }
.cap-grid--flip .cap-text { order:1; }

@media (max-width: 900px){
  .cap-grid, .cap-grid--flip{
    grid-template-columns: 1fr;
  }
  .cap-grid--flip .cap-media,
  .cap-grid--flip .cap-text { order: initial; }
}

.cap-media{
  position:relative;
  border-radius: 14px 14px 0 0;
  overflow:hidden;
  background: #0f0f14;
  border: 1px solid var(--card-bd);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  aspect-ratio: 16/9;
}
.cap-media video{
  width:100%; height:100%; display:block; object-fit:cover;
}

.cap-video-btn{
  all: unset;
  position:absolute; inset:0; cursor:pointer;
}

/* sound badge */
.cap-video-btn[data-badge]::after{
  content:"tap for sound";
  position:absolute; right:10px; bottom:10px;
  font-size:.8rem; color:#fff; background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px; padding:6px 10px; pointer-events:none;
}
.cap-video-btn.unmuted[data-badge]::after{ content:"sound on"; }
.prefers-reduced-motion .cap-video-btn[data-badge]::after{ content:"click to play"; }

/* --- Capabilities single-section layout --- */
.capabilities { padding-top: 2rem; }
.capabilities-head h1 { margin: 0 0 .25rem 0; }
.capabilities-head .muted { margin: 0 0 1rem 0; }

.cap-list { display: flex; flex-direction: column; gap: 2rem; }

.cap ul.muted { margin: 8px 0 0 1.2rem; }
.capabilities-cta { margin-top: 2.5rem; }

/* === Portfolio page === */
body[data-page="portfolio"] .page-wrap > section:first-of-type { 
  margin-top: 5rem;
}

body[data-page="portfolio"] .eyebrow {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

body[data-page="portfolio"] .muted { 
  color: var(--muted); 
}

/* === Portfolio page: consistent dividers & list rhythm === */
body[data-page="portfolio"] .capabilities-head { 
  margin: 0 0 10px;
}

body[data-page="portfolio"] .cap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body[data-page="portfolio"] .cap {
  margin: 0;
}

body[data-page="portfolio"] .how-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* === Portfolio page: CTA spacing === */
body[data-page="portfolio"] .capabilities-cta {
  margin-top: 18px;
}

body[data-page="portfolio"] .capabilities-cta h3 {
  margin: 0 0 6px;
}

body[data-page="portfolio"] .capabilities-cta p {
  margin: 0 0 8px;
}

body[data-page="portfolio"] .capabilities-cta .modal-visit {
  display: inline-block;
  margin-top: 2px;
}

/* --- Mobile-friendly hero + intro text centering --- */

/* Scale hero typography more safely on narrow screens */
header.hero h1 {
  font-size: clamp(1.9rem, 6.2vw + 0.6rem, 3rem);
}
header.hero p {
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
}

#intro-screen h1 {
  text-align: center;
}

@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;             
    gap: 1.25rem;
  }
  .hero-inner .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
  }

  header.hero { 
    padding: 5rem 1rem 1.25rem;
  }

  .hero-inner .hero-photo {
    width: 120px; 
    height: 120px;
  }
}

/* Extra-narrow devices (~350px) */
@media (max-width: 380px) {
  #intro-screen h1 {
    font-size: 2.6rem;
    letter-spacing: 3px;
  }
  header.hero h1 {
    font-size: clamp(1.7rem, 7vw + 0.25rem, 2.4rem);
    letter-spacing: 4px;
  }
  header.hero p {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    letter-spacing: 2px;
  }
  .hero-inner .hero-photo {
    width: 108px; 
    height: 108px;
  }
}

/* Contact page hero padding override */
body[data-page="contact"] header.hero {
  padding: 7rem 1.5rem 2rem;  
  text-align: center;    
}

body[data-page="contact"] header.hero h1 {
  word-break: break-word;
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  letter-spacing: 4px;
}

body[data-page="contact"] header.hero h1 {
  white-space: nowrap; 
  font-size: clamp(1rem, 6vw, 2.5rem);
  letter-spacing: 3px;
  text-align: center;
}



/* --- Portfolio: top video grid --- */
.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.video-grid iframe {
  aspect-ratio: 16/9;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cap-grid-outer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .cap-grid-outer { grid-template-columns: 1fr; }
}

.cap-title {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--muted);
}


/* --- Before/After slider (stationary images; clipped overlay) --- */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  --pos: 50;
}
.slider-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - (var(--pos) * 1%)) 0 0);
}

.slider-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: calc(var(--pos) * 1%);
  transform: translateX(-1px);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.slider-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
}


body[data-page="portfolio"] .how-divider { margin: 14px 0; }

body[data-page="portfolio"] .capabilities {
  padding-top: 1.5rem;
}
body[data-page="portfolio"] .capabilities-head .eyebrow {
  margin-top: 0;
}

.cap-attribution {
  color: #b9b9c6;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 12px;
  background: #181820;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* --- Portfolio: Next steps block --- */
.next-steps {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.next-steps h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e7e7ee;
}

.next-steps p {
  margin: 0;
}
