/* ============================================================
   DESTINATION54 — "Ink & Terracotta" (v2)
   Sections alternate between dark (ink) and light (sand) bands.
   Each band sets the same variable names, so components simply
   use var(--bg), var(--text), etc. and adapt automatically.
   The previous ivory design is saved in design/v1-ivory/.
   ============================================================ */
:root {
  --ink:#15171b; --ink-2:#1e2126;
  --sand:#f2ece2; --sand-2:#fffaf3;
  --accent:#c4663d; --accent-light:#e8a07c; --accent-dark:#9a4a27;
  --serif:'DM Serif Display', Georgia, serif;
  --sans:'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --wrap:1200px;
  --gutter:max(1.5rem, calc((100% - var(--wrap)) / 2));
}
/* dark bands */
:root, .site-header, .hero, .page-hero, .footage, .learn-teaser, .process, .faq, .site-footer, .lightbox {
  --bg:var(--ink); --panel:var(--ink-2);
  --text:#f3eee6; --muted:#a8a197;
  --line:rgba(243,238,230,.14);
  --accent-text:var(--accent-light);
}
/* light bands */
.services, .learn:not(.learn-teaser), .about, .contact, .login, .portal, .portal-modal, .service-detail, .gallery-section, .guide {
  --bg:var(--sand); --panel:var(--sand-2);
  --text:#1b1b1d; --muted:#6b6459;
  --line:rgba(27,27,29,.13);
  --accent-text:var(--accent-dark);
}
/* accent band */
.cta {
  --bg:var(--accent); --panel:var(--accent-dark);
  --text:#fff8f2; --muted:rgba(255,248,242,.85);
  --line:rgba(255,255,255,.3);
  --accent-text:#fff8f2;
}
section, .site-header, .site-footer {background:var(--bg); color:var(--text);}

