@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-mid: #6b6b6b;
  --text-dim: #a3a3a3;
  --accent: #b9bfc8;
  --accent-muted: #6f7681;
  --border: #e5e5e5;
  --border-bright: #d4d4d4;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Small tracked labels, as in the Contractors app */
.label {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.label-dim { color: var(--text-dim); letter-spacing: 0.1em; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.lang { display: flex; gap: 16px; font-size: 12px; letter-spacing: 0.1em; }
.lang a { text-decoration: none; color: var(--text-dim); transition: color .2s; }
.lang a:hover, .lang a[aria-current="true"] { color: var(--text); }

/* Hero: dark band with the Singapore-Batam coordinate map (animated unless reduced motion) */
.band {
  padding-top: var(--nav-h);
  --map: url("/img/map-animated.svg");
  background-color: var(--text);
  background-image:
    linear-gradient(90deg, rgba(26,26,26,.97) 0, rgba(26,26,26,.88) calc(50% - 128px), rgba(26,26,26,.25) calc(50% + 282px), rgba(26,26,26,0) calc(50% + 640px)),
    var(--map);
  background-repeat: no-repeat;
  /* Map and shading are placed from the page centre, so on wide screens they stay next to the text */
  background-size: cover, min(1100px, 75vw) auto;
  background-position: center, left calc(50vw - 192px) center;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) { .band { --map: url("/img/map.svg"); } }
.band a:focus-visible, .nav-front a:focus-visible { outline-color: #fff; }
.band .label { color: #fff; }
.band .label-dim { color: #8f8f8f; }

.hero {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero > div { max-width: 640px; }

/* Author line above the headline */
.byline { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.byline img { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); object-fit: cover; }
.byline p { margin: 0; }
.byline-name { font-size: 15px; font-weight: 500; }
.byline-role { font-size: 13px; font-weight: 300; color: #a3a3a3; }

/* Fixed navigation as a rolling cube (same mechanics as the gansel-website header):
   the dark front face shows over the hero, the white back face once the hero has scrolled away (nav.js) */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--nav-h);
  perspective: 1100px;
}
.nav-face {
  position: absolute;
  inset: 0;
  transform-origin: 0 calc(var(--nav-h) / 2) calc(var(--nav-h) / -2);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 600ms cubic-bezier(.25, 1, .35, 1);
}
/* Light falls from the front: a face turning away darkens, a face turning in brightens */
.nav-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(.25, 1, .35, 1);
}
.nav-front { color: #fff; transform: rotateX(0deg); }
/* Solid over the hero too, so the hero text never runs under the links; a hairline marks the edge */
.nav-front { background: var(--text); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.nav-back {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border), 0 12px 32px -16px rgba(0, 0, 0, .18);
  transform: rotateX(-90deg);
}
.site-nav.is-light .nav-front { transform: rotateX(90deg); }
.site-nav.is-light .nav-back { transform: rotateX(0deg); }
.nav-back::after, .site-nav.is-light .nav-front::after { opacity: .45; }
.site-nav.is-light .nav-back::after { opacity: 0; }
/* No roll on page load, only when the reader scrolls */
.site-nav.is-static .nav-face, .site-nav.is-static .nav-face::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav-face, .nav-face::after { transition: none; } }
.site-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: 100%; }
/* The name sits in the hero byline, so only the white face shows it */
.nav-right { display: flex; align-items: center; gap: 28px; flex: none; margin-left: auto; }
/* Section links on the left, from laptop width; the section in view is marked by nav.js */
.nav-links { display: flex; gap: 28px; font-size: 13px; }
.nav-links a { padding: 6px 0; color: inherit; text-decoration: none; opacity: .65; box-shadow: inset 0 -1px 0 transparent; transition: opacity .2s, box-shadow .2s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a.is-active { box-shadow: inset 0 -1px 0 currentColor; }
.nav-links a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 879px) { .nav-links { display: none; } }

/* Menu button (phones and tablets): two lines that turn into a cross while the menu is open */
.nav-toggle { display: none; place-content: center; gap: 6px; width: 40px; height: 40px; margin-left: -10px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.site-nav.is-menu-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-nav.is-menu-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
@media (max-width: 879px) { .nav-toggle { display: grid; } }

.nav-menu { position: absolute; top: 100%; left: 0; right: 0; color: var(--text); background: var(--surface); box-shadow: 0 1px 0 var(--border), 0 24px 48px -24px rgba(0, 0, 0, .35); animation: nav-menu-in .2s ease; }
.nav-menu[hidden] { display: none; }
.nav-menu nav { padding-top: 8px; padding-bottom: 24px; }
.nav-menu nav > a { display: block; padding: 16px 0; font-size: 18px; font-weight: 300; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.nav-menu-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nav-menu-actions .button { flex: 1 1 auto; justify-content: center; }
@keyframes nav-menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 880px) { .nav-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-toggle span { animation: none; transition: none; } }
/* Headings the section links jump to land below the fixed bar */
.section h2[id] { scroll-margin-top: calc(var(--nav-h) + 32px); }
/* Language switch as a segmented control, same height as the nav buttons */
.site-nav .lang { gap: 0; border: 1px solid rgba(255, 255, 255, .35); }
.site-nav .lang a { padding: 9px 12px; line-height: 21px; font-size: 12px; color: #8f8f8f; transition: color .2s, background-color .2s; }
.site-nav .lang a + a { border-left: 1px solid rgba(255, 255, 255, .35); }
.site-nav .lang a:hover { color: #fff; }
.site-nav .lang a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-back .lang, .nav-back .lang a + a { border-color: var(--border-bright); }
.nav-back .lang a { color: var(--text-dim); }
.nav-back .lang a:hover { color: var(--text); }
.nav-back .lang a[aria-current="true"] { color: var(--text); background: #f5f5f4; }
.hero h1 {
  margin: 24px 0 0;
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.hero .lead {
  margin: 32px 0 0;
  max-width: 46ch;
  font-size: 17px;
  font-weight: 300;
  color: #bdbdbd;
}
.hero .actions { margin-top: 40px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background .3s, color .3s;
}
.button:hover { background: transparent; color: var(--text); }
button.button { font-family: inherit; line-height: inherit; cursor: pointer; }

/* Up-right arrow: flies out and back in, every few seconds and right away on hover */
.arrow { display: inline-block; width: 12px; height: 12px; overflow: hidden; }
.arrow svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: arrow-idle 4s ease-in-out infinite; }
.button:hover .arrow svg, .button:focus-visible .arrow svg { animation: arrow-once .5s ease-in-out; }
@keyframes arrow-idle {
  0%, 80% { transform: translate(0, 0); }
  89.99% { transform: translate(110%, -110%); }
  90% { transform: translate(-110%, 110%); }
  100% { transform: translate(0, 0); }
}
@keyframes arrow-once {
  0% { transform: translate(0, 0); }
  49.99% { transform: translate(110%, -110%); }
  50% { transform: translate(-110%, 110%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .arrow svg, .button:hover .arrow svg { animation: none; } }
.band .button, .nav-front .button { background: #fff; color: var(--text); border-color: #fff; }
.band .button:hover, .nav-front .button:hover { background: transparent; color: #fff; }
.button-small { padding: 9px 18px; font-size: 13px; gap: 10px; }
/* Secondary nav button: white with a fine outline, outline-only over the dark hero */
.button-outline { background: var(--surface); color: var(--text); border-color: var(--border-bright); }
.button-outline:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.nav-front .button-outline, .band .button-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.nav-front .button-outline:hover, .band .button-outline:hover { background: transparent; color: #fff; border-color: #fff; }
/* Only the hero arrow moves on its own; the nav arrow waits for hover */
.button-small .arrow svg { animation: none; }

/* Clock strip: the three places, live */
.places { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.places ol {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--max);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.places li { padding: 28px 0; }
.places li + li { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--border); }
.places .time {
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.places .where { display: block; margin-top: 10px; font-size: 13px; color: var(--text-mid); }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.section h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 28ch;
}

/* Equal column widths: the gap holds the space, the dividers sit in the middle of it */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--text); }
.columns > div { position: relative; padding-top: 28px; }
.columns > div + div::before { content: ""; position: absolute; top: 0; bottom: 0; left: -32px; border-left: 1px solid var(--border); }
.columns h3 { margin: 0 0 14px; }
/* Photo above each heading, greyscaled like the case study photos.
   Photos on Unsplash (Unsplash License): Thought Catalog (AI), Mike Stoll (modernise), Simon Kadula (automate) */
.col-photo { display: block; width: 100%; height: clamp(160px, 15vw, 210px); object-fit: cover; margin-bottom: 24px; filter: contrast(1.05); }
.columns p { margin: 0; font-weight: 300; color: var(--text-mid); max-width: 36ch; }

/* Case studies: two compact dark cards side by side, details fold out on demand */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.case-card { position: relative; display: flex; flex-direction: column; background: var(--text); color: #fff; }
.case-card .label { color: #fff; }
.case-card .label-dim { color: #8f8f8f; }
.case-media { position: relative; height: 220px; overflow: hidden; }
/* Photo: Matt Boitor on Unsplash (Unsplash License), greyscaled */
.case-media-diesel {
  background:
    linear-gradient(0deg, var(--text) 0%, rgba(26, 26, 26, .2) 70%),
    url("/img/case-diesel.jpg") 50% 45% / cover;
}
/* A cut-out of a sample AI chat stands in for a photo */
.case-media-ai { background: radial-gradient(ellipse at 80% 0%, rgba(185, 191, 200, .22), transparent 60%), #1f1f1f; }
.case-media-ai::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--text) 0%, transparent 45%); }
.case-media-ai .ai-chat { position: absolute; top: 24px; left: 28px; right: -40px; transform: perspective(1200px) rotateY(-10deg) rotateX(6deg); transform-origin: 0 0; }
.case-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px clamp(20px, 3vw, 36px) 0; }
.case-title { margin: 0; font-size: 13px; font-weight: 300; color: #a3a3a3; }
.case-card h3 { margin: 20px 0 0; padding: 0 clamp(20px, 3vw, 36px); font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; }
.case-card-lead { margin: 14px 0 0; padding: 0 clamp(20px, 3vw, 36px); font-size: 15px; font-weight: 300; color: #bdbdbd; }
.case-card > h4 { margin: 28px 0 0; padding: 0 clamp(20px, 3vw, 36px); }
.chips { list-style: none; margin: 12px 0 0; padding: 0 clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid rgba(185, 191, 200, .5); background: rgba(185, 191, 200, .08); font-size: 13px; color: #e5e5e5; }

.case-more { margin: auto 0 0; padding-top: 28px; }
.case-more summary { border-top: 1px solid rgba(255, 255, 255, .12); }
.case-more summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(20px, 3vw, 36px);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a3a3a3;
  transition: color .2s;
}
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary::after { content: "+"; font-size: 18px; font-weight: 300; letter-spacing: 0; line-height: 1; transition: transform .3s; }
.case-more[open] summary::after { transform: rotate(45deg); }
.case-more summary:hover { color: #fff; }
.case-more summary:focus-visible { outline: 1px solid #fff; outline-offset: -4px; }
.case-more-body { padding: 0 clamp(20px, 3vw, 36px) 28px; }
.case-more-body h4 { margin: 8px 0 12px; }
.case-more-body h4 + * { margin-bottom: 24px; }
/* The automated chain as a vertical sequence: numbered copper circles joined by a line */
.case-chain { list-style: none; margin: 0; padding: 0; counter-reset: chain; font-size: 14px; color: #e5e5e5; }
.case-chain li { position: relative; padding: 1px 0 14px 34px; counter-increment: chain; }
.case-chain li::before {
  content: counter(chain);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.case-chain li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 24px; bottom: 2px; border-left: 1px solid rgba(185, 191, 200, .35); }
.case-defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; font-weight: 300; color: #a3a3a3; }
.case-defs strong { display: block; font-weight: 500; color: #fff; }

/* Sample AI chat (used inside the AI case card) */
.ai-chat { background: #262626; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); font-size: 12px; }
.chat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.chat-name { font-weight: 500; }
.chat-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #8f8f8f; white-space: nowrap; }
.chat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chat-body { display: grid; gap: 8px; padding: 12px 14px; }
.chat-msg { margin: 0; padding: 8px 10px; max-width: 88%; font-weight: 300; line-height: 1.45; }
.chat-user { justify-self: end; background: rgba(255, 255, 255, .1); }
.chat-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chat-tools li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .1); font-size: 11px; color: #a3a3a3; }
.chat-tools code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.chat-tools span { margin-left: auto; text-align: right; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 11px; color: #8f8f8f; }
.chat-undo { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; }

/* Timeline: a real sequence, so years are fine */
/* Career: period on the left, company, role and what the company does on the right, newest first */
.career { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.career li { display: grid; grid-template-columns: minmax(140px, 3fr) minmax(0, 9fr); gap: 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--border); }
.career-years { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.career li:nth-child(-n+2) .career-years { color: var(--accent-muted); }
.career-body strong { display: block; font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; line-height: 1.3; }
.career-role { display: block; margin-top: 4px; font-size: 13px; color: var(--text); }
.career-note { display: block; margin-top: 10px; max-width: 62ch; font-size: 15px; font-weight: 300; color: var(--text-mid); }

/* Draft marker for content still to be supplied */
.todo { background: #fff3c4; color: var(--text); padding: 0 4px; }

/* Contact: dark band so the booking area stands out; the calendar sits on it as a white card */
.contact-band {
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 7vw, 96px);
  color: #fff;
  /* Silver light behind the booking card, then the route from Europe to Singapore (tools/make_contact_bg.py) */
  background:
    radial-gradient(ellipse 640px 480px at calc(50% + 260px) 50%, rgba(185, 191, 200, .2), rgba(185, 191, 200, 0) 70%),
    url("/img/contact-bg.svg") center top / 1440px auto no-repeat,
    var(--text);
  scroll-margin-top: var(--nav-h);
}
/* Fine film grain over the black, so it reads less flat */
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.contact { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.contact-band .label-dim { color: #8f8f8f; }
.contact-band .contact-lead { color: #a3a3a3; }
.contact-band .contact-text .button-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.contact-band .contact-text .button-outline:hover { border-color: #fff; }
.contact-band .contact-text a:focus-visible { outline-color: #fff; }
.contact-band .booking { color: var(--text); border-color: transparent; box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .6); }
.contact-band.is-tour-focus { box-shadow: inset 0 0 0 2px var(--accent); }
.contact h2 { margin: 24px 0 0; font-weight: 300; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; }
.contact-lead { margin: 20px 0 0; max-width: 40ch; font-size: 17px; font-weight: 300; color: var(--text-mid); }
.contact-text .button { margin-top: 28px; }
.contact-text .arrow svg { animation: none; }

/* Contact: text left, booking calendar right (booking.js) */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.booking { min-height: 200px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); }
.booking-status { margin: 0; font-weight: 300; color: var(--text-mid); }
.booking-when { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.booking-when .booking-field { margin-top: 0; }
/* Custom dropdowns (booking.js picker): underline trigger like the text fields, floating panel */
.picker { position: relative; }
.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-bright);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .2s;
}
.picker-trigger.is-empty .picker-value { color: var(--text-dim); }
.picker-trigger:hover, .picker.is-open .picker-trigger { border-bottom-color: var(--text); }
.picker.is-invalid .picker-trigger { border-bottom-color: #a8452f; }
.booking .picker-trigger:focus-visible { outline: none; border-bottom-color: var(--accent-muted); box-shadow: 0 1px 0 var(--accent-muted); }
.picker-chevron { flex: none; width: 9px; height: 9px; margin-top: -4px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg); transition: transform .25s, margin .25s; }
.picker.is-open .picker-chevron { margin-top: 4px; transform: rotate(-135deg); }
.picker-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  max-height: 288px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, .22), 0 2px 6px rgba(26, 26, 26, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.picker.is-open .picker-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.picker-list:focus { outline: none; }
.picker-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.picker-sub { font-size: 13px; font-weight: 300; color: var(--text-dim); }
.picker-list li.is-active { background: #f5f5f4; }
.picker-list li[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent-muted); }
.picker-list li[aria-selected="true"] .picker-main { font-weight: 500; }
/* Times as a compact grid inside the panel */
.picker-grid .picker-list { display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr)); gap: 4px; min-width: 240px; right: 0; left: auto; }
.picker-grid .picker-list li { justify-content: center; padding: 10px 8px; border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.picker-grid .picker-list li.is-active { border-color: var(--text); background: var(--surface); }
.picker-grid .picker-list li[aria-selected="true"] { border-color: var(--accent-muted); background: rgba(111, 118, 129, .08); }
.picker-grid .picker-list li[aria-selected="true"]::before { display: none; }
@media (prefers-reduced-motion: reduce) { .picker-list, .picker-chevron { transition: none; } }
.booking-zone { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); }
.booking-field { display: block; margin-top: 16px; }
.booking-field > span:first-child { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.booking-field input, .booking-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-bright);
  border-radius: 0;
  resize: vertical;
}
.booking-field input:focus, .booking-field textarea:focus { outline: none; border-bottom-color: var(--text); }
.booking-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.booking-error { margin: 12px 0 0; font-size: 13px; color: #a8452f; }
.booking-error:empty { display: none; }
.booking-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.booking-actions .button { cursor: pointer; font-family: inherit; }
.booking-actions .button:disabled { opacity: .6; cursor: default; }
.booking button:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  /* Stacked layout: the route would end behind the card, so only the light and grain stay */
  .contact-band { background: radial-gradient(ellipse 520px 420px at 50% 70%, rgba(185, 191, 200, .18), rgba(185, 191, 200, 0) 70%), var(--text); }
}
@media (max-width: 480px) {
  .booking-when { grid-template-columns: 1fr; gap: 16px; }
}

/* Website assistant (chat.js): launcher bottom right, panel above it */
/* Website assistant: laid out like a support chat (round launcher, rounded window, bubbles) */
.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: #fff;
  background: var(--text);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: transform .2s ease;
}
.assistant-launcher:hover { transform: scale(1.06); }
.assistant-launcher:focus-visible { outline: 2px solid var(--accent-muted); outline-offset: 3px; }
.assistant-launcher > * { grid-area: 1 / 1; transition: opacity .2s ease, transform .25s ease; }
.assistant-launcher .assistant-avatar { width: 60px; height: 60px; color: #fff; background: none; }
.assistant-launcher .assistant-avatar svg { width: 30px; height: 30px; }
.assistant-launcher .assistant-online { right: 4px; bottom: 4px; width: 14px; height: 14px; }
.assistant-launcher-close { opacity: 0; transform: rotate(-90deg); }
.assistant-launcher-close svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assistant-launcher.is-open .assistant-avatar { opacity: 0; transform: rotate(90deg) scale(.6); }
.assistant-launcher.is-open .assistant-launcher-close { opacity: 1; transform: none; }

.assistant-avatar { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--text); background: var(--accent); border-radius: 50%; }
.assistant-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.assistant-avatar circle:not(:first-of-type) { fill: currentColor; stroke: none; }
.assistant-online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3fa66b; border: 2px solid var(--text); }
.assistant-launcher .assistant-online::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3fa66b; animation: assistant-ping 2.4s ease-out infinite; }
@keyframes assistant-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.assistant-teaser {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  max-width: 270px;
  background: var(--surface);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 16px 40px -12px rgba(26, 26, 26, .35), 0 2px 6px rgba(26, 26, 26, .08);
  animation: assistant-pop .35s cubic-bezier(.2, .9, .3, 1.2);
  transform-origin: bottom right;
}
.assistant-teaser[hidden] { display: none; }
.assistant-teaser-text { padding: 14px 4px 14px 16px; font: inherit; font-size: 14px; line-height: 1.45; color: var(--text); text-align: left; background: none; border: 0; border-radius: 16px; cursor: pointer; }
.assistant-teaser-close { flex: none; margin: 6px 6px 0 0; width: 26px; height: 26px; padding: 0; font: inherit; font-size: 16px; line-height: 1; color: var(--text-dim); background: #f2f2f1; border: 0; border-radius: 50%; cursor: pointer; }
.assistant-teaser-close:hover { color: var(--text); }
.assistant-teaser button:focus-visible { outline: 2px solid var(--accent-muted); outline-offset: 1px; }
@keyframes assistant-pop { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }

.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(26, 26, 26, .4), 0 2px 8px rgba(26, 26, 26, .08);
  animation: assistant-in .25s ease;
  transform-origin: bottom right;
}
.assistant-panel[hidden] { display: none; }
@keyframes assistant-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; color: #fff; background: var(--text); }
.assistant-head > div { flex: 1; min-width: 0; }
.assistant-head .assistant-avatar { width: 40px; height: 40px; }
.assistant-head .assistant-avatar svg { width: 24px; height: 24px; }
.assistant-title { margin: 0; font-size: 15px; font-weight: 500; }
.assistant-subtitle { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: #a3a3a3; }
.assistant-subtitle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fa66b; }
.assistant-icon { width: 34px; height: 34px; font: inherit; font-size: 18px; line-height: 1; color: #a3a3a3; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.assistant-icon:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.assistant-icon:focus-visible { outline: 2px solid var(--accent); }

.assistant-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; overflow-y: auto; background: #f7f7f6; }
.assistant-row { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.assistant-row.is-bot { align-self: flex-start; }
.assistant-row.is-user { align-self: flex-end; }
.assistant-row .assistant-avatar { width: 28px; height: 28px; }
.assistant-row .assistant-avatar svg { width: 17px; height: 17px; }
.assistant-row .assistant-online { display: none; }
/* Only the last message in a run of bot messages shows the avatar */
.assistant-row.is-bot:has(+ .assistant-row.is-bot) .assistant-avatar { visibility: hidden; }
.assistant-msg { margin: 0; padding: 10px 14px; font-size: 14px; font-weight: 300; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 18px; }
.assistant-row.is-bot .assistant-msg { color: var(--text); background: var(--surface); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(26, 26, 26, .08); }
.assistant-row.is-user .assistant-msg { color: #fff; background: var(--text); border-bottom-right-radius: 4px; }
.assistant-row.is-error .assistant-msg { color: #a8452f; }
.assistant-row.is-typing .assistant-msg { display: flex; gap: 4px; padding: 14px 16px; }
.assistant-row.is-typing .assistant-msg span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: assistant-dot 1.2s ease-in-out infinite; }
.assistant-row.is-typing .assistant-msg span:nth-child(2) { animation-delay: .15s; }
.assistant-row.is-typing .assistant-msg span:nth-child(3) { animation-delay: .3s; }
@keyframes assistant-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Tool steps: a quiet line between messages showing what the assistant is doing */
.assistant-step { display: flex; align-items: center; gap: 8px; align-self: flex-start; margin: 2px 0 2px 36px; font-size: 12px; color: var(--text-dim); }
.assistant-step-icon { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.assistant-step.is-running .assistant-step-icon { border: 1.5px solid var(--border-bright); border-top-color: var(--text); animation: assistant-spin .8s linear infinite; }
.assistant-step.is-done .assistant-step-icon { background: #3fa66b; }
.assistant-step.is-done .assistant-step-icon::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.assistant-step.is-failed .assistant-step-icon { background: #a8452f; }
.assistant-step.is-failed .assistant-step-icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 600; line-height: 1; color: #fff; }
@keyframes assistant-spin { to { transform: rotate(360deg); } }
.assistant-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 10px 16px; background: #f7f7f6; }
.assistant-chips:empty { display: none; }
.assistant-chip { padding: 8px 14px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border-bright); border-radius: 999px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.assistant-chip:hover { border-color: var(--text); }
.assistant-chip:focus-visible { outline: 2px solid var(--accent-muted); outline-offset: 1px; }

.assistant-form { display: flex; align-items: flex-end; gap: 8px; margin: 12px 14px 8px; padding: 4px 4px 4px 16px; background: #f2f2f1; border: 1px solid transparent; border-radius: 24px; transition: border-color .15s, background-color .15s; }
.assistant-form:focus-within { background: var(--surface); border-color: var(--border-bright); }
.assistant-form[hidden] { display: none; }
.assistant-form textarea { flex: 1; min-height: 24px; max-height: 120px; padding: 8px 0; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; resize: none; }
.assistant-form textarea:focus { outline: none; }
.assistant-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--text); border: 0; border-radius: 50%; cursor: pointer; }
.assistant-send svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.assistant-send:disabled { opacity: .35; cursor: default; }
.assistant-send:focus-visible { outline: 2px solid var(--accent-muted); outline-offset: 2px; }
.assistant-note { margin: 0; padding: 0 18px 12px; font-size: 11px; text-align: center; color: var(--text-dim); }
.assistant-note a { color: inherit; }

.assistant-consent { display: grid; gap: 14px; align-content: start; padding: 18px; font-size: 14px; font-weight: 300; color: var(--text-mid); background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(26, 26, 26, .08); }
.assistant-consent p { margin: 0; }
.assistant-consent .assistant-consent-title { font-size: 16px; font-weight: 400; color: var(--text); }
.assistant-consent a { font-size: 13px; color: var(--text); }
.assistant-consent .button { justify-self: start; margin-top: 6px; border-radius: 999px; cursor: pointer; font-family: inherit; }

.assistant-site { align-items: center; }
.assistant-site input { flex: 1; min-width: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; }
.assistant-site input:focus { outline: none; }
.assistant-scheme { flex: none; }
.assistant-scheme .picker-trigger { gap: 8px; margin: 0; padding: 6px 10px 6px 0; font-size: 14px; color: var(--text-dim); border-bottom: 0; border-right: 1px solid var(--border-bright); }
.assistant-scheme .picker-trigger:hover, .assistant-scheme.is-open .picker-trigger { color: var(--text); }
.assistant-scheme .picker-trigger:focus-visible { outline: 2px solid var(--accent-muted); outline-offset: 2px; }
.assistant-scheme .picker-chevron { width: 6px; height: 6px; margin-top: -3px; }
.assistant-scheme.is-open .picker-chevron { margin-top: 3px; }
/* Opens upwards: the field sits at the bottom of the panel */
.assistant-scheme .picker-list { top: auto; bottom: calc(100% + 12px); left: -16px; border-radius: 12px; transform: translateY(6px); }
.assistant-scheme .picker-list li { border-radius: 8px; }
.assistant-scheme.is-open .picker-list { transform: none; }
.assistant-site-error { margin: 0 20px 6px; font-size: 12px; color: #a8452f; }
.assistant-site-error[hidden] { display: none; }
/* Section the assistant points to, briefly highlighted */
[data-tour] { transition: box-shadow .4s ease; }
.is-tour-focus { box-shadow: 0 0 0 1px var(--accent-muted), 0 0 0 10px rgba(185, 191, 200, .18); }
@media (max-width: 640px) {
  .assistant-launcher { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .assistant-teaser { right: 16px; bottom: 86px; max-width: calc(100vw - 32px); }
  .assistant-launcher.is-open { display: none; }
  /* Full screen on phones, like a messaging app */
  .assistant-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .assistant-online::after, .assistant-panel, .assistant-teaser, .assistant-row.is-typing .assistant-msg span, .assistant-step-icon { animation: none !important; } .assistant-launcher > * { transition: none; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.site-footer nav { display: flex; gap: 24px; }
/* Room for the round assistant launcher, so it doesn't cover the footer links */
.site-footer { padding-bottom: 104px; }
.site-footer a { text-decoration: none; text-transform: uppercase; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 720px; padding-top: 24px; padding-bottom: 96px; }
.legal h1 { font-weight: 300; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 24px 0 40px; }
.legal h2 { font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; margin: 48px 0 12px; }
.legal p, .legal li { font-weight: 300; color: var(--text-mid); }
.legal strong { font-weight: 500; color: var(--text); }
.legal .legal-updated { margin-top: 48px; font-size: 13px; color: var(--text-dim); }

/* Below 1000px the map would run into the headline, so it gets its own zone above the byline */
@media (max-width: 1000px) {
  .band {
    background-image: linear-gradient(180deg, rgba(26,26,26,0) 0, rgba(26,26,26,0) 314px, rgba(26,26,26,.96) 394px), var(--map);
    background-size: cover, 600px auto;
    background-position: center, left -130px top 14px;
  }
  .hero { padding-top: 270px; }
}

@media (max-width: 640px) {
  .nav-right .button { display: none; }
  /* Keep the chat mock-up inside the card instead of running off the right edge */
  .case-media-ai .ai-chat { left: 16px; right: 16px; transform: none; }
}

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .columns { grid-template-columns: 1fr; }
  .columns > div, .columns > div + div { padding: 24px 0; }
  .columns > div + div::before { display: none; }
  .columns > div + div { border-top: 1px solid var(--border); }
  /* Stacked: the text runs as wide as the photo above it */
  .columns p { max-width: none; }
  .career li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}
@media (max-width: 560px) {
  .places ol { grid-auto-flow: row; }
  .places li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .places li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
  .places .time { margin-top: 0; font-size: 28px; }
  .places .where { flex-basis: 100%; margin-top: 2px; }
}
