/* Coastal AI Works - Build 1.01 */
:root {
  --navy: #071426;
  --ocean: #132C46;
  --teal: #20D5C4;
  --white: #EDF5FA;
  --gold: #D4B47D;
  --violet: #9b7bff;
  --muted: #a9bdd0;
  --line: rgba(32, 213, 196, .2);
  --card: #0b1d33;
  --header-h: 76px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .25, 1);
  --dur: .65s;
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(7,20,38,.85), rgba(7,20,38,0));
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled { background: rgba(7,20,38,.92); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.header-inner { max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-logo { width: 54px; height: 36px; filter: drop-shadow(0 0 8px rgba(32,213,196,.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--teal); }
.brand-sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px;
  color: var(--white); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--teal); background: rgba(32,213,196,.08); }
.site-nav a.is-current { color: var(--teal); }
.site-nav .nav-contact { border: 1.5px solid var(--teal); margin-left: 10px; box-shadow: 0 0 18px rgba(32,213,196,.25) inset; }
.site-nav svg, .btn svg, .ribbon svg, .service-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(19,44,70,.7); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 60% 60%; will-change: transform; }
.hero-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,20,38,.92) 0%, rgba(7,20,38,.72) 30%, rgba(7,20,38,.12) 62%, rgba(7,20,38,0) 100%),
    linear-gradient(to bottom, rgba(7,20,38,.35) 0%, rgba(7,20,38,0) 22%, rgba(7,20,38,0) 75%, var(--navy) 100%);
}
.hero-content { width: 100%; max-width: 1360px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 28px 120px; will-change: transform, opacity; }
.hero-title { font-size: clamp(2.5rem, 5.2vw, 4.7rem); font-weight: 800; font-style: italic; letter-spacing: -.02em; max-width: 14em; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-title span { color: var(--teal); text-shadow: 0 0 28px rgba(32,213,196,.55); }
.hero-lead { margin: 22px 0 36px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: #dbe8f2; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn-primary { background: linear-gradient(135deg, #2ef0de, var(--teal) 50%, #14b3a6); color: var(--navy); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 8px 30px rgba(32,213,196,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 12px 40px rgba(32,213,196,.6); }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(237,245,250,.75); background: rgba(7,20,38,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-outline { color: var(--teal); border: 1.5px solid var(--teal); background: rgba(32,213,196,.06); }
.btn-outline:hover { background: var(--teal); color: var(--navy); }
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Service ribbon ---------- */
.ribbon { position: relative; z-index: 2; margin-top: -64px; padding: 0 28px; }
.ribbon-list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11,29,51,.82); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ribbon-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 14px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; height: 100%; }
.ribbon-list li + li .ribbon-item { border-left: 1px solid var(--line); }
.ribbon-item svg { width: 28px; height: 28px; color: var(--teal); filter: drop-shadow(0 0 6px rgba(32,213,196,.5)); }
.ribbon-item:hover { color: var(--teal); background: rgba(32,213,196,.06); }

/* ---------- Expandable panels ---------- */
.panels { max-width: var(--max); margin: 64px auto 0; padding: 0 28px; display: grid; gap: 18px; }
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  overflow: hidden; scroll-margin-top: calc(var(--header-h) + 12px);
  transition: border-color .35s, box-shadow .35s;
}
.panel-heading { font-size: inherit; font-weight: inherit; }
.panel-toggle {
  position: relative; display: flex; align-items: center; gap: 24px; width: 100%; min-height: 168px; margin: 0;
  padding: 28px 30px 28px calc(42% + 34px); text-align: left; background: none; border: 0; cursor: pointer;
  transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.panel-media { position: absolute; inset: 0 auto 0 0; width: 42%; overflow: hidden; transition: width var(--dur) var(--ease); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.95) brightness(.92); }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,29,51,0) 40%, var(--card) 100%); transition: opacity var(--dur); }