/* ============================================================
   BASE
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0;}
html {scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%;}
a, button, summary {-webkit-tap-highlight-color:transparent;}
body {
  background:var(--ink); color:var(--text);
  font-family:var(--sans); font-weight:400; font-size:1.02rem;
  line-height:1.7; -webkit-font-smoothing:antialiased;
}
img {max-width:100%; display:block;}
a {color:inherit;}
::selection {background:var(--accent); color:#fff;}

.eyebrow {
  display:inline-flex; align-items:center; gap:.75rem;
  font-size:.75rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent-text); margin-bottom:1.25rem;
}
.eyebrow::before {content:""; width:28px; height:2px; background:var(--accent);}

.section-title {
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2.6rem, 6vw, 4.5rem); line-height:1.05; letter-spacing:-.01em;
  max-width:var(--wrap); margin:0 auto 3.5rem;
}
.section-title::after {content:"."; color:var(--accent);}

.sub-title {
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2rem, 4vw, 3rem); line-height:1.1;
  max-width:var(--wrap); margin:0 auto 2.5rem;
}

.btn {
  display:inline-flex; align-items:center; gap:.5rem; padding:.95rem 1.9rem;
  border:1.5px solid var(--text); border-radius:999px;
  background:transparent; color:var(--text);
  font:600 .85rem var(--sans); letter-spacing:.04em;
  text-decoration:none; cursor:pointer;
  transition:background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover {background:var(--text); color:var(--bg); transform:translateY(-2px);}
.btn-solid {background:var(--accent); border-color:var(--accent); color:#fff;}
.btn-solid:hover {background:var(--accent-dark); border-color:var(--accent-dark); color:#fff;}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; gap:2rem;
  padding:.9rem var(--gutter);
  background:color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  transition:padding .35s var(--ease);
}
.logo img {height:58px; width:auto; transition:height .35s var(--ease);}
/* bigger tap area; taps on the picture go to the link, not the image */
.logo, .site-footer a:has(.footer-logo) {
  display:inline-flex; align-items:center; padding:8px; margin:-8px; position:relative; z-index:2;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.logo img, .footer-logo {pointer-events:none; -webkit-user-drag:none; -webkit-touch-callout:none; user-select:none;}
.site-header.scrolled {padding-top:.5rem; padding-bottom:.5rem;}
.site-header.scrolled .logo img {height:44px;}
.main-nav {margin-left:auto; display:flex; align-items:center; gap:2.25rem;}
.main-nav a {
  position:relative; text-decoration:none;
  font-size:.9rem; font-weight:500; color:var(--muted); transition:color .3s;
}
.main-nav a::after {
  content:""; position:absolute; left:50%; bottom:-8px; width:5px; height:5px; border-radius:50%;
  background:var(--accent); transform:translateX(-50%) scale(0); transition:transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active {color:var(--text);}
.main-nav a.active::after, .main-nav a:hover::after {transform:translateX(-50%) scale(1);}
.main-nav .nav-login {
  padding:.55rem 1.3rem; border-radius:999px; background:var(--accent); color:#fff;
}
.main-nav .nav-login:hover {background:var(--accent-dark); color:#fff;}
.main-nav .nav-login::after {display:none;}
.nav-toggle {display:none;}

/* ============================================================
   HOME HERO — split: text left, photo collage right
   ============================================================ */
.hero {
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:4rem;
  min-height:calc(100vh - 80px); padding:5rem var(--gutter);
}
.hero::before { /* warm glow behind the collage */
  content:""; position:absolute; right:-10%; top:10%; width:60%; aspect-ratio:1;
  background:radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%);
  pointer-events:none;
}
.hero-skyline {
  position:absolute; inset:auto 0 0 0; height:32%; opacity:.07; pointer-events:none;
  background:var(--sand);
  -webkit-mask:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNYXggc2xpY2UiPgo8ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImciIHgxPSIwIiB5MT0iMCIgeDI9IjAiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNENEFGMzciIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0Q0QUYzNyIgc3RvcC1vcG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:400;
  font-size:clamp(3.2rem, 7.5vw, 6.8rem); line-height:.98; letter-spacing:-.02em;
}
.hero h1 span {font-style:italic; color:var(--accent-light);}
.ornament {width:64px; height:2px; background:var(--accent); margin:2rem 0;}
.hero-sub {font-size:1.05rem; color:var(--muted); max-width:30rem;}
.hero-actions {display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.5rem;}

.hero-collage {position:relative; z-index:2; height:min(620px, 70vh);}
.hero-collage img, .hero-collage video {
  position:absolute; object-fit:cover; border-radius:6px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-collage .c1 {width:62%; height:72%; right:0; top:0;}
.hero-collage .c2 {width:48%; height:42%; left:0; top:22%; border:6px solid var(--ink);}
.hero-collage .c3 {width:42%; height:40%; right:10%; bottom:0; border:6px solid var(--ink);}

/* ============================================================
   SERVICE PAGE HERO — split: text left, large photo right
   ============================================================ */
.page-hero {position:relative; overflow:hidden; padding:6rem var(--gutter) 5rem;}
.page-hero .hero-skyline {height:38%;}
.page-hero-content {position:relative; z-index:2; max-width:var(--wrap); margin:0 auto;}
.page-hero-content:has(.circle-lg) {
  display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr auto auto auto 1fr;
  column-gap:5rem;
}
.page-hero-content > :not(.circle-lg) {grid-column:1;}
.page-hero-content:has(.circle-lg) .breadcrumb {grid-row:2;}
.page-hero-content:has(.circle-lg) h1 {grid-row:3;}
.page-hero-content:has(.circle-lg) .tagline {grid-row:4;}
.page-hero .section-title {margin:0 0 1rem;}
.breadcrumb {font-size:.8rem; color:var(--muted); margin-bottom:1.5rem; align-self:end;}
.breadcrumb a {color:var(--accent-text); text-decoration:none; font-weight:600;}
.tagline {font-family:var(--serif); font-style:italic; font-size:1.6rem; color:var(--muted);}

/* ============================================================
   PHOTO FRAMES (.circle is now a rectangular frame)
   ============================================================ */
.circle {
  position:relative; display:grid; place-items:center; overflow:hidden;
  border-radius:6px; background:var(--panel);
}
.circle svg {
  width:30%; height:30%; fill:none; stroke:var(--accent);
  stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round;
}
.circle::after { /* photo layer: covers the icon once the image exists */
  content:""; position:absolute; inset:0;
  background:var(--img) center/cover no-repeat;
  transition:transform .9s var(--ease);
}
.circle-lg {
  grid-column:2; grid-row:1 / span 5; aspect-ratio:5/6; width:100%;
  box-shadow:18px 18px 0 var(--accent);
}

/* ============================================================
   HOME SERVICES — alternating zig-zag rows
   ============================================================ */
.services {padding:8rem var(--gutter);}
.services:not(.other-services) .grid {
  display:grid; gap:7rem; max-width:var(--wrap); margin:0 auto; counter-reset:svc;
}
.services:not(.other-services) .item {
  counter-increment:svc;
  display:grid; grid-template-columns:1.15fr 1fr; grid-template-rows:1fr auto 1fr;
  column-gap:5rem; text-decoration:none; color:inherit;
}
.services:not(.other-services) .item .circle {
  grid-column:1; grid-row:1 / span 3; aspect-ratio:4/3;
  box-shadow:18px 18px 0 color-mix(in srgb, var(--accent) 85%, transparent);
  transition:box-shadow .5s var(--ease);
}
.services:not(.other-services) .item h3 {
  grid-column:2; grid-row:1; align-self:end;
  font-family:var(--serif); font-weight:400; font-size:clamp(2rem, 3.5vw, 3rem); line-height:1.1;
}
.services:not(.other-services) .item h3::before {
  content:counter(svc, decimal-leading-zero); display:block;
  font-family:var(--sans); font-size:.8rem; font-weight:600; letter-spacing:.2em;
  color:var(--accent-text); margin-bottom:1rem;
}
.services:not(.other-services) .item p {
  grid-column:2; grid-row:2; margin-top:1rem; font-size:1.1rem; color:var(--muted);
}
.services:not(.other-services) .item::after {
  content:"Explore  →"; grid-column:2; grid-row:3; align-self:start; margin-top:1.5rem;
  font-size:.85rem; font-weight:600; letter-spacing:.06em; color:var(--accent-text);
  transition:letter-spacing .3s var(--ease);
}
/* every second row flips: image on the right */
.services:not(.other-services) .item:nth-child(even) {grid-template-columns:1fr 1.15fr;}
.services:not(.other-services) .item:nth-child(even) .circle {
  grid-column:2; box-shadow:-18px 18px 0 color-mix(in srgb, var(--accent) 85%, transparent);
}
.services:not(.other-services) .item:nth-child(even) > h3,
.services:not(.other-services) .item:nth-child(even) > p,
.services:not(.other-services) .item:nth-child(even)::after {grid-column:1;}
.services .item:hover .circle::after {transform:scale(1.05);}
.services:not(.other-services) .item:hover::after {letter-spacing:.14em;}

/* "Other services" strip on service pages — small cards */
.other-services {padding:6rem var(--gutter); border-top:1px solid var(--line);}
.other-services .sub-title {text-align:left;}
.other-services .grid {
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1.5rem;
}
.other-services .item {text-decoration:none; color:inherit;}
.other-services .circle {aspect-ratio:4/3;}
.other-services h3 {margin-top:1rem; font-family:var(--serif); font-weight:400; font-size:1.35rem;}
.other-services .item:hover h3 {color:var(--accent-text);}

/* ============================================================
   ABOUT
   ============================================================ */
.about {padding:8rem var(--gutter);}
.about-inner {max-width:var(--wrap); margin:0 auto;}
.about-inner > p {
  font-family:var(--serif); font-size:clamp(1.6rem, 3.2vw, 2.5rem); line-height:1.35; max-width:52rem;
}
.stats {list-style:none; display:grid; grid-template-columns:repeat(3, 1fr); gap:2rem; margin-top:5rem;}
.stats li {padding-top:1.5rem; border-top:2px solid var(--accent);}
.stats strong {display:block; font-family:var(--serif); font-weight:400; font-size:2.2rem;}
.stats span {color:var(--muted);}

/* ============================================================
   CONTACT — two columns
   ============================================================ */
.contact {
  padding:8rem var(--gutter);
  display:grid; grid-template-columns:1fr 1.2fr; gap:5rem; align-items:start;
}
.contact .section-title {margin-bottom:1.5rem;}
.contact-lead {color:var(--muted); font-size:1.1rem; max-width:26rem;}
.contact-points {list-style:none; margin-top:2.5rem; display:grid; gap:.75rem;}
.contact-points li {display:flex; align-items:center; gap:.9rem; font-weight:500;}
.contact-points li::before {content:""; width:8px; height:8px; border-radius:50%; background:var(--accent);}
.contact-form {
  display:grid; gap:1.5rem; padding:2.75rem;
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
}
.contact-form .row {display:grid; grid-template-columns:1fr 1fr; gap:1.5rem;}
.contact-form label {display:grid; grid-template-columns:auto 1fr; justify-content:start; column-gap:.3rem; row-gap:.5rem; font-size:.82rem; font-weight:500; color:var(--muted);}
.contact-form input, .contact-form select, .contact-form textarea {
  grid-column:1 / -1; width:100%; padding:.9rem 1rem; font:400 1rem var(--sans); color:var(--text);
  background:var(--bg); border:1px solid var(--line); border-radius:6px;
  transition:border-color .3s, box-shadow .3s;
}
.contact-form select {
  -webkit-appearance:none; appearance:none; cursor:pointer; padding-right:2.75rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c4663d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1rem center;
}
.contact-form select:invalid {color:var(--muted);}
.contact-form select option {background:var(--panel); color:var(--text);}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.contact-form .btn {
  justify-self:start; background:var(--accent); border-color:var(--accent); color:#fff;
}
.contact-form .btn:hover {background:var(--accent-dark); border-color:var(--accent-dark);}
.contact-form .req {color:var(--accent); font-weight:600;}
.form-note {font-size:.8rem; color:var(--muted); margin-bottom:-.5rem;}
.contact-form .honeypot {position:absolute; left:-9999px; width:1px; height:1px; opacity:0;}
.contact-form .btn:disabled {opacity:.6; cursor:wait;}
.form-status {color:var(--accent-text); font-weight:500; min-height:1.5em;}

/* ============================================================
   SERVICE PAGES
   ============================================================ */
.service-detail {padding:7rem var(--gutter) 3rem;}
.service-detail-inner {
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:2rem 5rem; align-items:start;
}
.service-intro {font-family:var(--serif); font-size:clamp(1.5rem, 2.8vw, 2.1rem); line-height:1.35; grid-row:1 / span 2;}
.service-detail .sub-title {font-size:1rem; font-family:var(--sans); font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-text); margin:0;}
.included {list-style:none; display:grid; gap:0;}
.included li {
  display:flex; gap:1rem; align-items:baseline;
  padding:1rem 0; border-bottom:1px solid var(--line); font-weight:500;
}
.included li::before {content:"✓"; color:var(--accent); font-weight:700;}

.gallery-section {padding:3rem var(--gutter) 7rem;}
.gallery {
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:1rem;
  height:min(640px, 70vw);
}
.gallery figure {overflow:hidden; border-radius:6px;}
.gallery figure:first-child {grid-row:1 / span 2;}
.gallery img {width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease);}
.gallery figure:hover img {transform:scale(1.05);}

/* Process — horizontal timeline */
.process {padding:8rem var(--gutter);}
.steps {
  list-style:none; max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:2rem; position:relative;
}
.steps::before {content:""; position:absolute; left:0; right:0; top:1.6rem; height:1px; background:var(--line);}
.steps li {position:relative;}
.step-num {
  position:relative; display:grid; place-items:center; width:3.2rem; height:3.2rem; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:600; font-size:.9rem;
}
.steps h3 {margin:1.5rem 0 .5rem; font-family:var(--serif); font-weight:400; font-size:1.6rem;}
.steps p {color:var(--muted);}

/* Guide — article layout */
.guide {padding:8rem var(--gutter);}
.guide-inner {max-width:860px; margin:0 auto;}
.guide-title {
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2.2rem, 4.5vw, 3.4rem); line-height:1.1; margin-bottom:3rem;
}
.takeaways {
  padding:2.25rem 2.5rem; margin-bottom:4rem;
  background:var(--panel); border-radius:10px; border-top:4px solid var(--accent);
  box-shadow:0 20px 40px -30px rgba(0,0,0,.35);
}
.takeaways h3 {font-size:.78rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-text); margin-bottom:1rem;}
.takeaways ul {padding-left:1.1rem; display:grid; gap:.6rem;}
.takeaways li::marker {color:var(--accent);}
.tips {list-style:none; counter-reset:tip; display:grid; gap:0;}
.tips li {
  counter-increment:tip; display:grid; grid-template-columns:5rem 1fr;
  padding:2rem 0; border-top:1px solid var(--line);
}
.tips li::before {
  content:counter(tip, decimal-leading-zero); grid-row:1 / span 2;
  font-family:var(--serif); font-size:2.6rem; line-height:1; color:var(--accent);
}
.tips h3 {font-family:var(--serif); font-weight:400; font-size:1.7rem; line-height:1.2; margin-bottom:.5rem;}
.tips p {color:var(--muted); grid-column:2;}

