/* Francisco Dantas — portfolio
   Built from the original site's design language: Space Grotesk + DM Sans,
   electric blue on paper, dark motion section, blue contact block. */

:root {
  --blue: #334bff;
  --blue-soft: #9daaff;
  --ink: #17191f;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #dcdfe5;
  --muted: #5f6573;      /* 5.9:1 on paper */
  --muted-2: #6b7180;    /* 4.9:1 on paper */
  --night: #15171b;
  --night-2: #1d2026;
  --night-line: #343740;
  --night-muted: #a4a8b2;
  --focus: #91a0ff;
  --radius: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 5%;
  --header-h: 84px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(a, button, [tabindex], video, input, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: 0 6px 30px #0002; }
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.mono, .kicker, .small-label, .baseline, .eyebrow {
  font-family: var(--display);
  letter-spacing: 1px;
  font-size: 11px;
  text-transform: uppercase;
}
.kicker { color: var(--muted-2); margin-bottom: 26px; display: block; }
.mono { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 100%; background: var(--blue); display: inline-block; box-shadow: 0 0 0 4px #334bff14; flex: none; }
em { font-style: normal; color: var(--blue); }

.h-section {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 78px);
  letter-spacing: -.055em;
  line-height: 1.06;
}
.lede { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 46ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 14px 22px;
  border-radius: 40px; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(3px, -2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2238e6; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 6px 0 5px; border-bottom: 1px solid currentColor;
  font-size: 14px; font-weight: 500;
}
.text-link svg { transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translate(3px, -2px); }
.text-link.down:hover svg { transform: translateY(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: #f7f8faf0;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -3px; line-height: 1; }
.logo span { color: var(--blue); font-size: 12px; letter-spacing: 0; vertical-align: top; margin: 6px 0 0 5px; display: inline-block; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { font-size: 14px; position: relative; padding: 6px 0; }
.nav sup { color: #858b99; font-size: 9px; margin-left: 6px; }
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--blue); }
.header-end { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 30px; border: 1px solid var(--line); font-family: var(--display); font-size: 11px; letter-spacing: .5px; }
.lang-toggle a { display: inline-grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: 30px; color: var(--muted); transition: background-color .2s, color .2s; }
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-toggle-lg { margin-top: 18px; align-self: flex-start; font-size: 13px; }
.lang-toggle-lg a { min-width: 48px; min-height: 40px; }
.header-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 18px; border-radius: 30px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; transition: background-color .2s; }
.header-cta:hover { background: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 29;
  background: var(--paper);
  padding: 24px 6% 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: fade-in .25s var(--ease);
}
.mobile-nav a.m-link { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 34px; letter-spacing: -.03em; }
.mobile-nav a.m-link sup { color: var(--blue); font-size: 10px; letter-spacing: 0; }
.mobile-nav a.m-link svg { margin-left: auto; }
.mobile-nav .btn { margin-top: 32px; justify-content: space-between; }
.mobile-nav .mono { margin-top: auto; padding-top: 32px; color: var(--muted-2); }

/* ---------- Hero ---------- */
.hero { padding: 34px var(--gutter) 0; overflow: hidden; }
.hero-top, .baseline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-top .mono:last-child { color: var(--muted-2); }
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(50px, 7.1vw, 120px);
  letter-spacing: -.07em; line-height: 1.02;
  margin: 58px 0 46px;
}
.hero h1 > span { display: block; animation: rise 1s var(--ease) both; }
.hero h1 > span:nth-child(2) { animation-delay: .12s; }
.asterisk { display: inline-block; color: var(--blue); font-family: Georgia, serif; font-size: .8em; line-height: .5; margin-left: .3em; animation: spin 35s linear infinite; }
.hero-bottom { display: grid; grid-template-columns: 1.15fr 1fr .62fr; gap: 50px; align-items: center; margin-bottom: 52px; }
.small-label { color: var(--muted-2); font-size: 10px; }
.intro p { font-size: 19px; line-height: 1.5; margin: 14px 0 26px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-film { position: relative; height: 200px; width: 100%; border-radius: var(--radius); overflow: hidden; background: #151515; text-align: left; }
.hero-film img, .hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hero-film:hover img, .hero-film:hover video { transform: scale(1.05); }
.film-overlay { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--display); font-size: 10px; letter-spacing: 1px; }
.film-overlay .muted { color: #ffffffb0; }
.play-circle { width: 38px; height: 38px; border-radius: 100%; display: grid; place-items: center; border: 1px solid #fff9; background: #ffffff1a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); flex: none; }
.hero-aside { justify-self: end; }
.hero-aside p { font-size: 14px; line-height: 1.6; margin: 12px 0 28px; }
.hero-aside .mono { color: var(--muted-2); font-size: 9px; }
.baseline { border-top: 1px solid var(--line); color: var(--muted-2); padding: 19px 0; font-size: 10px; }
.baseline > span:last-child { display: flex; align-items: center; gap: 12px; text-align: right; }

/* ---------- Sections ---------- */
.section { padding: 110px var(--gutter); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.section-heading .lede { margin-bottom: 22px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 40px; padding: 9px 17px; border-radius: 30px;
  border: 1px solid var(--line); font-size: 13px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button .count { font-size: 10px; margin-left: 7px; opacity: .7; }
.on-dark .filters button { color: #cfd2da; border-color: #3a3e48; }
.on-dark .filters button:hover { border-color: var(--blue-soft); }
.on-dark .filters button[aria-pressed="true"] { background: #f0f2f7; color: #161820; border-color: #f0f2f7; }

/* ---------- Work collection ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 30px; }
.work-card { position: relative; display: flex; flex-direction: column; min-width: 0; animation: rise .5s var(--ease) both; }
.work-card.is-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: center; }
.work-card.is-feature:nth-of-type(2) { grid-template-columns: 1fr 1.55fr; }
.work-card.is-feature:nth-of-type(2) .work-media { order: 2; }
.work-media { position: relative; display: block; height: 400px; border-radius: var(--radius); overflow: hidden; background: #d7dfdb; }
.is-feature .work-media { height: 520px; }
.work-media > img.shot {
  position: absolute; top: 14%; left: 8.5%; width: 83%; height: 86%;
  object-fit: cover; object-position: top;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 15px 50px #0002;
  transition: transform .7s var(--ease);
}
.work-card:hover .work-media > img.shot { transform: translateY(-10px) scale(1.012); }
.work-media > video, .work-media > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-media .index { position: absolute; top: 20px; left: 22px; font-family: var(--display); font-size: 11px; z-index: 2; }
.work-media .open {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 100%; display: grid; place-items: center;
  border: 1px solid #0003; background: #ffffff8c;
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.work-card:hover .open, .work-card:focus-within .open { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(45deg); }
.tone-green { background: #d7dfdb; }
.tone-sand { background: #e3ded5; }
.tone-clay { background: #e6ddd3; }
.tone-gray { background: #d9dce3; }
.tone-blue { background: #95bed5; }
.tone-ops { background: #dfe8f0; }
.tone-grippy { background: #79c9b8; }

.work-body { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.is-feature .work-body { padding-top: 0; gap: 16px; }
.work-type { font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.work-body h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
.is-feature .work-body h3 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.05em; }
.work-body p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 48ch; }
.is-feature .work-body p { font-size: 17px; }
.work-body .text-link { align-self: flex-start; margin-top: 6px; }
/* Whole card is clickable via the title link's overlay */
.work-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.work-card .stretched:focus-visible { outline: none; }
.work-card:has(.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 8px; border-radius: 6px; }

.atelier-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: Georgia, serif; font-size: 22px; text-shadow: 0 2px 25px #0005; background: #00132918; }
.atelier-title span { font-size: 38px; line-height: 1.05; text-align: center; margin-top: 20px; }

/* GRIPPY card visual */
.grippy-card-visual { position: absolute; inset: 0; background: #79c9b8 url("/assets/media/grippy/pattern-tiles.svg") 0 0 / 480px 240px; }
.grippy-card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #79c9b800 30%, #79c9b8cc 100%); }
.grippy-card-visual img { position: absolute; z-index: 1; left: 50%; bottom: -4%; height: 92%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 30px 40px #20344955); transition: transform .7s var(--ease); }
.work-card:hover .grippy-card-visual img { transform: translateX(-50%) translateY(-10px) rotate(-1.5deg); }

/* ---------- App mock (guide availability, fictional data) ---------- */
.app-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px; }
.app-mock {
  --a-navy: #1a2e45; --a-muted: #5a6a7a; --a-light: #f0f6fb; --a-neutral: #f4f6f8; --a-accent: #1a5ca8; --a-madeira: #c07060; --a-lisbon: #215c9e;
  font-family: var(--text); color: var(--a-navy);
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px #1a2e4526, 0 0 0 1px #1a2e4512;
  padding: 16px; font-size: 11px; line-height: 1.3;
}
.app-mock.phone { width: 236px; border-radius: 26px; padding: 18px 14px; }
.app-mock .am-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.app-mock .am-name { font-weight: 700; font-size: 14px; }
.app-mock .pills { display: flex; gap: 4px; margin-top: 4px; }
.app-mock .pill { border-radius: 20px; padding: 2px 7px; font-size: 9px; font-weight: 600; background: var(--a-light); color: var(--a-muted); }
.app-mock .pill.madeira { background: var(--a-madeira); color: #fff; }
.app-mock .pill.lisbon { background: var(--a-lisbon); color: #fff; }
.app-mock .lang { font-size: 9px; color: var(--a-muted); border: 1px solid #1a2e4522; border-radius: 10px; padding: 1px 6px; }
.app-mock .banner { background: var(--a-light); border-radius: 10px; padding: 7px 9px; font-weight: 600; font-size: 10px; margin-bottom: 10px; }
.app-mock .month { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; font-size: 12px; }
.app-mock .month span { color: var(--a-muted); font-weight: 500; font-size: 10px; }
.app-mock .quick { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.app-mock .quick span { background: var(--a-light); border-radius: 8px; padding: 3px 6px; font-size: 8.5px; font-weight: 600; }
.app-mock .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.app-mock .cal .wd { font-size: 8px; color: var(--a-muted); font-weight: 600; padding-bottom: 2px; }
.app-mock .cal .d { aspect-ratio: 1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 9.5px; background: var(--a-light); }
.app-mock .cal .d small { font-size: 6.5px; font-weight: 500; line-height: 1; margin-top: 1px; }
.app-mock .cal .d.past { opacity: .4; }
.app-mock .cal .d.today { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-accent); }
.app-mock .s-full { background: #16a34a !important; color: #fff; }
.app-mock .s-morning { background: #fbbf24 !important; color: #451a03; }
.app-mock .s-afternoon { background: #fb923c !important; color: #431407; }
.app-mock .s-half { background: #60a5fa !important; color: #172554; }
.app-mock .s-custom { background: #8b5cf6 !important; color: #fff; }
.app-mock .legend { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 8px 0 0; font-size: 8.5px; color: var(--a-muted); }
.app-mock .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.app-mock.admin { width: 100%; max-width: 560px; }
.app-mock .tabs { display: flex; background: var(--a-light); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 10px; }
.app-mock .tabs span { flex: 1; text-align: center; border-radius: 8px; padding: 6px 0; font-weight: 700; font-size: 10px; }
.app-mock .tabs .on { background: var(--a-madeira); color: #fff; }
.app-mock .adm-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.app-mock .card { border: 1px solid #1a2e4514; border-radius: 12px; padding: 10px; }
.app-mock .cov .d { background: #fff; border: 1px solid #1a2e4514; gap: 2px; }
.app-mock .cov .d.sel { box-shadow: 0 0 0 2px var(--a-accent); border-color: var(--a-accent); background: var(--a-light); }
.app-mock .chip { display: inline-flex; align-items: center; gap: 2px; border-radius: 10px; padding: 1px 4px; font-size: 7px; font-weight: 700; }
.app-mock .chip svg { width: 7px; height: 7px; }
.app-mock .good { background: #dcfce7; color: #166534; }
.app-mock .mod { background: #fef3c7; color: #92400e; }
.app-mock .low { background: #fee2e2; color: #991b1b; }
.app-mock .day-title { font-weight: 700; font-size: 11px; }
.app-mock .day-sub { color: var(--a-muted); font-size: 9.5px; margin: 3px 0 8px; display: flex; gap: 6px; align-items: center; }
.app-mock .check { display: flex; align-items: center; gap: 5px; font-size: 9.5px; margin-bottom: 7px; }
.app-mock .check i { width: 10px; height: 10px; border: 1px solid #1a2e4555; border-radius: 3px; display: inline-block; }
.app-mock .row { display: flex; align-items: center; gap: 7px; border: 1px solid #1a2e4512; border-radius: 9px; padding: 5px 7px; margin-bottom: 4px; }
.app-mock .av { width: 20px; height: 20px; border-radius: 100%; background: var(--a-light); display: grid; place-items: center; font-size: 7.5px; font-weight: 700; flex: none; }
.app-mock .row b { display: block; font-size: 9.5px; }
.app-mock .row small { color: var(--a-muted); font-size: 8px; }
.app-mock .row .st { margin-left: auto; border-radius: 10px; padding: 2px 6px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.app-mock .subs { margin-top: 10px; border: 1px solid #1a2e4514; border-radius: 12px; padding: 9px 10px; display: flex; justify-content: space-between; font-weight: 600; font-size: 10px; }
.app-mock .subs-list { margin-top: 6px; display: grid; gap: 4px; }
.app-mock .subs-list div { display: flex; justify-content: space-between; align-items: center; background: var(--a-neutral); border-radius: 8px; padding: 5px 8px; font-size: 9.5px; font-weight: 600; }
.app-mock .tag { border-radius: 10px; padding: 1px 6px; font-size: 8px; font-weight: 600; }
.app-mock .tag.ok { background: #dcfce7; color: #15803d; }
.app-mock .tag.wait { background: #fef3c7; color: #b45309; }
.work-media .app-stage { justify-content: flex-end; padding-right: 7%; }
.work-media .app-stage .app-mock.admin { max-width: 440px; }
.work-media .app-stage .app-mock.phone { position: absolute; left: 6%; bottom: -60px; transform: rotate(-3deg); width: 210px; }
.work-media .app-stage { transition: transform .7s var(--ease); }
.work-card:hover .app-stage { transform: translateY(-8px); }

/* ---------- Services ---------- */
.services-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.service-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-group {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 22px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.service-group:hover { border-color: #c6cbe0; transform: translateY(-4px); box-shadow: 0 20px 50px #17191f0f; }
.service-group .num { font-family: var(--display); font-size: 11px; color: var(--blue); letter-spacing: 1px; }
.service-group h3 { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -.04em; line-height: 1.1; }
.service-group .for { color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-group h4 { font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 10px; }
.service-group ul.dash li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: #3b404b; margin-bottom: 6px; }
.service-group ul.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--blue); }
.service-group .examples { display: flex; flex-wrap: wrap; gap: 6px; }
.service-group .examples a, .service-group .examples span { font-size: 12px; border-radius: 20px; padding: 6px 11px; background: #eef0f7; transition: background-color .2s, color .2s; }
.service-group .examples a:hover { background: var(--blue); color: #fff; }
.service-group .note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.service-group .actions { margin-top: auto; padding-top: 6px; }
.service-group .actions .btn { width: 100%; justify-content: space-between; }

.engage { margin-top: 90px; }
.engage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.engage-head h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.05em; line-height: 1.1; }
.engage-head p { color: var(--muted); font-size: 15px; max-width: 40ch; line-height: 1.6; }
.engage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.engage-item { padding: 26px 26px 10px 0; border-right: 1px solid var(--line); }
.engage-item + .engage-item { padding-left: 26px; }
.engage-item:last-child { border-right: 0; }
.engage-item .mono { color: var(--blue); font-size: 10px; margin-bottom: 18px; }
.engage-item h4 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.engage-item p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Motion ---------- */
.motion { background: var(--night); color: #f8f9fc; }
.motion .kicker { color: #b4befc; }
.motion em { color: var(--blue-soft); }
.motion .lede { color: var(--night-muted); }
.motion-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.motion-control { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #cfd3dc; font-size: 13px; }
.motion-control:hover { color: #fff; }
.film-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 26px; }
.film-card { grid-column: span 2; text-align: left; min-width: 0; animation: rise .45s var(--ease) both; }
.film-card.is-vertical { grid-column: 5 / span 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.is-filtered .film-card { grid-column: span 3; }
.is-filtered .film-card.is-vertical { grid-column: 1 / span 2; grid-row: auto; }
.film-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.is-vertical .film-frame { aspect-ratio: auto; flex: 1 1 auto; min-height: 420px; background: #dff5ea; }
.is-filtered .is-vertical .film-frame { aspect-ratio: 9 / 16; flex: none; min-height: 0; }
.film-frame img, .film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.is-vertical .film-frame img, .is-vertical .film-frame video { object-fit: contain; }
.film-frame video { opacity: 0; }
.film-frame video.is-ready { opacity: 1; }
.film-card:hover .film-frame img, .film-card:hover .film-frame video { transform: scale(1.04); }
.is-vertical:hover .film-frame img, .is-vertical:hover .film-frame video { transform: scale(1.02); }
.film-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 100%; display: grid; place-items: center;
  color: #fff; background: #0003; border: 1px solid #fff7;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, transform .3s var(--ease);
}
.is-vertical .film-play { background: #1a465099; }
.film-card:hover .film-play, .film-card:focus-visible .film-play { background: var(--blue); transform: translate(-50%, -50%) scale(1.06); }
.film-number { position: absolute; left: 16px; bottom: 16px; color: #fff; font-size: 10px; text-shadow: 0 1px 10px #0007; }
.is-vertical .film-number { color: #1a4650; text-shadow: none; }
.sound-badge { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; background: #000a; color: #fff; font-family: var(--display); font-size: 9px; letter-spacing: 1px; }
.film-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 14px; }
.film-meta h3 { font-size: 16px; font-weight: 500; }
.film-meta span { color: var(--night-muted); font-size: 12px; white-space: nowrap; }
.film-desc { color: var(--night-muted); font-size: 13px; line-height: 1.55; margin-top: 6px; max-width: 46ch; }
.motion-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 56px; }
.identity-card { position: relative; overflow: hidden; min-height: 480px; padding: 28px; border-radius: var(--radius); background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.identity-card > .mono { color: #ffffffb8; font-size: 9px; }
.identity-monogram { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 190px; letter-spacing: -20px; line-height: 1; }
.identity-monogram span { font-size: 90px; font-weight: 400; letter-spacing: 0; margin-left: 22px; animation: spin 40s linear infinite; }
.identity-bottom { display: flex; align-items: center; gap: 15px; font-size: 12px; }
.identity-bottom div { flex: 1; line-height: 1.7; }
.identity-bottom div span { color: #ffffffb0; font-size: 9px; letter-spacing: 1px; }
.identity-bottom > span { font-size: 28px; }
.bio h3 { font-family: var(--display); font-weight: 500; font-size: 29px; letter-spacing: -1px; line-height: 1.25; margin-bottom: 24px; }
.bio > p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 6px; }
.disciplines span { border: 1px solid var(--line); border-radius: 30px; padding: 7px 13px; font-size: 13px; }
.personal-note { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.personal-note > span { color: var(--blue); font-family: var(--display); font-size: 10px; letter-spacing: 1px; }
.personal-note > p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.socials { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.socials a { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid transparent; }
.socials a:hover { border-color: currentColor; }

.process { margin-top: 100px; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.process-head h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.05em; line-height: 1.1; }
.process-head p { color: var(--muted); font-size: 15px; max-width: 42ch; line-height: 1.6; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process-steps li { position: relative; padding: 24px 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.process-steps li::after { content: "→"; position: absolute; right: -14px; top: 26px; color: var(--blue); font-size: 14px; z-index: 1; }
.process-steps li:last-child::after { display: none; }
.process-steps .mono { color: var(--blue); font-size: 10px; margin-bottom: 26px; }
.process-steps h4 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.process-steps p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact { background: var(--blue); color: #fff; padding-bottom: 60px; }
.contact-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.contact .kicker { color: #ffffffc4; margin: 0; }
.contact .mono { font-size: 10px; }
.contact .status-dot { background: #c7ff9b; box-shadow: none; }
.contact h2 { position: relative; font-size: clamp(50px, 7.4vw, 110px); letter-spacing: -.07em; }
.contact h2 em { color: #c8cdff; }
.contact h2 > svg { position: absolute; right: 0; top: 18px; width: 96px; height: 96px; stroke-width: 1px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
.meeting { font-size: 19px; line-height: 1.55; max-width: 34ch; color: #f1f3ff; }
.meeting-points { margin-top: 26px; display: grid; gap: 10px; }
.meeting-points li { display: flex; gap: 12px; font-size: 14px; color: #e1e5ff; line-height: 1.5; }
.meeting-points li::before { content: "✳"; color: #c8cdff; font-family: Georgia, serif; }
.enquiry { background: #ffffff12; border: 1px solid #ffffff33; border-radius: 8px; padding: 28px; }
.enquiry fieldset { border: 0; margin: 0; padding: 0; }
.enquiry legend { font-size: 14px; color: #e1e5ff; margin-bottom: 14px; padding: 0; }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-options button { min-height: 40px; padding: 9px 14px; border-radius: 30px; border: 1px solid #ffffff4d; font-size: 13px; color: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.topic-options button:hover { border-color: #fff; }
.topic-options button[aria-pressed="true"] { background: #fff; color: var(--blue); border-color: #fff; }
.enquiry .btn-white { width: 100%; justify-content: space-between; margin-top: 26px; min-height: 58px; font-size: 15px; }
.enquiry .hint { margin-top: 12px; font-size: 12.5px; color: #dfe3ff; line-height: 1.5; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #ffffff2e; font-size: 14px; }
.email-row a { border-bottom: 1px solid #ffffff66; padding: 4px 0; }
.email-row a:hover { border-color: #fff; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 20px; border: 1px solid #ffffff4d; color: #fff; font-size: 12px; }
.copy-btn:hover { border-color: #fff; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px var(--gutter); color: #6c7180; font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.footer .logo { color: var(--ink); font-size: 28px; text-transform: none; letter-spacing: -3px; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--blue); }

/* ---------- Film player dialog ---------- */
dialog.player {
  width: min(1000px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  padding: 26px 28px 22px; border: 0; border-radius: 12px;
  background: var(--night); color: #fff; overflow: auto;
}
dialog.player[open] { animation: pop .25s var(--ease); }
dialog.player::backdrop { background: #0a1028c4; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.player-head .kicker { color: #b4befc; margin-bottom: 8px; font-size: 10px; }
.player-head h2 { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.player-head p { color: var(--night-muted); font-size: 14px; margin-top: 6px; }
.player-close { flex: none; width: 44px; height: 44px; border-radius: 100%; display: grid; place-items: center; background: #fff; color: var(--ink); }
.player-close:hover { background: var(--blue-soft); }
.player-video { width: 100%; max-height: 66svh; background: #08090a; border-radius: 6px; }
.player.is-vertical .player-video { max-height: 72svh; }
.player-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--night-muted); }
.player-foot button { color: #fff; min-height: 40px; padding: 8px 4px; }
.player-foot button:hover { color: var(--blue-soft); }

/* ---------- Case study pages ---------- */
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px var(--gutter) 0; font-size: 13px; }
.crumbs a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: currentColor; }
.crumbs .mono { color: var(--muted-2); }
.case-hero { padding: 54px var(--gutter) 0; }
.case-hero .kicker { margin-bottom: 22px; }
.case-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 6.2vw, 100px); letter-spacing: -.065em; line-height: 1.03; max-width: 15ch; }
.case-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: end; margin-top: 36px; }
.case-intro .lede { font-size: 20px; max-width: 40ch; color: #3b404b; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts dt { font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.facts dd { font-size: 14px; line-height: 1.5; }
.facts dd a { border-bottom: 1px solid currentColor; }
.case-cover { margin: 56px var(--gutter) 0; border-radius: 6px; overflow: hidden; position: relative; }
.case-cover.shot-cover { padding: clamp(24px, 5vw, 72px) clamp(16px, 6vw, 96px) 0; }
.case-cover.shot-cover img { display: block; max-width: 1100px; margin: 0 auto; }
.case-cover.shot-cover img { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 20px 60px #0002; }
.case-cover > video, .case-cover > img.full { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.case-cover figcaption, .media-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.case-cover + .media-note { margin: 12px var(--gutter) 0; }

.case-section { padding: 100px var(--gutter) 0; }
.case-section:last-of-type { padding-bottom: 100px; }
.case-row { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.case-row > header .mono { color: var(--blue); font-size: 10px; margin-bottom: 14px; }
.case-row > header h2 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.04em; line-height: 1.15; }
.prose { max-width: 66ch; }
.prose p { color: #3b404b; font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 16px; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; margin: 30px 0 10px; }
.prose ul.dash { margin-top: 16px; }
.prose ul.dash li { position: relative; padding-left: 20px; color: #3b404b; font-size: 16px; line-height: 1.65; margin-bottom: 8px; }
.prose ul.dash li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1px; background: var(--blue); }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.scope span { background: #e9ecf4; border-radius: 20px; padding: 7px 12px; font-size: 13px; }

.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.decision { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.decision .mono { color: var(--blue); font-size: 10px; margin-bottom: 16px; }
.decision h3 { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.decision p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.delivered { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.delivered li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.delivered li::before { content: "✓"; color: var(--blue); font-weight: 700; flex: none; }

/* View switch (guide / manager) */
.switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 40px; background: #e9ecf4; margin-bottom: 26px; }
.switch [role="tab"] { min-height: 42px; padding: 9px 20px; border-radius: 40px; font-size: 14px; font-weight: 500; color: #3b404b; transition: background-color .2s, color .2s; }
.switch [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.view-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.view-stage { position: relative; min-height: 520px; border-radius: 8px; background: #dfe8f0; display: flex; align-items: center; justify-content: center; padding: 40px 30px; overflow: hidden; }
.view-stage .app-mock.phone { width: 280px; font-size: 12px; }
.view-stage .app-mock.admin { max-width: 600px; }
.callout { position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 100%; background: var(--blue); color: #fff; font-family: var(--display); font-size: 12px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 4px #334bff33; }
.annotations { display: grid; gap: 16px; counter-reset: ann; }
.annotations li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.annotations li > span { width: 26px; height: 26px; border-radius: 100%; background: var(--blue); color: #fff; font-family: var(--display); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.annotations h3 { font-family: var(--display); font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.annotations p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.case-cta { margin: 110px var(--gutter) 0; border-radius: 8px; background: var(--blue); color: #fff; padding: 60px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.case-cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 58px); letter-spacing: -.055em; line-height: 1.05; }
.case-cta p { color: #e1e5ff; font-size: 16px; line-height: 1.6; margin-top: 18px; max-width: 46ch; }
.case-cta .cta-actions { display: grid; gap: 14px; justify-items: start; }
.case-cta .btn-white { min-height: 56px; }
.case-cta .alt { font-size: 13px; color: #dfe3ff; }
.case-cta .alt a { border-bottom: 1px solid #ffffff80; }

.next-project { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 60px var(--gutter) 0; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-project a.np { display: flex; flex-direction: column; gap: 6px; }
.next-project .mono { color: var(--muted-2); font-size: 10px; }
.next-project .np strong { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; display: inline-flex; align-items: center; gap: 16px; }
.next-project .np:hover strong { color: var(--blue); }

.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-2 figure img { width: 100%; height: auto; border-radius: 6px; }

/* ---------- GRIPPY theme (scoped to its case study) ---------- */
.theme-grippy {
  --g-navy: #203449; --g-mint: #79c9b8; --g-blue: #4562b4; --g-coral: #ef8b78; --g-ivory: #faf7f0;
}
.theme-grippy .g-band { background: var(--g-ivory); }
.theme-grippy .g-hero-visual { margin: 56px var(--gutter) 0; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: var(--g-mint) url("/assets/media/grippy/pattern-tiles.svg") 0 0 / 480px 240px; }
.theme-grippy .g-hero-visual .g-box { display: flex; align-items: flex-end; justify-content: center; padding: 50px 30px 0; }
.theme-grippy .g-hero-visual .g-box img { height: 560px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px #20344966); }
.theme-grippy .g-hero-visual .g-teaser { position: relative; }
.theme-grippy .g-hero-visual .g-teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-swatch { border-radius: 6px; overflow: hidden; border: 1px solid #20344918; background: #fff; }
.g-swatch .chip { height: 110px; box-shadow: inset 0 -1px 0 #20344918; }
.g-swatch .info { padding: 12px 14px; font-size: 12.5px; line-height: 1.5; }
.g-swatch .info strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--ink); }
.g-swatch .info span { color: var(--muted); }
.g-logos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.g-logos figure { border-radius: 6px; padding: 34px 26px; display: flex; align-items: center; justify-content: center; min-height: 170px; }
.g-logos img { max-height: 90px; width: auto; }
.g-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.g-type div { border-radius: 6px; background: #fff; border: 1px solid #20344918; padding: 24px; }
.g-type .sample-h { font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Nunito", Arial, sans-serif; font-weight: 700; font-size: 40px; color: #203449; line-height: 1.1; letter-spacing: -.01em; }
.g-type .sample-b { font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #203449; line-height: 1.5; }
.g-type small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }

.mascot-viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mascot-stage { border-radius: 8px; background: var(--g-ivory); min-height: 460px; display: grid; place-items: center; padding: 40px; position: relative; overflow: hidden; }
.mascot-stage::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%; height: 80%; border-radius: 50%; background: var(--g-mint); }
.mascot-stage img { position: relative; width: min(340px, 80%); height: auto; animation: bob .45s var(--ease); }
.mascot-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mascot-thumbs button { width: 74px; height: 74px; border-radius: 12px; background: #fff; border: 2px solid #20344918; display: grid; place-items: center; padding: 10px; transition: border-color .2s, transform .2s var(--ease); }
.mascot-thumbs button:hover { transform: translateY(-2px); }
.mascot-thumbs button[aria-pressed="true"] { border-color: var(--g-blue); background: #eef1fb; }
.mascot-thumbs img { width: 100%; height: auto; }
.mascot-caption h3 { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.03em; }
.mascot-caption p { color: var(--muted); margin-top: 6px; font-size: 15px; line-height: 1.6; }

.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pack-grid figure { border-radius: 8px; background: var(--g-ivory); padding: 40px 30px 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 520px; }
.pack-grid figure img { height: 440px; width: auto; max-width: 100%; object-fit: contain; }
.pack-grid figcaption, .mock-grid figcaption, .social-figs figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.pack-grid figure figcaption { align-self: stretch; padding: 14px 0 18px; border-top: 1px solid #20344914; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.mock-grid img { width: 100%; height: auto; border-radius: 8px; }
.label-concept { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: #fff; color: var(--g-navy); border-radius: 20px; padding: 4px 10px; border: 1px solid #20344922; }
.mock-grid figure { position: relative; }
.mock-grid figure .label-concept { position: absolute; top: 14px; left: 14px; }

.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 40px; background: #20344912; margin-bottom: 22px; }
.lang-switch button { min-width: 64px; min-height: 42px; padding: 8px 16px; border-radius: 40px; font-weight: 600; font-size: 14px; color: var(--g-navy); }
.lang-switch button[aria-pressed="true"] { background: var(--g-navy); color: #fff; }
.social-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.social-figs img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px #2034491a; }
.lang-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lang-notes div { border-radius: 6px; background: #fff; border: 1px solid var(--line); padding: 22px; }
.lang-notes .mono { color: var(--g-blue); font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.lang-notes p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lang-notes blockquote { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--g-coral); font-size: 15px; color: var(--g-navy); line-height: 1.5; }
.theme-grippy .case-cta { background: var(--g-navy); }
.theme-grippy .case-cta .btn-white { color: var(--g-navy); }
.theme-grippy .stickers { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.theme-grippy .stickers figure { background: var(--g-ivory); border-radius: 6px; padding: 18px; display: grid; place-items: center; width: 130px; height: 130px; }
.theme-grippy .stickers img { max-width: 90px; max-height: 90px; }
.theme-grippy .pattern-strip { height: 130px; border-radius: 6px; background: var(--g-mint) url("/assets/media/grippy/pattern-tiles.svg") 0 0 / 360px 180px; flex: 1; min-width: 220px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 24px; padding: 80px var(--gutter); }
.notfound h1 { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 8vw, 110px); letter-spacing: -.06em; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: translateY(10px) scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .hero, .section, .header, .footer, .crumbs, .case-hero, .case-section { padding-left: max(5%, 50vw - 720px); padding-right: max(5%, 50vw - 720px); }
  .case-cover, .case-cta, .next-project, .theme-grippy .g-hero-visual { margin-left: max(5%, 50vw - 720px); margin-right: max(5%, 50vw - 720px); }
}
@media (max-width: 1100px) {
  .nav { gap: 26px; }
  .hero-bottom { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .hero-aside { display: none; }
  .service-groups { grid-template-columns: 1fr; }
  .service-group { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
  .service-group > .head { grid-column: 1 / -1; }
  .service-group .actions { grid-column: 1 / -1; }
  .engage-list { grid-template-columns: 1fr 1fr; }
  .engage-item:nth-child(2) { border-right: 0; }
  .engage-item:nth-child(3) { padding-left: 0; }
  .engage-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps li::after { display: none; }
  .work-card.is-feature, .work-card.is-feature:nth-of-type(2) { grid-template-columns: 1fr; gap: 22px; }
  .work-card.is-feature:nth-of-type(2) .work-media { order: 0; }
  .is-feature .work-media { height: 460px; }
  .case-row { grid-template-columns: 1fr; gap: 24px; }
  .view-panel { grid-template-columns: 1fr; }
  .mascot-viewer { grid-template-columns: 1fr; }
  .social-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-card, .is-filtered .film-card { grid-column: span 3; }
  .film-card.is-vertical, .is-filtered .film-card.is-vertical { grid-column: 1 / -1; grid-row: auto; }
  .is-vertical .film-frame, .is-filtered .is-vertical .film-frame { aspect-ratio: auto; flex: none; height: 560px; }
}
@media (max-width: 820px) {
  :root { --header-h: 70px; --gutter: 6%; }
  .nav, .header .header-cta { display: none; }
  .header-end { gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .logo { font-size: 30px; }
  .hero { padding-top: 24px; }
  .hero-top .mono { font-size: 9px; letter-spacing: .6px; }
  .hero-top .clock { display: none; }
  .hero h1 { font-size: clamp(42px, 11.4vw, 76px); margin: 44px 0 32px; letter-spacing: -.065em; }
  .asterisk { margin-left: .15em; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .intro p { font-size: 18px; }
  .hero-film { height: 200px; }
  .baseline { font-size: 9px; line-height: 1.6; align-items: flex-start; }
  .section { padding: 72px var(--gutter); }
  .section-heading, .services-head, .engage-head, .process-head { display: block; margin-bottom: 30px; }
  .section-heading .lede, .services-head .lede, .engage-head p, .process-head p { margin-top: 22px; }
  .h-section { font-size: clamp(38px, 10.4vw, 52px); }
  .kicker { margin-bottom: 20px; font-size: 10px; }
  .work-grid { grid-template-columns: 1fr; gap: 44px; }
  .work-media, .is-feature .work-media { height: 340px; }
  .work-body h3 { font-size: 22px; }
  .is-feature .work-body h3 { font-size: 30px; }
  .is-feature .work-body p { font-size: 16px; }
  .work-media .app-stage { padding: 20px 4% 20px 20%; }
  .work-media .app-stage .app-mock.admin { max-width: 360px; transform: scale(.9); transform-origin: right center; }
  .work-media .app-stage .app-mock.phone { left: 3%; width: 190px; transform: rotate(-3deg) scale(.82); transform-origin: left bottom; bottom: -70px; }
  .atelier-title span { font-size: 30px; }
  .service-group { display: flex; padding: 26px 22px; }
  .engage-list { grid-template-columns: 1fr; }
  .engage-item, .engage-item + .engage-item { padding: 22px 0 14px; border-right: 0; }
  .engage-item + .engage-item { border-top: 1px solid var(--line); }
  .film-grid { grid-template-columns: 1fr; gap: 32px; }
  .film-card, .film-card.is-vertical, .is-filtered .film-card, .is-filtered .film-card.is-vertical { grid-column: auto; }
  .is-vertical .film-frame, .is-filtered .is-vertical .film-frame { height: 520px; }
  .motion-end { font-size: 9px; flex-direction: column; gap: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .identity-card { min-height: 340px; }
  .identity-monogram { font-size: 140px; }
  .identity-monogram span { font-size: 64px; }
  .bio h3 { font-size: 25px; }
  .process { margin-top: 70px; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-top { align-items: flex-start; }
  .contact h2 { font-size: clamp(42px, 11vw, 64px); }
  .contact h2 > svg { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .enquiry { padding: 22px 18px; }
  .footer { flex-wrap: wrap; gap: 18px; }
  .footer nav { order: 3; width: 100%; flex-wrap: wrap; }
  dialog.player { padding: 18px 16px; }
  .player-head h2 { font-size: 22px; }
  .crumbs { padding-top: 18px; }
  .crumbs .mono { display: none; }
  .case-hero { padding-top: 34px; }
  .case-intro { grid-template-columns: 1fr; gap: 30px; margin-top: 26px; }
  .case-intro .lede { font-size: 18px; }
  .case-cover { margin-top: 36px; }
  .case-section { padding-top: 70px; }
  .case-row > header h2 { font-size: 26px; }
  .prose p { font-size: 16px; }
  .decisions, .delivered { grid-template-columns: 1fr; }
  .view-stage { min-height: 0; padding: 26px 12px; }
  .view-stage .app-mock.phone { width: 260px; }
  .case-cta { grid-template-columns: 1fr; padding: 40px 24px; margin-top: 80px; }
  .next-project { flex-direction: column; align-items: flex-start; }
  .gallery-2, .pack-grid, .mock-grid { grid-template-columns: 1fr; }
  .pack-grid figure { min-height: 0; }
  .pack-grid figure img { height: 340px; }
  .theme-grippy .g-hero-visual { grid-template-columns: 1fr; min-height: 0; }
  .theme-grippy .g-hero-visual .g-box img { height: 380px; }
  .theme-grippy .g-hero-visual .g-teaser { aspect-ratio: 4 / 5; }
  .g-palette { grid-template-columns: 1fr 1fr; }
  .g-logos, .g-type, .lang-notes { grid-template-columns: 1fr; }
  .mascot-stage { min-height: 340px; }
  .social-figs { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .app-mock.admin .adm-grid { grid-template-columns: 1fr; }
  .view-stage .app-mock.admin { font-size: 10px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Human / Agent view switch (footer) ---------- */
:root { --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.footer { flex-wrap: wrap; }
.view-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 30px; border: 1px solid var(--line); }
.view-switch::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 30px; background: var(--ink); transition: transform .32s var(--ease), background-color .32s; }
.view-switch > * { position: relative; z-index: 1; display: grid; place-items: center; min-width: 66px; min-height: 30px; padding: 0 12px; border-radius: 30px; transition: color .2s; }
.view-switch .is-current { color: #fff; }
.view-switch a { font-family: var(--mono); letter-spacing: .5px; }
.view-switch a:hover { color: var(--blue); }
.view-switch.is-switching::before { transform: translateX(100%); background: var(--blue); }
.view-switch.is-switching .is-current { color: #6c7180; }
.view-switch.is-switching a { color: #fff; }
.is-decoding { font-family: var(--mono) !important; letter-spacing: 0 !important; overflow-wrap: anywhere; }
html.is-agent-switching { overflow-x: hidden; cursor: progress; }
html.is-agent-switching body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--paper); opacity: 0; animation: fade-in .18s .36s var(--ease) forwards; }
@media (prefers-color-scheme: dark) { html.is-agent-switching body::after { background: var(--night); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
