/* ==========================================================
   dan15.com — single-page portfolio
   ========================================================== */
:root {
  --ink: #0c1117;
  --ink-2: #131a22;
  --ink-3: #1c2530;
  --line-dark: rgba(255,255,255,.12);
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --line-light: rgba(12,17,23,.14);
  --text-dark: #0c1117;
  --text-light: #f3f1ec;
  --muted-dark: #5b6470;
  --muted-light: #9aa4b1;
  --accent: #ff5b35;
  --accent-ink: #1a0a05;
  --radius: 14px;
  --wrap: 1240px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.25; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 1px solid transparent; border-radius: 999px;
  padding: .85em 1.5em; font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ff7754; }
.btn-ghost { background: transparent; color: var(--text-light); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--text-light); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Announcement ---------- */
.announce {
  display: flex; flex-wrap: wrap; gap: .4em .9em; align-items: center; justify-content: center;
  padding: .6em 16px; font-size: .85rem; text-align: center;
  background: var(--accent); color: var(--accent-ink);
}
.announce a { font-weight: 600; text-decoration: none; }
.announce .dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,17,23,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.wordmark { font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.main-nav { display: none; gap: 32px; }
.main-nav a { text-decoration: none; font-size: .95rem; color: var(--muted-light); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.icon-link svg { width: 16px; height: 16px; fill: currentColor; }
.icon-link:hover { border-color: var(--text-light); }
.menu-toggle { width: 40px; height: 40px; background: none; border: 1px solid var(--line-dark); border-radius: 50%; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text-light); transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 16px 24px; border-top: 1px solid var(--line-dark); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; font-size: 1.4rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.mobile-nav .btn { margin-top: 16px; }
.header-actions .btn-sm, .header-actions .icon-link { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
  .header-actions .btn-sm, .header-actions .icon-link { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,53,.28), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 20px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -.035em; line-height: 1; }
.hero h1 em { color: var(--accent); }
.hero-lede { max-width: 34em; margin: 28px 0 0; font-size: 1.12rem; color: #c9d0d8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-portrait { position: relative; margin: 0; max-width: 290px; justify-self: start; }
.hero-portrait figcaption { font-size: .76rem; }
@media (min-width: 900px) { .hero-portrait figcaption { font-size: .82rem; } }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; object-position: center 12%; border-radius: 22px; background: var(--ink-3); }
.hero-portrait figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; font-size: .82rem;
  background: rgba(12,17,23,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (min-width: 900px) {
  .hero { padding: 96px 0 72px; }
  .hero-inner { grid-template-columns: 1.9fr 1fr; gap: 64px; }
  .hero-portrait { justify-self: end; width: 100%; max-width: 380px; }
  .hero-portrait img { aspect-ratio: 4/5; }
}

.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 64px 0 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--ink); padding: 22px 20px; }
.stats dt { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats dd { margin: 8px 0 0; font-size: .88rem; color: var(--muted-light); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section.light { background: var(--paper); color: var(--text-dark); }
.section.dark { background: var(--ink); }
.kicker { margin: 0 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.light .kicker { color: #d4401c; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { max-width: 16em; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; gap: 80px; } }
.split h2 { margin-bottom: 24px; }
.prose p { margin: 0 0 1.2em; font-size: 1.08rem; color: #333b45; }
.prose strong { color: var(--text-dark); }
.prose .sectors { font-size: .9rem; font-weight: 600; color: var(--muted-dark); letter-spacing: .02em; padding-top: 20px; border-top: 1px solid var(--line-light); }

/* ---------- Logo marquee ---------- */
.logos { background: var(--ink); padding: 48px 0; border-bottom: 1px solid var(--line-dark); }
.logos-label { margin: 0 0 24px; text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); padding: 0 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 45s linear infinite; }
.marquee-track img { height: 64px; width: auto; opacity: .75; transition: opacity .2s; }
.marquee-track img:hover { opacity: 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text-dark); }
.card-media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-label { margin: 0 0 6px; font-size: .82rem; color: var(--muted-dark); }
.card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.card-cta { align-self: flex-start; font-weight: 600; font-size: .9rem; border-bottom: 1px solid currentColor; }
.card:hover .card-cta { color: #d4401c; }

/* ---------- Timeline ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-dark); background: transparent; color: var(--muted-light); padding: .45em 1em; border-radius: 999px; font-size: .85rem; transition: all .2s; }
.chip:hover { color: var(--text-light); border-color: var(--text-light); }
.chip.is-active { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-dark); }
.entry { position: relative; display: grid; gap: 12px; padding: 0 0 48px 36px; }
.entry::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--muted-light); transition: border-color .3s, background .3s; }
.entry:hover::before, .entry:target::before { border-color: var(--accent); background: var(--accent); }
.entry.is-hidden { display: none; }
.entry-date { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted-light); }
.entry-date .now { align-self: flex-start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: .2em .7em; border-radius: 999px; }
.entry-date .sub { font-weight: 400; font-size: .82rem; }
.entry-body { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; transition: border-color .3s; }
.entry:target .entry-body { border-color: var(--accent); }
.entry-logo { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: left; margin-bottom: 18px; opacity: .9; }
.entry-client { margin: 0 0 4px; font-size: .88rem; color: var(--muted-light); }
.entry-body h3 { font-size: 1.55rem; margin-bottom: 12px; }
.entry-body h3 small { font-size: .55em; font-weight: 500; color: var(--muted-light); vertical-align: middle; border: 1px solid var(--line-dark); border-radius: 999px; padding: .2em .7em; margin-left: .4em; letter-spacing: 0; }
.entry-body > p { margin: 0 0 14px; color: #c9d0d8; }
.impact { padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(255,91,53,.07); border-radius: 0 8px 8px 0; color: var(--text-light) !important; }
.impact span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
details { border-top: 1px solid var(--line-dark); margin-top: 6px; }
summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
details li { color: #c9d0d8; font-size: .95rem; padding-left: 0; }
details li b { display: inline-block; min-width: 0; margin-right: .5em; color: var(--text-light); font-weight: 600; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.tags li { font-size: .78rem; padding: .25em .8em; border-radius: 999px; background: var(--ink-3); color: var(--muted-light); }

@media (min-width: 900px) {
  .timeline::before { left: 207px; }
  .entry { grid-template-columns: 180px 1fr; gap: 56px; padding-left: 0; }
  .entry::before { left: 200px; }
  .entry-date { text-align: right; align-items: flex-end; padding-top: 2px; }
  .entry-date .now { align-self: flex-end; }
  .entry-body { padding: 32px 36px; }
}

/* ---------- Capabilities ---------- */
.caps { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(4, 1fr); } }
.cap { background: var(--paper); padding: 32px 28px; }
.cap-num { display: block; font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: #d4401c; margin-bottom: 24px; }
.cap h3 { margin-bottom: 18px; }
.cap ul { margin: 0; padding: 0; list-style: none; }
.cap li { padding: 9px 0; border-top: 1px solid var(--line-light); font-size: .95rem; color: #333b45; }

/* ---------- Testimonials ---------- */
.scroller-btns { display: flex; gap: 8px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--text-light); font-size: 1.1rem; transition: all .2s; }
.round-btn:hover { background: var(--text-light); color: var(--ink); }
.scroller {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 16px 8px; scroll-padding: 0 16px;
}
.scroller::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .scroller { padding: 0 40px 8px; scroll-padding: 0 40px; } }
@media (min-width: 1320px) { .scroller { padding-left: calc((100vw - var(--wrap)) / 2 + 40px); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + 40px); } }
.quote {
  flex: 0 0 min(86vw, 400px); scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 32px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark);
}
.quote p { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.quote p::before { content: "“"; color: var(--accent); }
.quote p::after { content: "”"; color: var(--accent); }
.quote footer { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); font-size: .85rem; font-weight: 600; color: var(--muted-light); }
.quote cite { display: block; font-style: normal; font-weight: 600; }
.quote footer span:not(.avatar) { font-size: .82rem; color: var(--muted-light); line-height: 1.4; display: block; }

/* ---------- Contact ---------- */
.contact { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.contact-lede { color: #c9d0d8; max-width: 30em; }
.contact-links { display: flex; gap: 24px; margin-top: 24px; }
.contact-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }
.enquiry { display: grid; gap: 16px; background: var(--paper); color: var(--text-dark); padding: 28px; border-radius: var(--radius); }
.enquiry h3 { margin-bottom: 4px; }
.enquiry label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.enquiry input, .enquiry textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: .75em .9em; border-radius: 10px;
  border: 1px solid var(--line-light); background: #fff; color: var(--text-dark); resize: vertical;
}
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.enquiry .btn { justify-self: start; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line-dark); font-size: .9rem; color: var(--muted-light); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .wordmark { color: var(--text-light); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text-light); }
.site-footer p { margin: 0; }

/* ---------- Slide-out panel ---------- */
.panel-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; }
.panel-backdrop.show { opacity: 1; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(460px, 100%);
  overflow-y: auto; padding: 56px 28px 32px; background: var(--ink-2); border-left: 1px solid var(--line-dark);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.panel.open { transform: none; visibility: visible; }
.panel-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--text-light); font-size: 1.4rem; line-height: 1; }
.panel h2 { font-size: 2rem; margin-bottom: 20px; }
.panel-points { margin: 0 0 24px; padding-left: 1.2em; color: #c9d0d8; }
.panel-points li { margin-bottom: 4px; }
.panel-person { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); margin-bottom: 20px; }
.panel-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 8%; background: var(--ink-3); }
.panel-person div { display: grid; gap: 2px; font-size: .85rem; color: var(--muted-light); }
.panel-person strong { color: var(--text-light); font-size: 1rem; }
.panel-person .status { display: inline-flex; align-items: center; gap: 8px; color: #3ddc84; font-weight: 600; font-size: .78rem; }
.enquiry.compact { padding: 22px; }
body.panel-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .pulse { animation: none; }
}