/* FAQ */
.faq {padding:8rem var(--gutter);}
.faq-list {max-width:var(--wrap); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:1rem;}
.faq details {
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
  transition:border-color .3s;
}
.faq details[open] {border-color:var(--accent);}
.faq summary {
  list-style:none; cursor:pointer; position:relative;
  padding:1.5rem 3.5rem 1.5rem 1.75rem; font-weight:600; font-size:1.05rem;
}
.faq summary::-webkit-details-marker {display:none;}
.faq summary::after {
  content:"+"; position:absolute; right:1.25rem; top:50%; transform:translateY(-50%);
  display:grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:400; font-size:1.2rem; line-height:1;
  transition:transform .3s var(--ease);
}
.faq details[open] summary::after {transform:translateY(-50%) rotate(45deg);}
.faq details p {padding:0 1.75rem 1.75rem; color:var(--muted);}

/* CTA — terracotta band */
.cta {padding:6rem var(--gutter); text-align:center;}
.cta .sub-title {margin-bottom:1rem;}
.cta p {color:var(--muted); font-size:1.1rem; margin-bottom:2.25rem;}
.cta .btn {background:var(--ink); border-color:var(--ink); color:#fff;}
.cta .btn:hover {background:#fff; border-color:#fff; color:var(--ink);}

/* ============================================================
   LEARN CARDS
   ============================================================ */
.learn {padding:6rem var(--gutter) 8rem;}
.learn-teaser {padding-top:8rem;}
.cards {max-width:var(--wrap); margin:0 auto; display:grid; grid-template-columns:repeat(3, 1fr); gap:2rem;}
.card {
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
  background:var(--panel); border-radius:10px; overflow:hidden;
  box-shadow:0 1px 0 var(--line);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {transform:translateY(-6px); box-shadow:0 30px 50px -25px rgba(0,0,0,.35);}
.card-img {aspect-ratio:16/10; overflow:hidden;}
.card-img img {width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease);}
.card:hover .card-img img {transform:scale(1.05);}
.card-body {padding:1.75rem; display:flex; flex-direction:column; gap:.75rem; flex:1;}
.card-meta {font-size:.75rem; font-weight:500; color:var(--muted);}
.card-meta span {
  display:inline-block; padding:.2rem .7rem; margin-right:.3rem; border-radius:999px;
  background:color-mix(in srgb, var(--accent) 14%, transparent); color:var(--accent-text); font-weight:600;
}
.card h3 {font-family:var(--serif); font-weight:400; font-size:1.55rem; line-height:1.2;}
.card-body > p:not(.card-meta) {font-size:.95rem; color:var(--muted);}
.card-link {margin-top:auto; padding-top:.5rem; font-size:.85rem; font-weight:600; color:var(--accent-text);}
.card-featured {grid-column:1 / -1; flex-direction:row;}
.card-featured .card-img {flex:1.3; aspect-ratio:auto; min-height:380px;}
.card-featured .card-body {flex:1; justify-content:center; padding:3rem;}
.card-featured h3 {font-size:2.3rem;}
.learn-more {text-align:center; margin-top:3.5rem;}

/* ============================================================
   FOOTAGE — filterable video wall
   ============================================================ */
.footage {padding:8rem var(--gutter);}
.footage-head {
  max-width:var(--wrap); margin:0 auto 3rem;
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1.5rem 2rem;
}
.footage-head .section-title {margin:0;}
.filters {display:flex; flex-wrap:wrap; gap:.5rem;}
.filter {
  padding:.6rem 1.2rem; border-radius:999px; cursor:pointer;
  background:transparent; border:1px solid var(--line); color:var(--muted);
  font:500 .85rem var(--sans); transition:background .3s, color .3s, border-color .3s;
}
.filter:hover {color:var(--text); border-color:var(--text);}
.filter.is-active {background:var(--accent); border-color:var(--accent); color:#fff;}
.clips {
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:repeat(3, 1fr); grid-auto-rows:230px; grid-auto-flow:dense; gap:1rem;
}
.clip {
  position:relative; overflow:hidden; border:0; padding:0; cursor:pointer;
  border-radius:8px; background:var(--panel); color:#fff; text-align:left;
}
.clip.is-feature {grid-column:span 2; grid-row:span 2;}
.clip.is-hidden {display:none;}
.clip video {width:100%; height:100%; object-fit:cover; display:block; transition:transform .9s var(--ease);}
.clip:hover video {transform:scale(1.05);}
.clip::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, transparent 45%, rgba(10,10,12,.8));
}
.clip-meta {
  position:absolute; left:1.25rem; right:4rem; bottom:1.1rem; z-index:2;
  font-family:var(--serif); font-size:1.35rem; line-height:1.2;
}
.clip.is-feature .clip-meta {font-size:2rem; left:1.75rem; bottom:1.5rem;}
.clip-cat {
  display:block; margin-bottom:.35rem;
  font:600 .68rem var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--accent-light);
}
.clip-play {
  position:absolute; right:1rem; bottom:1rem; z-index:2; width:2.6rem; height:2.6rem; border-radius:50%;
  background:rgba(255,255,255,.18); backdrop-filter:blur(6px);
  transition:background .3s, transform .3s var(--ease);
}
.clip-play::before {
  content:""; position:absolute; left:54%; top:50%; transform:translate(-50%,-50%);
  border-left:11px solid #fff; border-top:7px solid transparent; border-bottom:7px solid transparent;
}
.clip:hover .clip-play {background:var(--accent); transform:scale(1.1);}

