/* Datamastaros website
   All colours are defined here, using the exact colours of datamastaros.com:
   navy #060910 / #0b0f1a / #111827 / #1b2a4a, text #f8fafc / #e2e8f0 / #94a3b8,
   teal #00f5d4, sky #38bdf8, blue #3b82f6, violet #8b5cf6 / #7c3aed,
   coral #f97316 and rose #f43f5e. Lines and glows are see-through versions of these. */

:root {
  color-scheme: dark;
  --font: Inter, 'Helvetica Neue', Arial, sans-serif;

  /* Page */
  --bg: #060910;
  --paper: #0b0f1a;
  --ink: #e2e8f0;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --line: #ffffff0f;
  --accent: #00f5d4;
  --accent-soft: #00f5d41a;
  --accent-line: #ffffff1f;
  --label: #38bdf8;
  --shadow-rgb: 0 0 0;
  --band: #0b0f1a;
  --band-muted: #94a3b8;

  /* Hero, demo and index sections */
  --night-1: #1b2a4a;
  --night-2: #0b0f1a;
  --night-3: #060910;
  --night-card: #0b0f1a;
  --night-card-2: #060910;
  --night-line: #ffffff0f;
  --night-border: #ffffff1f;
  --grid: #ffffff05;
  --on-night: #f8fafc;
  --on-night-muted: #94a3b8;
  --on-night-label: #38bdf8;
  --glow: #00f5d4;
  --primary-ink: #060910;
  --chip: #111827;
  --chip-hover: #1b2a4a;
  --chip-on: #00f5d41a;
  --chip-on-border: #00f5d4;

  /* Gradients and card edges */
  --headline-gradient: linear-gradient(90deg, #38bdf8, #3b82f6 45%, #8b5cf6);
  --button-gradient: linear-gradient(90deg, #00f5d4, #3b82f6);
  --rabbi-gradient: linear-gradient(135deg, #38bdf8, #7c3aed);
  --edge-1: #00f5d4;
  --edge-2: #3b82f6;
  --edge-3: #8b5cf6;

  /* Status */
  --good: #00f5d4;
  --good-on-night: #00f5d4;
  --warn: #f97316;
  --warn-soft: #f973161a;
  --warn-on-night: #f97316;
  --danger: #f43f5e;
  --danger-soft: #f43f5e1a;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--glow); }
::selection { background: var(--accent-soft); color: var(--heading); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--bg); color: var(--heading); box-shadow: 0 6px 20px rgb(0 0 0 / 20%); }
.skip:focus { top: 12px; }
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 0; height: 3px; background: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1340px; height: 70px; margin: auto; padding-inline: clamp(16px, 3vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-size: 21px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand .dot { color: var(--accent); }
#navigation { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: 14px; font-weight: 550; }
#navigation a:hover { color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); }
.nav-cta .icon { width: 15px; height: 15px; }
.menu { display: none; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--heading); font-size: 15px; font-weight: 600; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.button .icon { width: 16px; height: 16px; }
.button.primary, .button.solid { background: var(--button-gradient); color: var(--primary-ink); }
.button.primary:hover, .button.solid:hover { background: var(--button-gradient); filter: brightness(1.1); }
.button.ghost { border-color: color-mix(in srgb, var(--on-night) 40%, transparent); background: color-mix(in srgb, var(--on-night) 6%, transparent); color: var(--on-night); }
.button.ghost:hover { background: color-mix(in srgb, var(--on-night) 13%, transparent); }
.button.outline { border-color: color-mix(in srgb, var(--heading) 28%, transparent); background: transparent; color: var(--heading); }
.button.outline:hover { background: var(--accent-soft); }
.button:disabled { opacity: .5; cursor: default; }

/* Shared section parts */
.section { padding-block: clamp(60px, 8vw, 112px); }
.tinted { background: var(--paper); }
.marker { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(26px, 4vw, 44px); padding-top: 14px; border-top: 1px solid var(--line); color: var(--label); font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.marker span:last-child { color: var(--muted); }
h2 { margin: 0; color: var(--heading); font-size: clamp(32px, 4.2vw, 56px); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
h2 span, .hero h1 span, .flag-title em { background: var(--headline-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.eyebrow { margin: 0 0 14px; color: var(--label); font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 8% 96%, #00f5d41f, transparent 34%), radial-gradient(circle at 92% 8%, #7c3aed33, transparent 40%), radial-gradient(ellipse at 82% 38%, var(--night-1), var(--night-2) 52%, var(--night-3) 90%); color: var(--on-night); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent 10%, #000 100%); }
.hero h1 { max-width: 13ch; margin: 0; font-size: clamp(40px, 5.6vw, 78px); font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.credentials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 22px 0 30px; border-top: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent); list-style: none; }
.credentials li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.credentials strong { color: var(--on-night); font-size: 16px; font-weight: 650; }
.credentials span { color: var(--on-night-label); font-size: 14px; }

/* Cards */
.card-grid { display: grid; gap: clamp(12px, 2vw, 24px); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--accent-line); border-top: 3px solid var(--edge-2); border-radius: 12px; background: var(--bg); box-shadow: 0 10px 28px rgb(var(--shadow-rgb) / 7%); }
.card-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; margin: 0 0 14px; color: var(--label); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { margin: 0 0 10px; color: var(--heading); font-size: clamp(20px, 2vw, 24px); font-weight: 650; line-height: 1.2; letter-spacing: -.03em; }
.card p:not(.card-index) { margin: 0; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 15px; font-weight: 650; }
.card-link:hover { text-decoration: underline; }
.card-link .icon { width: 15px; height: 15px; }
.card-grid .card:nth-child(3n + 1) { border-top-color: var(--edge-1); }
.card-grid .card:nth-child(3n + 2) { border-top-color: var(--edge-2); }
.card-grid .card:nth-child(3n) { border-top-color: var(--edge-3); }

/* Demo */
.done-mark { color: var(--good-on-night); font-size: 12px; font-style: normal; font-weight: 650; }

/* Split layouts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
/* Our work: products built by the team, owned elsewhere */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { padding-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--heading); font-size: 18px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { margin: 10px 36px 0 0; color: var(--muted); line-height: 1.65; }

/* Contact */
.contact-section { padding-block: clamp(56px, 8vw, 104px); background: radial-gradient(circle at 0% 100%, #00f5d414, transparent 40%), var(--band); }
.contact-section .marker { border-color: color-mix(in srgb, var(--heading) 15%, transparent); }
.contact-section .marker span:last-child { color: var(--band-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.contact-grid > div { min-width: 0; }
.contact-section h2 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.055em; }
.contact-grid > div > p { max-width: 480px; margin: 22px 0 26px; color: var(--band-muted); font-size: 17px; line-height: 1.65; }
.email { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding-bottom: 6px; border-bottom: 1px solid var(--accent); color: var(--heading); font-size: clamp(18px, 2vw, 22px); font-weight: 600; overflow-wrap: anywhere; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--band-muted); font-size: 15px; font-weight: 550; }
.contact-links a:hover, .footer-bottom a:hover { color: var(--accent); }
.contact-form { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--accent-line); border-radius: 16px; background: var(--bg); box-shadow: 0 18px 44px rgb(var(--shadow-rgb) / 10%); }
.form-intro { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--label); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form label { display: block; margin-bottom: 16px; color: var(--heading); font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--heading) 24%, transparent); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.4; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.contact-form [aria-invalid="true"] { border-color: var(--danger); }
.form-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.contact-form .button { width: 100%; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-note a { text-decoration: underline; }

/* Footer */
.site-footer { padding-block: 36px 26px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 24px; }
.footer-top p { margin: 0; color: var(--muted); font-size: 15px; }
.back-top { color: var(--label); font-size: 14px; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }

/* Message preview dialog */
dialog { width: min(620px, calc(100% - 32px)); max-height: 88dvh; padding: clamp(24px, 4vw, 40px); overflow: auto; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px rgb(0 0 0 / 35%); }
dialog::backdrop { background: rgb(6 9 16 / 72%); backdrop-filter: blur(6px); }
dialog h2 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 38px); }
dialog > p { color: var(--muted); }
dialog label { display: block; margin: 16px 0 6px; color: var(--heading); font-size: 14px; font-weight: 600; }
#enquiry-preview { width: 100%; padding: 12px; border: 1px solid var(--accent-line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; resize: vertical; }
.close { position: absolute; top: 10px; right: 14px; padding: 4px 8px; border: 0; background: none; color: var(--accent); font-size: 30px; line-height: 1; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#copy-status { min-height: 1.4em; margin: 10px 0 0; color: var(--good); font-size: 14px; }
.dialog-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }

/* Legal pages */
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.legal-header > a:last-child { color: var(--accent); font-weight: 600; }
.legal { max-width: 820px; padding-block: clamp(40px, 6vw, 72px) 90px; }
.legal h1 { margin: 0 0 28px; color: var(--heading); font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.legal h2 { margin: 32px 0 10px; font-size: clamp(22px, 2.6vw, 28px); }
.legal p { color: var(--muted); line-height: 1.7; }
.legal .button { margin-top: 24px; }

/* Motion */
@keyframes vc-in { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 25%, transparent); } }

/* Responsive */
@media (max-width: 1080px) {
  .menu { display: inline-flex; }
  #navigation { position: absolute; top: 70px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px clamp(16px, 4vw, 40px) 22px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 18px 30px rgb(var(--shadow-rgb) / 10%); font-size: 16px; }
  #navigation.open { display: flex; }
  #navigation a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  #navigation .nav-cta { justify-content: space-between; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--accent); }
}
@media (max-width: 900px) {
  .section-heading, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 15ch; }
  .card-grid.three, .card-grid.two, .work-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .marker span:last-child { display: none; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq summary { font-size: 17px; }
  .faq p { margin-right: 0; }
  .draft-actions .button, .hero-actions .button { width: 100%; }
}
@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Editorial cover and capability rows */
.cover {background:var(--bg);border-bottom:1px solid var(--line)}
.cover::before {display:none}
.cover-images, .cover-images img, .cover-images::after {position:absolute;inset:0;width:100%;height:100%}
.cover-images img {object-fit:cover;object-position:65% 42%;opacity:0;transition:opacity .85s}
.cover-images img.active {opacity:1}
.cover-images::after {content:"";background:linear-gradient(90deg,#060910fa 0%,#060910ec 20%,#060910b5 47%,#06091018 82%),linear-gradient(0deg,#060910e0,transparent 45%)}
.cover-inner {position:relative;padding-block:clamp(58px,7vw,106px) 26px}
.studio-label {color:var(--label);font-size:.85rem;font-weight:650;letter-spacing:.12em;text-transform:uppercase}
.studio-label {margin:0 0 28px}.studio-label span {margin-inline:8px;color:var(--muted)}
.stories {display:grid}.story {grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .7s}.story.current {visibility:visible;opacity:1}
.cover .story h1, .cover .story h2 {max-width:none;font-size:clamp(2.65rem,6.1vw,5.75rem);line-height:1.02;letter-spacing:-.061em;margin:0;font-weight:600;color:var(--heading)}
.story em {font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.01em;color:var(--accent)}
.story p {max-width:46ch;line-height:1.6;color:var(--ink);font-size:1.1rem;margin:25px 0 28px}
.story-controls {margin-top:clamp(44px,6vw,88px);display:flex;align-items:center;gap:16px}.story-controls[hidden] {display:none}
.story-controls button {border:0;border-top:2px solid #94a3b877;padding:10px 2px;color:var(--ink);background:transparent;font-size:.9rem}
.story-controls button[aria-pressed=true] {border-color:var(--accent);color:var(--accent)}
.story-controls .play {border:1px solid #94a3b877;border-radius:30px;background:#06091088;padding:6px 14px}
.practice-list article {display:grid;grid-template-columns:1fr 1.35fr 1.6fr;align-items:baseline;gap:24px;padding:26px 0;border-top:1px solid var(--line)}
.practice-list span {color:var(--label);font-size:.9rem}.practice-list h3 {margin:0;font-size:1.45rem;letter-spacing:-.04em}.practice-list p {color:var(--muted);margin:0}
@media(max-width:700px) {.cover-images::after {background:linear-gradient(90deg,#060910e8,#06091098 78%),linear-gradient(0deg,#060910e0,transparent)}.cover-inner {padding-top:55px}.cover .hero-actions .button {width:auto}.story p {font-size:1rem}.practice-list article {grid-template-columns:1fr;gap:7px}.story-controls {gap:12px}.cover .story h1, .cover .story h2 {font-size:clamp(2.25rem,8.8vw,4rem)}}
@media(prefers-reduced-motion:reduce) {.story, .cover-images img {transition:none}}

.cover .flag-title {max-width:15ch;font-size:clamp(2.7rem,5.3vw,5.2rem);font-weight:600;line-height:1.02;letter-spacing:-.058em}
.flag-title em {font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.01em;padding-right:.06em}
.flag-intro {max-width:50ch;font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.6;color:var(--heading);margin:22px 0}
.example-band {max-width:550px;margin-top:36px;padding-left:14px;border-left:2px solid var(--accent)}
.example-band p {margin:3px 0;font-size:1rem;max-width:52ch}.example-band .scene-label {color:var(--on-night-label);font-size:.8rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.cover .story-controls {margin-top:16px}.cover-inner {padding-top:clamp(38px,5vw,70px)}
.compact-research .work-grid {margin-top:28px}.compact-research article {border-top:1px solid var(--line);padding-block:18px}.compact-research article p {color:var(--muted)}

/* Credentials band under the hero */
.proof-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.proof-band .credentials { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 0; border-top: 0; }

/* Who we build for */
.serve-row { margin-top: clamp(40px, 5vw, 64px); }
.serve-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.serve-list li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 18px; border-top: 2px solid var(--edge-1); }
.serve-list li:nth-child(2) { border-top-color: var(--edge-2); }
.serve-list li:nth-child(3) { border-top-color: var(--edge-3); }
.serve-list strong { color: var(--heading); font-size: 18px; letter-spacing: -.02em; }
.serve-list span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pilot-cta { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 900px) { .serve-list { grid-template-columns: minmax(0, 1fr); } }

/* Two-card rows, phone number in the menu, contact line in the footer */
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-phone { color: var(--muted); font-variant-numeric: tabular-nums; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-contact a { color: var(--heading); font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
@media (max-width: 760px) { .proof-band .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "Also from our team": websites, apps and project management, under the AI capabilities */
.also-row .serve-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.serve-list .card-link { padding-top: 6px; font-size: 15px; }
@media (max-width: 900px) { .also-row .serve-list { grid-template-columns: minmax(0, 1fr); } }
.contact-links button { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.contact-links button:hover { color: var(--accent); }

/* Agent Rabbi, the chat assistant */
.rabbi-launcher { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 20px 6px 6px; border: 1px solid var(--accent-line); border-radius: 999px; background: color-mix(in srgb, var(--chip) 94%, transparent); backdrop-filter: blur(12px); color: var(--heading); font-size: 15px; font-weight: 600; box-shadow: 0 14px 34px rgb(0 0 0 / 40%); transition: border-color .2s, transform .2s; }
.rabbi-launcher:hover { border-color: var(--accent); transform: translateY(-1px); }
.rabbi.is-open .rabbi-launcher { display: none; }
.rabbi-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--rabbi-gradient); color: var(--heading); }
.rabbi-avatar .icon { width: 20px; height: 20px; }
.rabbi-panel { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 32px)); height: min(620px, calc(100dvh - 32px)); border: 1px solid var(--accent-line); border-radius: 18px; background: var(--paper); box-shadow: 0 28px 70px rgb(0 0 0 / 55%); overflow: hidden; animation: rabbi-in .22s ease-out; }
@keyframes rabbi-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.rabbi-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--chip) 70%, transparent); }
.rabbi-who { flex: 1; min-width: 0; }
.rabbi-who h2 { margin: 0; color: var(--heading); font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.rabbi-who h2:focus { outline: none; }
.rabbi-who p { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.rabbi-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--glow); animation: pulse 2.4s infinite; }
.rabbi-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.rabbi-close:hover { background: var(--chip-hover); color: var(--heading); }
.rabbi-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--chip-hover) transparent; }
.rabbi-msg { display: flex; }
.rabbi-msg.from-user { justify-content: flex-end; }
.rabbi-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.from-rabbi .rabbi-bubble { border: 1px solid var(--line); border-bottom-left-radius: 5px; background: var(--chip); color: var(--ink); }
.from-user .rabbi-bubble { border: 1px solid color-mix(in srgb, var(--label) 30%, transparent); border-bottom-right-radius: 5px; background: var(--chip-hover); color: var(--heading); white-space: pre-wrap; }
.rabbi-bubble p, .rabbi-bubble ul, .rabbi-bubble ol { margin: 0; }
.rabbi-bubble > :not(:first-child) { margin-top: 8px; }
.rabbi-bubble ul, .rabbi-bubble ol { padding-left: 20px; }
.rabbi-bubble li + li { margin-top: 4px; }
.rabbi-bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rabbi-bubble strong { color: var(--heading); font-weight: 650; }
.rabbi-typing .rabbi-bubble { display: flex; gap: 5px; padding: 15px 16px; }
.rabbi-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); animation: rabbi-dot 1.2s infinite ease-in-out; }
.rabbi-typing span:nth-child(2) { animation-delay: .15s; }
.rabbi-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rabbi-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.rabbi-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.rabbi-chips button, .rabbi-chips a { padding: 7px 12px; border: 1px solid var(--accent-line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; line-height: 1.3; }
.rabbi-chips button:hover, .rabbi-chips a:hover { border-color: var(--accent); color: var(--accent); }
.rabbi-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px 10px; border-top: 1px solid var(--line); }
.rabbi-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 132px; padding: 11px 14px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--bg); color: var(--heading); font-size: 16px; line-height: 1.4; resize: none; }
.rabbi-form textarea::placeholder { color: var(--muted); }
.rabbi-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.rabbi-send { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--button-gradient); color: var(--primary-ink); }
.rabbi-send:hover { filter: brightness(1.1); }
.rabbi-send:disabled { opacity: .45; cursor: default; filter: none; }
.rabbi-note { margin: 0; padding: 0 16px 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rabbi-note a { text-decoration: underline; }
.rabbi-note a:hover { color: var(--accent); }
body:has(.rabbi:not([hidden])) .site-footer { padding-bottom: 96px; }
@media (max-width: 560px) {
  .rabbi-launcher { padding: 6px; }
  .rabbi-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rabbi-panel { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; height: min(640px, calc(100vh - 16px)); height: min(640px, calc(100dvh - 16px)); border-radius: 16px; }
}
@media print { .rabbi { display: none !important; } }

/* Work by our team */
.work-grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--bg); box-shadow: 0 10px 28px rgb(var(--shadow-rgb) / 7%); }
.work-card img { width: 100%; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: var(--chip); object-fit: cover; object-position: top left; }
.work-body { display: flex; flex: 1; flex-direction: column; padding: clamp(20px, 2.4vw, 30px); }
.work-body h3 { margin: 0 0 10px; color: var(--heading); font-size: clamp(22px, 2.2vw, 28px); font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.work-body > p:not(.card-index):not(.work-owner) { margin: 0; color: var(--muted); line-height: 1.6; }
.work-points { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; color: var(--ink); font-size: 15px; line-height: 1.5; list-style: none; }
.work-points li { position: relative; padding-left: 20px; }
.work-points li::before { content: ''; position: absolute; top: .55em; left: 2px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.work-owner { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; font-style: italic; }
@media (max-width: 900px) { .work-grid-cards { grid-template-columns: minmax(0, 1fr); } }

/* A short note on the team, inside About */
.team-block { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.team-block .eyebrow { margin-bottom: 10px; }
.team-summary { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; }

#send-enquiry[hidden] {display:none;}