/* ---------- Project galleries ---------- */
.gallery { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 6px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.gallery[data-count="1"] { grid-template-columns: 1fr; max-width: 520px; }
.gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.shot { display: block; position: relative; aspect-ratio: 1440 / 1024; border-radius: 8px; overflow: hidden; background: var(--ink-3); outline-offset: 2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s ease, transform .5s ease; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-dark); pointer-events: none; }
body:not(.is-locked) .shot:hover img { transform: scale(1.04); }
body:not(.is-locked) .shot { cursor: zoom-in; }

/* Locked state: blur every confidential image until the password is entered */
.is-locked .lockable img { filter: blur(10px) saturate(.6) brightness(.85); transform: scale(1.08); }
.is-locked .shot { cursor: pointer; }
.lock-badge {
  display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  flex-direction: column; align-items: center; gap: 2px; padding: 16px 24px; min-width: 220px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: var(--text-light);
  background: rgba(12,17,23,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s;
}
.lock-badge svg { width: 22px; height: 22px; fill: var(--accent); margin-bottom: 6px; }
.lock-badge small { font-weight: 400; font-size: .8rem; color: var(--muted-light); }
.lock-badge:hover { border-color: var(--accent); background: rgba(12,17,23,.92); }
.is-locked .lock-badge { display: flex; }
.mini-lock { display: none; position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(12,17,23,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5b35' d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.is-locked .mini-lock { display: block; }
.card-media { position: relative; }

.timeline-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 900px) { .timeline-tools { align-items: flex-end; } }
.unlock-all { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--accent); background: rgba(255,91,53,.1); color: var(--text-light); font-size: .88rem; font-weight: 600; }
.unlock-all svg { width: 15px; height: 15px; fill: var(--accent); }
.unlock-all:hover { background: rgba(255,91,53,.2); }
.unlock-all .when-unlocked { display: inline; }
.unlock-all .when-locked { display: none; }
.is-locked .unlock-all .when-unlocked { display: none; }
.is-locked .unlock-all .when-locked { display: inline; }
body:not(.is-locked) .unlock-all { display: none; }

/* ---------- Password modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(420px, 100%); padding: 36px 28px 28px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 10px; animation: pop .3s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,91,53,.12); }
.modal-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.modal-card h2 { font-size: 1.6rem; margin-top: 6px; }
.modal-card > p { margin: 0 0 6px; color: #c9d0d8; font-size: .95rem; }
.modal-card label { font-size: .85rem; font-weight: 600; }
.modal-card input { font: inherit; padding: .8em .95em; border-radius: 10px; border: 1px solid var(--line-dark); background: var(--ink); color: var(--text-light); }
.modal-card input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.modal-card .btn { margin-top: 6px; }
.modal-error { margin: 0; color: #ff8a70 !important; font-size: .88rem !important; }
.modal-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.modal-note { font-size: .85rem !important; color: var(--muted-light) !important; margin-top: 4px !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-light); text-decoration: underline; font-size: inherit; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 56px 12px 24px; background: rgba(6,9,12,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; object-fit: contain; background: var(--ink-3); }
.lightbox figcaption { display: flex; gap: 16px; justify-content: space-between; width: 100%; max-width: 1100px; font-size: .9rem; color: #c9d0d8; }
.lb-count { color: var(--muted-light); white-space: nowrap; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--text-light); font-size: 1.6rem; line-height: 1; }
.lb-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(12,17,23,.6); color: var(--text-light); font-size: 1.1rem; }
.lb-nav:hover, .lb-close:hover { background: var(--text-light); color: var(--ink); }
@media (max-width: 719px) {
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 80px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { .modal-card, .modal-card.shake { animation: none; } }

/* ---------- Key contributions (open by default) ---------- */
.contrib { padding-bottom: 6px; }
.contrib h4 { margin: 18px 0 6px; font-size: 1.02rem; font-weight: 600; color: var(--text-light); letter-spacing: -.005em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.contrib h4:first-child { margin-top: 4px; }
.grp-meta { font-size: .8rem; font-weight: 500; color: var(--muted-light); }
.grp-intro { margin: 0 0 10px; color: #c9d0d8; font-size: .95rem; }
.grp-impact { margin: 0 0 12px; padding: 10px 14px; border-left: 2px solid var(--accent); background: rgba(255,91,53,.06); border-radius: 0 6px 6px 0; font-size: .93rem; color: var(--text-light); }
.grp-impact span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.contrib ul { margin: 0 0 8px; }
.contrib li { position: relative; padding-left: 16px; line-height: 1.55; }
.contrib li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }
.contrib li b { margin-right: .35em; }
.contrib li b::after { content: " —"; font-weight: 400; color: var(--muted-light); }
.tools { display: inline-block; margin-left: .35em; padding: 0 .6em; border-radius: 999px; font-size: .74rem; line-height: 1.7; color: var(--muted-light); background: var(--ink-3); white-space: nowrap; vertical-align: 1px; }

/* ---------- Brand cover art (Recent design projects) ---------- */
.brand-cover { position: relative; background: var(--ink-2); }
.brand-cover .cover-art { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .brand-cover .cover-art { transform: scale(1.04); }
.card-media img.cover-logo { position: absolute; left: 18px; top: 16px; height: 26px; width: auto; max-width: 45%; object-fit: contain; object-position: left center; transform: none !important; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.card:hover .brand-cover img.cover-logo { transform: none; }

/* ---------- Recent design projects: promo cards ---------- */
.promo { --pc: var(--ink-2); --pt: var(--text-light); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--pc); color: var(--pt); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.promo:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(12,17,23,.45); }
.promo-art { aspect-ratio: 4 / 3; overflow: hidden; }
.promo-title .nowrap { white-space: nowrap; }
.promo-art svg { display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.promo:hover .promo-art svg { transform: scale(1.04); }
.promo-body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 28px 28px 34px; }
.promo-logo { height: 26px; width: auto; max-width: 70%; align-self: flex-start; object-fit: contain; object-position: left center; }
.promo-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.65rem, 2.25vw, 2.05rem); line-height: 1.1; letter-spacing: -.005em; }
.promo-title em { font-style: italic; }
.promo-arrow { font-family: var(--sans); font-size: .8em; display: inline-block; transition: transform .3s; }
.promo:hover .promo-arrow { transform: translateX(5px); }
.promo:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* brand panels */
.promo-nationwide { --pc: #e4002b; --pt: #fff; }
.promo-nationwide .promo-logo { filter: brightness(0) invert(1); }
.promo-uae { --pc: #009BD8; --pt: #fff; }                 /* Dubai Blue (Dubai Brand Guidelines 2025) */
.promo-uae .promo-logo { filter: brightness(0) invert(1); }
.promo-uae .promo-arrow { color: #fff; }
.promo-adcb { --pc: #273239; --pt: #fff; }                /* ADCB slate, with ADCB red accents */
.promo-adcb .promo-arrow { color: #EC0100; }
@media (prefers-reduced-motion: reduce) { .promo, .promo-art svg, .promo-arrow { transition: none; } }

/* ---------- Form submission ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.enquiry button[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.45; }
.form-status[data-state="success"] { background: #e6f6ec; color: #13623a; }
.form-status[data-state="error"] { background: #fdecea; color: #a12a1a; }

/* ---------- Oct 2026: recruiter-aligned updates ---------- */
.prose .lead-summary { font-size: 1.18rem; color: var(--text-dark); }
.prose a { color: inherit; text-decoration-color: #d4401c; text-underline-offset: 3px; }
.intro .text-link { display: inline-block; margin-top: 8px; }
.promo-fidelity { --pc: #1B365D; --pt: #fff; }
.promo-fidelity .promo-arrow { color: #ff4d64; }
.promo-zentility { --pc: #0E3B2F; --pt: #fff; }
.promo-zentility .promo-arrow { color: #4CD69B; }
.education { margin: 28px 0 0; font-size: .98rem; color: #333b45; }
.education span { display: inline-block; margin-right: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d4401c; }

/* ADA teaser + steps */
.ada-teaser-lede, .profile-lede { max-width: 46em; margin: -16px 0 40px; font-size: 1.1rem; color: #c9d0d8; }
.ada-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .ada-steps { grid-template-columns: repeat(3, 1fr); } }
.ada-steps li { background: var(--ink-2); padding: 32px 28px; }
.ada-steps span { display: block; font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.ada-steps h3 { margin-bottom: 12px; }
.ada-steps p { margin: 0; color: #c9d0d8; }
.ada-steps-light { background: var(--line-light); border-color: var(--line-light); }
.ada-steps-light li { background: var(--paper); }
.ada-steps-light span { color: #d4401c; }
.ada-steps-light p { color: #333b45; }
.reassess { margin: 24px 0 0; padding: 18px 22px; border: 1px dashed #d4401c; border-radius: 12px; color: #333b45; }
.site-header nav a.nav-ada.active { color: var(--accent); }

/* ADA page */
.ada-hero { padding: 72px 0 80px; }
@media (min-width: 900px) { .ada-hero { padding: 120px 0 120px; } }
.ada-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; max-width: 15em; }
.ada-hero h1 em { color: var(--accent); }
.ppe { display: grid; gap: 1px; margin-top: 48px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .ppe { grid-template-columns: repeat(3, 1fr); } }
.ppe article { background: var(--paper); padding: 32px 28px; }
.ppe h3 { margin-bottom: 12px; }
.ppe p { margin: 0 0 16px; color: #333b45; }
.learned { padding-top: 16px; border-top: 1px solid var(--line-light); }
.learned span, .ai-when { display: block; margin-bottom: 6px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d4401c; }
.ai-stories { display: grid; gap: 20px; }
@media (min-width: 900px) { .ai-stories { grid-template-columns: repeat(2, 1fr); } }
.ai-stories article { padding: 30px 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); }
.ai-stories .ai-when { color: var(--accent); }
.ai-stories h3 { margin-bottom: 12px; }
.ai-stories p { margin: 0; color: #c9d0d8; }

/* Delivery profile diagram */
.own-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 28px; font-size: .85rem; color: #c9d0d8; }
.own-key b { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.own-key > span { padding: 4px 12px; border-radius: 6px; font-weight: 600; color: #1c2530; }
.own-key em { font-family: var(--sans); font-style: normal; flex-basis: 100%; color: var(--muted-light); }
.own-h { --sc: #d9cff5; } .own-ha { --sc: linear-gradient(135deg, #d9cff5, #c9f0dc); } .own-ai { --sc: #c9f0dc; } .own-pre { --sc: #eef0f2; }
.own-key .own-h, .own-key .own-ha, .own-key .own-ai { background: var(--sc); }
.flow { display: grid; gap: 18px; }
.flow-row { display: grid; gap: 14px; }
@media (min-width: 720px) { .flow-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .flow-pre { grid-template-columns: 1fr 1fr 1.1fr 1fr; align-items: center; }
  .flow-core { grid-template-columns: 1fr 2.2fr; align-items: stretch; }
  .journeys .flow-row, .flow-end { grid-template-columns: repeat(3, 1fr); }
}
.stage { position: relative; display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: 12px; background: var(--sc); color: #1c2530; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.stage-num { font-size: .78rem; font-weight: 600; color: #5b6470; }
.own-chip { padding: 2px 8px; border-radius: 4px; background: #1c2530; color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stage h4 { margin: 0 0 8px; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }
.stage ul { margin: 0 0 10px; padding-left: 16px; font-size: .84rem; line-height: 1.45; color: #333b45; }
.stage-tool { margin: 0 0 10px; font-size: .74rem; font-weight: 600; color: #5b6470; text-transform: uppercase; letter-spacing: .06em; }
.st { display: inline-block; align-self: flex-start; margin-top: auto; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.st-live { background: #1f7a4d; color: #fff; }
.st-prop { background: transparent; color: #1c2530; border: 1px dashed #1c2530; }
.st-mix { background: #fff; color: #1f7a4d; border: 1px solid #1f7a4d; }
.profile-lede .st-prop { color: #fff; border-color: #fff; }
.stage-stack { display: grid; gap: 10px; }
.stage-pair { display: grid; gap: 10px; align-items: stretch; }
@media (min-width: 720px) { .stage-pair { grid-template-columns: 1fr auto 1fr; } }
.pair-arrow { align-self: center; justify-self: center; font-size: 1.6rem; color: #4CD69B; }
.flow-band { margin: 0; padding: 10px 16px; border-radius: 8px; background: #000; color: #fff; font-size: .85rem; }
.journeys { padding: 18px; border-radius: 14px; background: var(--ink-3); }
.journeys-title { margin: 0 0 14px; font-size: .85rem; color: var(--muted-light); }
.journeys-title b { display: block; margin-bottom: 2px; color: #fff; letter-spacing: .04em; }
.flow-change { padding: 16px 18px; border: 1px solid #5b7a99; border-radius: 10px; background: #253445; font-size: .88rem; color: #c9d0d8; }
.flow-change b { display: block; margin-bottom: 4px; color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.cap p { margin: 0; color: #333b45; }
.section-head h2.one-line { max-width: none; white-space: nowrap; font-size: clamp(1rem, 4.9vw, 3.4rem); }
/* Small-phone overflow fix: let grid children and form fields shrink */
.split > *, .enquiry, .field-row > * { min-width: 0; }
.enquiry input, .enquiry textarea { min-width: 0; width: 100%; box-sizing: border-box; }