.panel-media::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; background: linear-gradient(0deg, var(--card) 0%, rgba(11,29,51,.55) 45%, rgba(11,29,51,.1) 100%), linear-gradient(90deg, rgba(11,29,51,.85) 0%, rgba(11,29,51,0) 70%); transition: opacity var(--dur); }
.panel-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.panel-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.panel-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; transition: font-size var(--dur) var(--ease); }
.panel-desc { color: var(--muted); max-width: 36em; }
.panel-indicator { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--teal); transition: transform var(--dur) var(--ease), background .3s, border-color .3s; }
.panel-indicator svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media not all and (pointer: coarse) {
  .panel:hover { border-color: rgba(32,213,196,.5); box-shadow: 0 0 0 1px rgba(32,213,196,.15), 0 18px 50px rgba(0,0,0,.35), 0 0 40px rgba(32,213,196,.12); }
  .panel:hover .panel-media img { transform: scale(1.06); filter: saturate(1.1) brightness(1.05); }
  .panel:hover .panel-indicator { background: rgba(32,213,196,.12); border-color: var(--teal); transform: translateY(3px); }
}
/* open state: image grows from thumbnail into a full banner, content unfolds beneath it */
.panel.is-open { border-color: rgba(32,213,196,.55); box-shadow: 0 0 50px rgba(32,213,196,.12); }
.panel.is-open .panel-toggle { min-height: 280px; padding: 40px 30px 30px 40px; align-items: flex-end; }
.panel.is-open .panel-media { width: 100%; }
.panel.is-open .panel-media::after { opacity: 0; }
.panel.is-open .panel-media::before { opacity: 1; }
.panel.is-open .panel-title { font-size: clamp(2rem, 4vw, 3.1rem); }
.panel.is-open .panel-indicator { transform: rotate(180deg); background: rgba(32,213,196,.15); border-color: var(--teal); }
.panel.is-open:hover .panel-indicator { transform: rotate(180deg); }
.panel-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.panel.is-open .panel-body { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; min-height: 0; }
.panel-content { padding: 8px 40px 44px; opacity: 0; transform: translateY(-14px); transition: opacity .45s .1s, transform var(--dur) var(--ease); }
.panel.is-open .panel-content { opacity: 1; transform: none; }
.panel.instant, .panel.instant * { transition: none !important; }