.lightbox {
  position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:1.5rem;
  background:rgba(8,8,10,.92); backdrop-filter:blur(6px);
}
.lightbox[hidden] {display:none;}
.lightbox video {width:min(1100px, 100%); max-height:85vh; border-radius:8px; background:#000;}
.lightbox-close {
  position:absolute; top:1rem; right:1.25rem; width:2.8rem; height:2.8rem; border-radius:50%;
  border:1px solid rgba(255,255,255,.3); background:transparent; color:#fff; font-size:1.8rem; line-height:1; cursor:pointer;
}
.lightbox-close:hover {background:var(--accent); border-color:var(--accent);}

/* ============================================================
   LOGIN
   ============================================================ */
.login {display:grid; grid-template-columns:1.1fr 1fr; min-height:calc(100vh - 80px);}
.login-media {position:relative; overflow:hidden; background:var(--ink);}
.login-media video {position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.login-media::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,10,12,.1) 30%, rgba(10,10,12,.85));
}
.login-media-text {position:absolute; left:3rem; right:3rem; bottom:3rem; z-index:2; color:#fff;}
.login-media-text .eyebrow {color:var(--accent-light);}
.login-quote {font-family:var(--serif); font-size:clamp(1.8rem, 3vw, 2.6rem); line-height:1.2; max-width:28rem;}
.login-panel {display:grid; place-items:center; padding:4rem 1.5rem;}
.login-form {width:min(420px, 100%); display:grid; gap:1.25rem;}
.login-form .section-title {font-size:clamp(2.4rem, 4vw, 3.2rem); margin:0;}
.login-lead {color:var(--muted); margin-bottom:.5rem;}
.login-form > label {display:grid; gap:.5rem; font-size:.82rem; font-weight:500; color:var(--muted);}
.login-form input[type="email"], .login-form input[type="password"], .login-form input[type="text"] {
  width:100%; padding:.9rem 1rem; font:400 1rem var(--sans); color:var(--text);
  background:var(--panel); border:1px solid var(--line); border-radius:6px;
  transition:border-color .3s, box-shadow .3s;
}
.login-form input:focus {
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.password-field {position:relative; display:block;}
.password-field input {padding-right:4.5rem !important;}
.show-password {
  position:absolute; right:.75rem; top:50%; transform:translateY(-50%);
  background:none; border:0; cursor:pointer; font:600 .8rem var(--sans); color:var(--accent-text);
}
.login-row {display:flex; justify-content:space-between; align-items:center; gap:1rem; font-size:.9rem;}
.checkbox {display:flex; align-items:center; gap:.5rem; cursor:pointer;}
.checkbox input {accent-color:var(--accent); width:1rem; height:1rem;}
.login-row a, .login-alt a {color:var(--accent-text); font-weight:600; text-decoration:none;}
.login-row a:hover, .login-alt a:hover {text-decoration:underline;}
.login-form .btn {justify-content:center; width:100%; margin-top:.5rem;}
.login-alt {text-align:center; color:var(--muted); font-size:.95rem; padding-top:1rem; border-top:1px solid var(--line);}

/* ============================================================
   CLIENT PORTAL
   ============================================================ */
.demo-note {
  font-size:.85rem; color:var(--muted); padding:.7rem 1rem; border-radius:6px;
  background:color-mix(in srgb, var(--accent) 10%, transparent);
}
.demo-note strong {color:var(--text); font-weight:600;}
.portal {padding:4rem var(--gutter) 7rem; min-height:70vh;}
.portal-inner {max-width:var(--wrap); margin:0 auto; display:grid; gap:1.75rem;}
.portal-head {display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1.5rem;}
.portal-head .section-title {margin:0 0 .5rem; font-size:clamp(2.2rem, 5vw, 3.6rem);}
.portal-sub {color:var(--muted);}
.tabs {
  display:flex; gap:.25rem; overflow-x:auto; scrollbar-width:none;
  border-bottom:1px solid var(--line);
}
.tabs::-webkit-scrollbar {display:none;}
.tab {
  flex:none; padding:.9rem 1.2rem; background:none; border:0; cursor:pointer;
  font:500 .95rem var(--sans); color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tab:hover {color:var(--text);}
.tab.is-active {color:var(--text); border-bottom-color:var(--accent); font-weight:600;}
.toolbar {display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1.25rem; margin-bottom:1.25rem;}
.toolbar-hint {font-size:.85rem; color:var(--muted);}
.link-btn {
  background:none; border:0; padding:0; cursor:pointer;
  font:600 .9rem var(--sans); color:var(--accent-text);
}
.link-btn:hover {text-decoration:underline;}
.act {
  display:inline-flex; align-items:center; padding:.45rem .85rem; border-radius:999px; cursor:pointer;
  background:transparent; border:1px solid var(--line); color:var(--text);
  font:500 .8rem var(--sans); text-decoration:none; white-space:nowrap;
  transition:border-color .2s, background .2s;
}
.act:hover:not(:disabled) {border-color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent);}
.act:disabled {opacity:.4; cursor:default;}
.act:focus-visible, .tab:focus-visible, .link-btn:focus-visible, .photo-view:focus-visible {outline:2px solid var(--accent); outline-offset:2px;}

.photo-grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:1.25rem;}
.photo {position:relative; background:var(--panel); border-radius:8px; overflow:hidden; border:2px solid transparent; transition:border-color .2s;}
.photo.is-picked {border-color:var(--accent);}
.photo-view {display:block; width:100%; padding:0; border:0; cursor:zoom-in; background:none; aspect-ratio:4/3; overflow:hidden;}
.photo-view img {width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease);}
.photo-view:hover img {transform:scale(1.04);}
.photo-pick {position:absolute; top:.6rem; left:.6rem; cursor:pointer;}
.photo-pick input {position:absolute; opacity:0; width:1px; height:1px;}
.photo-pick span {
  display:grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:50%;
  background:rgba(20,20,22,.45); border:2px solid #fff; backdrop-filter:blur(4px);
}
.photo-pick input:checked + span {background:var(--accent); border-color:var(--accent);}
.photo-pick input:checked + span::after {content:"✓"; color:#fff; font-size:.9rem; font-weight:700;}
.photo-pick input:focus-visible + span {outline:2px solid var(--accent); outline-offset:2px;}
.photo figcaption {display:grid; gap:.6rem; padding:.85rem;}
.photo-name {font-weight:600; font-size:.9rem;}
.photo-actions {display:flex; flex-wrap:wrap; gap:.4rem;}

.selection-bar {
  position:fixed; z-index:20; left:50%; transform:translateX(-50%);
  bottom:calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width:min(680px, calc(100% - 2rem));
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem;
  padding:.8rem 1rem .8rem 1.25rem; border-radius:14px;
  background:var(--ink); color:#f3eee6; box-shadow:0 20px 40px -15px rgba(0,0,0,.5);
}
.selection-bar[hidden] {display:none;}
.selection-bar #sel-count {font-weight:600;}
.selection-actions {display:flex; flex-wrap:wrap; align-items:center; gap:.5rem;}
.selection-bar .act {color:#f3eee6; border-color:rgba(243,238,230,.3);}
.selection-bar .link-btn {color:var(--accent-light);}
.selection-bar .btn {padding:.55rem 1.1rem;}

.film-grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:1.5rem;}
.film {background:var(--panel); border-radius:8px; overflow:hidden;}
.film video {width:100%; aspect-ratio:16/9; display:block; background:#000;}
.film figcaption {display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem;}
.film small, .doc small {color:var(--muted);}

.doc-list {list-style:none; display:grid; gap:.75rem;}
.doc {
  display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:1rem;
  padding:1.1rem 1.25rem; background:var(--panel); border-radius:8px; border:1px solid var(--line);
}
.doc-info {display:grid; gap:.15rem; min-width:0;}
.doc-badge {
  font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:.25rem .65rem; border-radius:999px;
  background:color-mix(in srgb, #3f8a5a 15%, transparent); color:#2f6e46;
}
.doc-actions {display:flex; flex-wrap:wrap; gap:.4rem;}

.empty {color:var(--muted); padding:2rem; text-align:center; background:var(--panel); border-radius:8px;}
#orders-list {display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));}
.order-card {padding:1.25rem; background:var(--panel); border-radius:8px; border:1px solid var(--line); display:grid; gap:.6rem;}
.order-card header, .order-card footer, .order-card li {display:flex; justify-content:space-between; gap:1rem;}
.order-card ul {list-style:none; display:grid; gap:.35rem; font-size:.9rem;}
.order-card footer {padding-top:.6rem; border-top:1px solid var(--line);}
.order-meta {font-size:.85rem; color:var(--muted);}

/* pop-up */
body.modal-open {overflow:hidden;}
.portal-modal {
  position:fixed; inset:0; z-index:100; display:grid; place-items:center;
  padding:calc(1rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background:rgba(12,12,14,.75); backdrop-filter:blur(4px); background-color:rgba(12,12,14,.75);
}
.portal-modal[hidden] {display:none;}
.modal-card {
  position:relative; width:min(560px, 100%); max-height:100%; overflow:auto;
  background:var(--sand-2); color:var(--text); border-radius:12px; padding:2rem;
}
.modal-card.is-wide {width:min(1000px, 100%);}
.modal-close {
  position:absolute; top:.75rem; right:.75rem; z-index:2; width:2.4rem; height:2.4rem; border-radius:50%;
  border:0; background:var(--sand); color:var(--text); font-size:1.5rem; line-height:1; cursor:pointer;
}
.modal-close:hover {background:var(--accent); color:#fff;}
.viewer {display:grid; gap:1rem;}
.viewer img {width:100%; max-height:70vh; object-fit:contain; background:var(--ink); border-radius:6px;}
.viewer figcaption {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; font-weight:600;}
.viewer .btn {padding:.5rem 1rem;}
.order-form {display:grid; gap:1.1rem;}
.order-form .sub-title {margin:0; font-size:2rem;}
.order-lead {color:var(--muted); margin-top:-.5rem;}
.order-lines {list-style:none; display:grid; gap:.75rem;}
.order-line {
  display:grid; grid-template-columns:64px 1fr auto auto; align-items:end; gap:.75rem;
  padding-bottom:.75rem; border-bottom:1px solid var(--line);
}
.order-line img {width:64px; height:48px; object-fit:cover; border-radius:4px; align-self:center;}
.order-photo {font-weight:600; align-self:center; min-width:0;}
.order-form label {display:grid; gap:.3rem; font-size:.78rem; color:var(--muted); font-weight:500;}
.order-form select, .order-form input[type="number"], .order-form textarea {
  font:400 .95rem var(--sans); color:var(--text); background:var(--sand);
  border:1px solid var(--line); border-radius:6px; padding:.55rem .6rem;
}
.order-form input[type="number"] {width:4.5rem;}
.order-form select, .order-form input[type="number"] {height:2.5rem; box-sizing:border-box;}
.order-form textarea {width:100%; resize:vertical;}
.finish {border:0; display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; font-size:.9rem;}
.finish legend {font-size:.78rem; color:var(--muted); font-weight:500; margin-bottom:.4rem;}
.finish .checkbox {display:flex; align-items:center; gap:.4rem; font-size:.9rem; color:var(--text);}
.finish input {accent-color:var(--accent);}
.order-total {display:flex; justify-content:space-between; align-items:baseline; font-size:1.1rem; padding-top:.5rem; border-top:2px solid var(--text);}
.order-total strong {font-family:var(--serif); font-size:1.8rem; font-weight:400;}
.order-form .btn, .order-done .btn {justify-content:center;}
.order-done {display:grid; gap:1rem; text-align:center; padding:1rem 0;}
.order-done .sub-title {margin:0;}
.doc-page {display:grid; gap:1rem; line-height:1.65;}
.doc-page h2 {font-family:var(--serif); font-weight:400; font-size:2rem; line-height:1.15;}
.doc-page h3 {font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-text); margin-top:.5rem;}
.doc-logo {width:56px;}
.doc-table {width:100%; border-collapse:collapse;}
.doc-table th, .doc-table td {text-align:left; padding:.6rem 0; border-bottom:1px solid var(--line);}
.doc-table th:last-child, .doc-table td:last-child {text-align:right;}
.doc-table tfoot td {font-weight:700; border-bottom:0;}
.doc-sample {font-size:.85rem; color:var(--muted); font-style:italic;}
.doc-modal-actions {display:flex; gap:.5rem; margin-top:1.5rem;}

/* short message, e.g. "Printing works on the live website" in the preview */
.portal-toast {
  position:fixed; z-index:200; left:50%; transform:translate(-50%, 1rem); opacity:0; pointer-events:none;
  bottom:calc(6rem + env(safe-area-inset-bottom, 0px)); width:max-content; max-width:calc(100% - 2rem);
  padding:.8rem 1.1rem; border-radius:10px; background:var(--accent-dark); color:#fff; font-size:.9rem; text-align:center;
  transition:opacity .25s, transform .25s;
}
.portal-toast.is-on {opacity:1; transform:translate(-50%, 0);}
/* printing: only the chosen photos or document go on paper */
#print-area {display:none;}
@media print {
  body.is-printing > *:not(#print-area) {display:none !important;}
  body.is-printing #print-area {display:block;}
  body.is-printing {background:#fff; color:#000;}
  .print-photo {margin:0; height:95vh; display:grid; place-items:center; break-after:page;}
  .print-photo:last-child {break-after:auto;}
  .print-photo img {max-width:100%; max-height:95vh; object-fit:contain;}
  #print-area .doc-page {color:#000;}
}
@media (max-width:640px) {
  .portal {padding-top:2.5rem;}
  .tab {flex:1 0 auto; padding:.8rem .6rem; font-size:.85rem; text-align:center; white-space:nowrap;}
  .tab [data-count] {font-size:.75rem; color:var(--muted);}
  .portal-head .btn {padding:.6rem 1.2rem;}
  .photo-grid {grid-template-columns:1fr 1fr; gap:.6rem;}
  .photo figcaption {padding:.6rem; gap:.45rem;}
  .photo-name {font-size:.8rem;}
  .photo .act {padding:.35rem .6rem; font-size:.72rem;}
  .toolbar-hint {flex-basis:100%;}
  .film-grid {grid-template-columns:1fr;}
  .doc {grid-template-columns:1fr auto;}
  .doc-actions {grid-column:1 / -1;}
  .selection-bar {padding:.75rem; gap:.5rem;}
  .selection-actions {width:100%; justify-content:space-between;}
  .modal-card {padding:1.5rem 1.1rem;}
  .order-line {grid-template-columns:52px 1fr auto; grid-template-areas:"img name name" "size size qty";}
  .order-line img {grid-area:img; width:52px; height:40px;}
  .order-photo {grid-area:name;}
  .order-line label:first-of-type {grid-area:size;}
  .order-line label:last-of-type {grid-area:qty;}
  .order-line select {width:100%;}
}

/* ---------- login: log in / create account switch ---------- */
.mode-switch {display:grid; grid-template-columns:1fr 1fr; padding:4px; border-radius:999px; background:var(--panel); border:1px solid var(--line);}
.mode {padding:.65rem; border:0; border-radius:999px; background:none; cursor:pointer; font:600 .9rem var(--sans); color:var(--muted);}
.mode.is-active {background:var(--accent); color:#fff;}
.mode:focus-visible {outline:2px solid var(--accent); outline-offset:2px;}
.login-form [hidden] {display:none !important;}

/* ---------- portal additions ---------- */
.customer-id {display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; color:var(--muted); font-size:.95rem;}
.customer-id strong {
  font-family:ui-monospace, 'SF Mono', Menlo, monospace; font-size:1.05rem; letter-spacing:.06em; color:var(--text);
  padding:.2rem .6rem; border-radius:6px; background:var(--panel); border:1px solid var(--line);
}
.toolbar[hidden] {display:none;}
.photo-grid > .empty, .film-grid > .empty {grid-column:1 / -1;}
.doc-list > li:not(.doc) {list-style:none;}
.status-pill {
  font-size:.72rem; font-weight:600; letter-spacing:.04em; padding:.25rem .65rem; border-radius:999px; white-space:nowrap;
  background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent-text);
}
.status-pill[data-status="In production"] {background:color-mix(in srgb, #3b6fb6 15%, transparent); color:#2c5591;}
.status-pill[data-status="Ready"], .status-pill[data-status="Completed"] {background:color-mix(in srgb, #3f8a5a 15%, transparent); color:#2f6e46;}
.status-pill[data-status="Cancelled"] {background:color-mix(in srgb, #777 15%, transparent); color:#555;}
.visually-hidden {position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}

/* ---------- admin ---------- */
.admin-cols {display:grid; grid-template-columns:minmax(260px, 340px) 1fr; gap:1.5rem; align-items:start;}
.cust-pane {display:grid; gap:.75rem; position:sticky; top:96px;}
.search input {
  width:100%; padding:.8rem 1rem; font:400 1rem var(--sans); color:var(--text);
  background:var(--panel); border:1px solid var(--line); border-radius:8px;
}
.search input:focus {outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);}
.cust-list {list-style:none; display:grid; gap:.5rem; max-height:65vh; overflow:auto;}
.cust {
  width:100%; text-align:left; display:grid; gap:.15rem; padding:.85rem 1rem; cursor:pointer;
  background:var(--panel); border:1px solid var(--line); border-radius:8px; color:var(--text); font:inherit;
}
.cust:hover {border-color:var(--accent);}
.cust.is-current {border-color:var(--accent); box-shadow:inset 3px 0 0 var(--accent);}
.cust:focus-visible {outline:2px solid var(--accent); outline-offset:2px;}
.cust-id {font-family:ui-monospace, 'SF Mono', Menlo, monospace; font-weight:600; letter-spacing:.05em; color:var(--accent-text);}
.cust-id.big {font-size:1.6rem;}
.cust-name {font-weight:600;}
.cust-meta {font-size:.82rem; color:var(--muted); overflow-wrap:anywhere;}
.cust-detail {display:grid; gap:1.25rem; padding:1.5rem; background:var(--panel); border:1px solid var(--line); border-radius:10px; min-width:0;}
.cust-detail > .empty {background:none;}
.detail-head p {overflow-wrap:anywhere;}
.dropzone {
  display:grid; gap:.3rem; place-items:center; text-align:center; padding:2rem 1rem; cursor:pointer;
  border:2px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius:10px;
  background:color-mix(in srgb, var(--accent) 6%, transparent); transition:background .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-over {background:color-mix(in srgb, var(--accent) 14%, transparent); border-color:var(--accent);}
.dropzone:focus-within {outline:2px solid var(--accent); outline-offset:2px;}
.dropzone input {position:absolute; width:1px; height:1px; opacity:0;}
.dropzone span {font-size:.88rem; color:var(--muted);}
.upload-queue {list-style:none; display:grid; gap:.35rem; font-size:.88rem;}
.upload-queue:empty {display:none;}
.upload-queue li {display:flex; justify-content:space-between; gap:1rem; padding:.5rem .75rem; border-radius:6px; background:var(--sand);}
.upload-queue li.is-done .up-state {color:#2f6e46; font-weight:600;}
.upload-queue li.is-error .up-state {color:#a33a2a; font-weight:600;}
.file-name {min-width:0; overflow-wrap:anywhere;}
.detail-sub {font-size:.8rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-text);}
.table-wrap {overflow-x:auto;}
.file-table {width:100%; border-collapse:collapse; font-size:.9rem;}
.file-table th {text-align:left; font-size:.75rem; font-weight:600; color:var(--muted); padding:.5rem .6rem; border-bottom:1px solid var(--line);}
.file-table td {padding:.6rem; border-bottom:1px solid var(--line); vertical-align:middle;}
.file-table .num {text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums;}
.act.danger:hover {border-color:#a33a2a; color:#a33a2a; background:color-mix(in srgb, #a33a2a 8%, transparent);}
.act.danger[data-armed="1"] {background:#a33a2a; border-color:#a33a2a; color:#fff;}
.order-grid {display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));}
.status-field {display:grid; gap:.3rem; font-size:.78rem; color:var(--muted); font-weight:500; padding-top:.5rem;}
.status-field select {font:400 .95rem var(--sans); color:var(--text); background:var(--sand); border:1px solid var(--line); border-radius:6px; padding:.5rem;}
@media (max-width:860px) {
  .admin-cols {grid-template-columns:1fr;}
  .cust-pane {position:static;}
  .cust-list {max-height:none;}
}
@media (max-width:640px) {
  .cust-detail {padding:1rem;}
  .file-table th:nth-child(2), .file-table td:nth-child(2), .file-table th:nth-child(4), .file-table td:nth-child(4) {display:none;}
}

/* ---------- employee site ---------- */
.login.staff-login {
  --bg:var(--ink); --panel:var(--ink-2); --text:#f3eee6; --muted:#a8a197;
  --line:rgba(243,238,230,.14); --accent-text:var(--accent-light);
}
.staff-badge {
  justify-self:start; font-size:.72rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  padding:.35rem .8rem; border-radius:999px; border:1px solid var(--accent); color:var(--accent-text);
}
.footer-staff {color:var(--muted); font-size:.85rem; text-decoration:none;}
.footer-staff:hover {color:var(--text); text-decoration:underline;}
.staff-who {display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.5rem; font-size:.95rem;}
.role-pill {
  font-size:.72rem; font-weight:600; letter-spacing:.04em; padding:.22rem .65rem; border-radius:999px; white-space:nowrap;
  background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent-text);
}
.role-pill[data-role="staff"] {background:color-mix(in srgb, #3f8a5a 15%, transparent); color:#2f6e46;}
.role-pill[data-role="invited"] {background:color-mix(in srgb, #3b6fb6 13%, transparent); color:#2c5591;}
.role-pill[data-role="disabled"] {background:color-mix(in srgb, #777 15%, transparent); color:#555;}
.team-grid {display:grid; grid-template-columns:minmax(260px, 360px) 1fr; gap:1.5rem; align-items:start;}
.team-add {
  display:grid; gap:1rem; padding:1.5rem; border-radius:10px; background:var(--panel); border:1px solid var(--line);
}
.team-help {font-size:.9rem; color:var(--muted);}
.team-add label {display:grid; gap:.4rem; font-size:.82rem; font-weight:500; color:var(--muted);}
.team-add input {
  padding:.8rem 1rem; font:400 1rem var(--sans); color:var(--text);
  background:var(--sand); border:1px solid var(--line); border-radius:6px;
}
.team-add input:focus {outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);}
.team-add .btn {justify-content:center;}
.team-list-wrap {display:grid; gap:.75rem; min-width:0;}
.team-list {list-style:none; display:grid; gap:.5rem;}
.team-member {
  display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:.75rem 1rem;
  padding:1rem 1.25rem; border-radius:8px; background:var(--panel); border:1px solid var(--line);
}
.team-info {display:grid; gap:.1rem; min-width:0;}
@media (max-width:860px) {
  .team-grid {grid-template-columns:1fr;}
}
@media (max-width:640px) {
  .team-member {grid-template-columns:1fr; gap:.6rem;}
  .team-member .role-pill, .team-member .act {justify-self:start;}
  .team-info .cust-meta {overflow-wrap:anywhere;}
  .site-footer {gap:.75rem;}
}

/* ---------- installable app ---------- */
.footer-app {
  padding:.5rem 1rem; border-radius:999px; cursor:pointer;
  background:var(--accent); border:0; color:#fff; font:600 .85rem var(--sans);
}
.footer-app:hover {background:var(--accent-dark);}
.footer-app[hidden] {display:none;}
.install-sheet {
  position:fixed; inset:0; z-index:300; display:grid; align-items:end; justify-items:center;
  padding:1rem max(1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background:rgba(12,12,14,.6);
}
.install-sheet[hidden] {display:none;}
.install-card {
  width:min(440px, 100%); display:grid; gap:1rem; justify-items:start;
  padding:1.75rem; border-radius:16px; background:var(--sand-2); color:#1b1b1d;
}
.install-icon {width:64px; height:64px; border-radius:14px;}
.install-card h2 {font-family:var(--serif); font-weight:400; font-size:1.6rem; line-height:1.2;}
.install-card ol {padding-left:1.2rem; display:grid; gap:.5rem;}
.install-card .btn {justify-self:stretch; justify-content:center;}
.share-glyph {
  display:inline-block; width:14px; height:16px; vertical-align:-2px; margin:0 2px;
  border:2px solid currentColor; border-top:0; border-radius:2px; position:relative;
}
.share-glyph::before {content:""; position:absolute; left:50%; top:-7px; width:2px; height:12px; background:currentColor; transform:translateX(-50%);}
.share-glyph::after {content:""; position:absolute; left:50%; top:-7px; width:6px; height:6px; border-left:2px solid currentColor; border-top:2px solid currentColor; transform:translateX(-50%) rotate(45deg);}
/* running as an installed app: no browser bar, so leave room for the phone's status bar */
@media (display-mode: standalone) {
  .site-header {padding-top:calc(.9rem + env(safe-area-inset-top, 0px));}
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:2.5rem var(--gutter); font-size:.85rem; color:var(--muted);
  border-top:1px solid var(--line);
}
.footer-logo {height:48px;}

/* ============================================================
   SCROLL REVEAL (classes added by script.js)
   ============================================================ */
.reveal {opacity:0; transform:translateY(28px); transition:opacity .9s var(--ease), transform .9s var(--ease);}
.reveal.is-visible {opacity:1; transform:none;}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  .reveal {opacity:1; transform:none; transition:none;}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px) {
  .hero {grid-template-columns:1fr; min-height:0; padding-top:4rem;}
  .hero-collage {height:420px;}
  .page-hero-content:has(.circle-lg) {grid-template-columns:1fr; grid-template-rows:none;}
  .page-hero-content:has(.circle-lg) > * {grid-row:auto !important;}
  .circle-lg {grid-column:1; grid-row:auto; aspect-ratio:16/10; margin:2.5rem 12px 12px 0; order:10; box-shadow:12px 12px 0 var(--accent);}
  .page-hero {padding-top:4rem;}
  .services:not(.other-services) .item,
  .services:not(.other-services) .item:nth-child(even) {grid-template-columns:1fr; grid-template-rows:auto;}
  .services:not(.other-services) .item .circle,
  .services:not(.other-services) .item:nth-child(even) .circle {grid-column:1; grid-row:auto; margin-bottom:2rem;}
  .services:not(.other-services) .item > h3,
  .services:not(.other-services) .item > p,
  .services:not(.other-services) .item::after {grid-column:1 !important; grid-row:auto;}
  .services:not(.other-services) .grid {gap:5rem;}
  .other-services .grid {grid-template-columns:repeat(2, 1fr);}
  .contact {grid-template-columns:1fr; gap:3rem;}
  .service-detail-inner {grid-template-columns:1fr;}
  .service-intro {grid-row:auto;}
  .steps {grid-template-columns:repeat(2, 1fr); row-gap:3rem;}
  .steps::before {display:none;}
  .cards {grid-template-columns:repeat(2, 1fr);}
  /* odd card out on the last row: stretch it across as a wide card */
  .cards > .card:last-child:nth-child(odd) {grid-column:1 / -1; flex-direction:row;}
  .cards > .card:last-child:nth-child(odd) .card-img {flex:1; aspect-ratio:auto; min-height:260px;}
  .cards > .card:last-child:nth-child(odd) .card-body {flex:1; justify-content:center;}
  .card-featured {flex-direction:column;}
  .card-featured .card-img {min-height:0; aspect-ratio:16/9;}
  .faq-list {grid-template-columns:1fr;}
  .clips {grid-template-columns:repeat(2, 1fr); grid-auto-rows:200px;}
  .login {grid-template-columns:1fr; min-height:0;}
  .login-media {min-height:320px;}
}
@media (max-width:760px) {
  .logo img {height:48px;}
  .nav-toggle {
    display:flex; flex-direction:column; gap:6px; margin-left:auto;
    background:none; border:0; padding:.5rem; cursor:pointer;
  }
  .nav-toggle span {width:26px; height:2px; border-radius:2px; background:var(--text); transition:transform .3s var(--ease), opacity .2s;}
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {transform:translateY(8px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {opacity:0;}
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {transform:translateY(-8px) rotate(-45deg);}
  .main-nav {
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0; text-align:center;
    background:var(--ink); border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; transition:max-height .35s var(--ease);
  }
  .main-nav.open {max-height:440px;}
  .main-nav a {padding:1.1rem; border-top:1px solid var(--line);}
  .main-nav a::after {display:none;}
  .main-nav .nav-login {margin:1rem 1.5rem 1.25rem; border-top:0;}
  .hero-collage {height:340px;}
  .services, .about, .contact, .process, .guide, .faq, .learn-teaser {padding-top:5rem; padding-bottom:5rem;}
  .stats {grid-template-columns:1fr; margin-top:3rem;}
  .gallery {grid-template-columns:1fr; grid-template-rows:none; height:auto;}
  .gallery figure {aspect-ratio:4/3;}
  .gallery figure:first-child {grid-row:auto;}
  .steps, .cards {grid-template-columns:1fr;}
  .contact-form {padding:1.75rem;}
  .contact-form .row {grid-template-columns:1fr;}
  .tips li {grid-template-columns:3.5rem 1fr;}
  .tips li::before {font-size:2rem;}
  .site-footer {flex-direction:column; text-align:center;}
  .footage {padding-top:5rem; padding-bottom:5rem;}
  .clips {grid-template-columns:1fr 1fr; grid-auto-rows:150px; gap:.6rem;}
  .clip.is-feature {grid-column:1 / -1; grid-row:span 2;}
  .clip-meta {left:.75rem; right:2.5rem; bottom:.7rem; font-size:1rem;}
  .clip.is-feature .clip-meta {font-size:1.4rem; left:1rem; bottom:1rem;}
  .clip-cat {font-size:.6rem; margin-bottom:.2rem;}
  .clip-play {width:1.9rem; height:1.9rem; right:.6rem; bottom:.6rem;}
  .clip-play::before {border-left-width:8px; border-top-width:5px; border-bottom-width:5px;}
  .filter {padding:.5rem .95rem; font-size:.8rem;}
  .services:not(.other-services) .item .circle {box-shadow:10px 10px 0 color-mix(in srgb, var(--accent) 85%, transparent); margin-right:10px;}
  .services:not(.other-services) .item:nth-child(even) .circle {box-shadow:-10px 10px 0 color-mix(in srgb, var(--accent) 85%, transparent); margin:0 0 2rem 10px;}
  .cards > .card:last-child:nth-child(odd) {flex-direction:column;}
  .cards > .card:last-child:nth-child(odd) .card-img {min-height:0; aspect-ratio:16/10;}
  .section-title {margin-bottom:2.5rem;}
  .login-media-text {left:1.5rem; right:1.5rem; bottom:1.5rem;}
}
@media (max-width:480px) {
  .other-services .grid {grid-template-columns:1fr 1fr; gap:1rem;}
  .other-services h3 {font-size:1.1rem;}
}