.section-intro { font-size: 1.1rem; color: #cfe0ec; max-width: 46em; margin-bottom: 28px; }
.fine-print { color: var(--muted); font-size: .9rem; margin: 22px 0 0; }
.panel-content h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 30px 0 12px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service-card { padding: 24px 22px; border-radius: 14px; background: linear-gradient(160deg, rgba(19,44,70,.9), rgba(7,20,38,.6)); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.service-card:hover { border-color: rgba(32,213,196,.5); transform: translateY(-3px); }
.service-card svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 14px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Badges & tags */
.badge { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-teal { background: rgba(32,213,196,.14); color: var(--teal); border: 1px solid rgba(32,213,196,.45); }
.badge-gold { background: rgba(212,180,125,.12); color: var(--gold); border: 1px solid rgba(212,180,125,.45); }
.badge-violet { background: rgba(155,123,255,.14); color: #c7b6ff; border: 1px solid rgba(155,123,255,.5); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-list li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(19,44,70,.7); font-size: .88rem; }

/* Our Works */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
.project-grid-one { grid-template-columns: 1fr; max-width: 800px; }
.project-card {
  display: flex; flex-direction: column; gap: 10px; padding: 0 0 22px; text-align: left;
  border-radius: 16px; overflow: hidden; background: linear-gradient(170deg, #10294a, #0a1a30); border: 1px solid var(--line);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .3s;
}
.project-card > :not(.project-cover) { margin: 0 22px; }
.project-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 6px; background: #153744; }
.project-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transition: transform .7s var(--ease); }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #081c2bc9, transparent 65%); pointer-events: none; }
.cover-tag { position: absolute; z-index: 2; top: 16px; left: 16px; background: #082230e8; border: 1px solid #ffffff28; border-radius: 20px; padding: 6px 12px; font-size: .75rem; letter-spacing: .02em; }
.cover-tag::before { content: "●"; color: var(--teal); margin-right: 7px; }
.cover-screen { position: absolute; z-index: 2; right: 18px; bottom: 16px; width: 57%; border: 5px solid #0a1a24; border-radius: 10px; box-shadow: 0 12px 24px #0008; overflow: hidden; }
.cover-screen img { display: block; width: 100%; }
.marketing-cover { background: radial-gradient(ellipse at 80% 15%, #285b69, #102737 73%); }
.marketing-cover .cover-screen { width: 60%; right: 16px; bottom: 18px; }
.marketing-cover .cover-screen img { aspect-ratio: 1.85; object-fit: cover; object-position: top; }
.cover-copy { position: absolute; left: 20px; bottom: 24px; z-index: 2; width: 40%; display: grid; gap: 8px; }
.cover-copy span { font-size: .68rem; letter-spacing: .12em; color: var(--teal); font-weight: 700; text-transform: uppercase; }
.cover-copy strong { font-size: clamp(1.15rem, 2.1vw, 1.85rem); line-height: 1.12; letter-spacing: -.03em; color: var(--white); }
.project-category { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-top: 6px; }
.project-title { font-size: 1.3rem; font-weight: 800; margin: 0; }
.project-summary { color: var(--muted); font-size: .95rem; flex: 1; margin: 0; }
.project-note { color: var(--muted); font-size: .88rem; margin: 0; }
.case-top .badge { margin: 10px 0 8px; }
.case-note { margin: 0 34px 8px; padding: 14px 18px; border-left: 3px solid var(--teal); background: rgba(32,213,196,.07); border-radius: 0 10px 10px 0; color: #cfe0ec; font-size: .95rem; }
.project-open { color: var(--teal); font-weight: 700; font-size: .95rem; text-decoration: none; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
.project-open:hover { color: var(--white); }
.cover-tag-gold { border-color: rgba(212,180,125,.55); color: var(--gold); }
.cover-tag-gold::before { color: var(--gold); }
.wp-card { border-color: rgba(212,180,125,.38); }
.wp-card .project-category { color: var(--gold); }
.wp-card .project-open { color: var(--gold); border-top-color: rgba(212,180,125,.28); }
@media not all and (pointer: coarse) {
  .project-card:hover { border-color: rgba(32,213,196,.6); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 30px rgba(32,213,196,.12); }
  .project-card:hover .project-cover > img { transform: scale(1.06); }
  .wp-card:hover { border-color: rgba(212,180,125,.7); box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 28px rgba(212,180,125,.14); }
}
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.shot-grid li, .video-slot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.shot-grid img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.shot-grid span, .video-slot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: .82rem; color: var(--muted); background: rgba(7,20,38,.8); }
.video-slot { margin-top: 14px; max-width: 520px; }
.video-slot img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

/* Innovation Lab */
.lab-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; }
.lab-art { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(155,123,255,.45); }
.lab-art img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.lab-art figcaption, .founder-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px; font-size: .84rem; color: var(--muted); background: rgba(7,20,38,.8); }
.lab-text h3 { font-size: 2rem; margin: 12px 0; }
.lab-text p { color: #cfe0ec; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 40px; align-items: start; }
.founder-portrait { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.founder-portrait img { aspect-ratio: 5 / 6; width: 100%; object-fit: cover; }
.founder-text h3 { font-size: 2rem; margin: 4px 0 16px; }
.founder-text p { color: #cfe0ec; }
.founder-text .panel-kicker { margin: 0; }

/* ---------- Contact ---------- */
.contact { position: relative; margin-top: 90px; padding: 80px 28px 150px; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(32,213,196,.14), transparent 60%), linear-gradient(to bottom, var(--navy), #0a1c33); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.contact-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.contact h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-style: italic; margin-bottom: 20px; }
.contact p { color: #cfe0ec; }
.contact .btn { margin-top: 14px; }
.contact-shore { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; object-fit: cover; object-position: bottom; opacity: .9; pointer-events: none; }

.site-footer { background: #050e1b; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 8px 9px; font-size: .88rem; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #071426; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav .nav-contact { margin: 10px 0 0; justify-content: center; }
  .site-header, .site-header.is-scrolled { background: rgba(7,20,38,.97); backdrop-filter: none; }
  .ribbon-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ribbon-item { flex-direction: column; gap: 8px; text-align: center; font-size: .82rem; padding: 16px 8px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .explorer, .lab-feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .header-inner { padding: 0 16px; }
  .brand-logo { width: 44px; height: 30px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .2em; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero-image { object-position: 72% 50%; }
  .hero-canvas { height: 55%; }
  .hero-shade { background: linear-gradient(to bottom, rgba(7,20,38,.5) 0%, rgba(7,20,38,.35) 22%, rgba(7,20,38,.72) 42%, rgba(7,20,38,.6) 70%, var(--navy) 100%); }
  .hero-content { padding: calc(var(--header-h) + 40px) 20px 110px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ribbon { padding: 0 16px; margin-top: -56px; }
  .ribbon-list { grid-template-columns: 1fr 1fr; }
  .ribbon-list li:last-child { grid-column: 1 / -1; }
  .ribbon-list li + li .ribbon-item { border-left: 0; }
  .ribbon-list li .ribbon-item { border-top: 1px solid var(--line); }
  .ribbon-list li:nth-child(-n+2) .ribbon-item { border-top: 0; }
  .ribbon-list li:nth-child(even) .ribbon-item { border-left: 1px solid var(--line); }
  .ribbon-item { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; }
  .ribbon-item svg { width: 24px; height: 24px; }
  .panels { padding: 0 16px; margin-top: 40px; gap: 14px; }
  .panel-toggle { flex-wrap: wrap; align-items: flex-end; min-height: 0; padding: 150px 18px 20px; gap: 14px; }
  .panel-media { width: 100%; height: 132px; bottom: auto; }
  .panel-media::after { background: linear-gradient(0deg, var(--card) 0%, rgba(11,29,51,0) 60%); }
  .panel-indicator { width: 42px; height: 42px; }
  .panel.is-open .panel-toggle { min-height: 0; padding: 150px 18px 20px; }
  .panel.is-open .panel-media { height: 100%; }
  .panel-content { padding: 4px 18px 30px; }
  .project-grid, .detail-grid, .founder { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 260px; }
  .detail-content > :not(.detail-hero) { margin-left: 18px; margin-right: 18px; }
  .detail-hero-text { padding: 20px 18px 8px; }
  .explorer-result { padding: 22px 18px; min-height: 0; }
  .contact { padding: 64px 20px 130px; margin-top: 60px; }
}


/* Innovation Lab reserved space */
.future-slot { margin-top: 36px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(11,29,51,.4); }
.future-slot h4 { margin-top: 0; }
.future-slot p { color: var(--muted); margin: 0; }

/* ---------- Project detail pages ---------- */
.project-page { padding-top: var(--header-h); }
.project-main { padding-bottom: 40px; }
.project-wrap { width: min(1216px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 60px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--teal); font-size: .95rem; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.back-link:hover { color: var(--white); }
.case { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(130deg, #102b3a, #0a1d2b); overflow: hidden; }
.case-top { padding: 30px 34px 26px; border-bottom: 1px solid var(--line); }
.case-top .eyebrow, .eyebrow { color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--teal); }
.case-top h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.03em; margin: 0 0 8px; }
.case-top p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.story { padding: 28px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.story h2, .caps h2, .gallery-top h2, .links h2 { font-size: 1.15rem; margin: 0 0 8px; }
.story p { color: var(--muted); margin: 0; }
.media-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 28px; padding: 0 34px 30px; }
.video-frame { background: #071724; border: 1px solid #355666; border-radius: 14px; overflow: hidden; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16/9; background: #071724; }
.video-caption { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 15px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.video-caption strong { color: var(--white); }
.caps { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #0a1e2a; }
.cap { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #ffffff13; font-size: .95rem; }
.cap:first-of-type { border: 0; }
.cap i { font-style: normal; color: var(--teal); font-weight: 700; }
.cap small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.gallery { padding: 28px 34px 34px; border-top: 1px solid var(--line); }
.gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.gallery-top p { color: var(--muted); font-size: .95rem; margin: 4px 0 0; }
.gallery .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.gallery-intro { color: #cfe0ec; font-size: 1rem; margin: 0 0 18px; max-width: 46rem; line-height: 1.5; }
.thumb span { line-height: 1.3; }
.gallery .tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 30px; padding: 8px 17px; font-size: .88rem; cursor: pointer; }
.gallery .tabs button.active, .gallery .tabs button[aria-pressed="true"] { color: #06272c; background: var(--teal); border-color: var(--teal); font-weight: 700; }
.viewer { display: grid; grid-template-columns: minmax(0,1fr) 235px; gap: 18px; align-items: start; }
.large { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #071724; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.large img { display: block; width: 100%; }
.large[hidden] { display: none; }
.owner-intro-slide {
  display: flex; flex-direction: column; justify-content: center;
  box-sizing: border-box; width: 100%; min-height: 360px; aspect-ratio: 16 / 9;
  padding: 48px 42px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(130deg, #102b3a, #0a1d2b);
}
.owner-intro-slide[hidden] { display: none; }
.owner-intro-slide .eyebrow { margin: 0 0 14px; }
.owner-intro-slide h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; margin: 0 0 18px; max-width: 18ch; }
.owner-intro-slide blockquote { margin: 0; padding: 0; border: 0; max-width: 38rem; }
.owner-intro-slide blockquote p { color: #cfe0ec; font-size: 1.12rem; line-height: 1.55; margin: 0; }
.thumb-intro-mark { width: 82px; height: 46px; flex: none; border-radius: 4px; background: linear-gradient(130deg, #102b3a, #0a1d2b); border: 1px solid var(--line); }
.lightbox-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lightbox-nav button { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--white); padding: 7px 14px; cursor: pointer; }
.lightbox-nav button:hover { border-color: var(--teal); color: var(--teal); }
.cap-owner small { color: #cfe0ec; }

.thumb-list { display: grid; gap: 8px; max-height: 470px; overflow: auto; padding: 1px; }
.thumb { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: #0b1e2b; border-radius: 8px; padding: 6px; color: var(--muted); font-size: .78rem; cursor: pointer; width: 100%; }
.thumb img { width: 82px; border-radius: 4px; flex: none; }
.thumb.active, .thumb[aria-pressed="true"] { border-color: var(--teal); color: var(--white); }
.gallery-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.gallery-nav button { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--white); padding: 7px 14px; cursor: pointer; }
.gallery-nav button:hover { border-color: var(--teal); color: var(--teal); }
.gallery-nav small { color: var(--muted); }
.links { padding: 24px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.links p { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta { background: var(--teal); color: #05292d; padding: 10px 17px; border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.cta:hover { background: #7ff5ea; }
.lightbox { border: 0; padding: 12px; background: #061420; max-width: 96vw; max-height: 94vh; border-radius: 10px; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: 94vw; max-height: 85vh; display: block; margin: 0 auto; }
.lightbox-close { display: block; margin: 0 0 10px auto; color: var(--white); background: #173747; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.lightbox-close:hover { background: var(--teal); color: var(--navy); }


/* Wizards Path presentation */
.case-lab { border-color: rgba(212,180,125,.32); }
.case-lab .eyebrow { color: var(--gold); }
.case-lab .eyebrow::before { background: var(--gold); }
.wp-card .project-cover::after { background: linear-gradient(0deg, #081c2ba6, transparent 48%); }
.case-lab .case-top { border-bottom-color: rgba(212,180,125,.28); }
.wp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; margin: 0; padding: 26px 34px; border-bottom: 1px solid rgba(212,180,125,.22); }
.wp-facts > div { margin: 0; }
.wp-facts dt { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.wp-facts dd { margin: 0; color: var(--white); font-size: .98rem; }
.wp-art-block { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 28px; align-items: center; padding: 28px 34px; border-bottom: 1px solid var(--line); }
.wp-art { margin: 0; }
.wp-art-button { display: block; width: 100%; padding: 0; border: 1px solid rgba(212,180,125,.4); border-radius: 12px; overflow: hidden; background: #0a1624; cursor: pointer; }
.wp-art-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wp-art-button img { display: block; width: 100%; height: auto; }
.wp-art figcaption { margin-top: 10px; }
.art-label { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.art-disclosure { margin: 0; padding: 16px 18px; border-left: 3px solid var(--gold); background: rgba(212,180,125,.08); border-radius: 0 10px 10px 0; color: #e8dcc4; font-size: .95rem; line-height: 1.55; }
.wp-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px 36px; padding: 28px 34px; border-bottom: 1px solid var(--line); }
.wp-copy h2, .wp-philosophy h2, .wp-development h2 { margin: 0 0 12px; font-size: 1.15rem; }
.wp-copy p, .wp-development p { color: #cfe0ec; margin: 0 0 12px; }
.wp-copy p:last-child, .wp-development p:last-child { margin-bottom: 0; }
.wp-highlights { margin: 0; padding: 0 0 0 1.15em; color: #cfe0ec; }
.wp-highlights li { margin: 0 0 8px; }
.wp-highlights li:last-child { margin-bottom: 0; }
.wp-philosophy { margin: 0; padding: 26px 34px; border-bottom: 1px solid var(--line); border-left: 0; }
.wp-philosophy p { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--gold); }
.wp-development { padding: 26px 34px 32px; }

@media (max-width: 1020px) {
  .project-grid-two, .project-grid-one { max-width: none; }
  .story, .media-grid, .viewer, .wp-art-block, .wp-copy { grid-template-columns: 1fr; }
  .wp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 240px; }
  .thumb img { width: 62px; }
}
@media (max-width: 720px) {
  .project-grid, .project-grid-two, .project-grid-one { grid-template-columns: 1fr; }
  .project-wrap { width: calc(100% - 32px); padding: 20px 0 40px; }
  .case-top, .story, .gallery, .links, .wp-facts, .wp-art-block, .wp-copy, .wp-philosophy, .wp-development { padding: 22px; }
  .wp-facts { grid-template-columns: 1fr; gap: 16px; }
  .case-note { margin-left: 22px; margin-right: 22px; }
  .media-grid { padding: 0 22px 22px; gap: 16px; }
  .case-lab .eyebrow { align-items: flex-start; letter-spacing: .12em; }
  .case-lab .eyebrow::before { margin-top: .75em; }
  .owner-intro-slide { aspect-ratio: auto; min-height: 320px; padding: 28px 22px; }
  .thumb-intro-mark { width: 62px; height: 36px; }
  .cover-copy { left: 14px; bottom: 18px; }
  .cover-copy strong { font-size: 1.2rem; }
  .marketing-cover .cover-screen { right: 10px; bottom: 16px; width: 57%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hero-image, .hero-content { transform: none !important; }
}
