/* Studio WebApp — main stylesheet */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --blue: #1dacda;
  --blue-ink: #0a6f91;       /* blue for small text on light backgrounds */
  --ink: #12100b;
  --ink-2: #2a2823;
  --muted: #5f5c55;
  --line: #e3e0d9;
  --paper: #f6f4ef;
  --white: #ffffff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --slant: 0.2575;           /* horizontal offset per unit of height, taken from the logo */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.display { font-size: clamp(40px, 6.6vw, 96px); text-transform: uppercase; letter-spacing: -0.035em; line-height: .92; }
.h2 { font-size: clamp(32px, 4.4vw, 58px); text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; }
.h3 { font-size: clamp(26px, 3vw, 38px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 10px; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.dot { color: var(--blue); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { --bg: var(--blue); --fg: var(--ink); }
.btn--blue { --bg: var(--blue); --fg: var(--ink); }
.btn--blue:hover { --bg: var(--ink); --fg: var(--white); }
.btn--white { --bg: var(--white); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); clip-path: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); }
.btn:disabled, .btn:disabled:hover { --bg: var(--line); --fg: var(--muted); cursor: not-allowed; }
.btn:disabled:hover svg { transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }
/* The EuropeFirst badge sits like a seal at the logo's top-right corner */
.brand-group { display: flex; align-items: flex-start; gap: 2px; flex: 0 0 auto; }
.ef-badge { display: block; flex: 0 0 auto; margin-top: -9px; border-radius: 50%; transition: transform .3s var(--ease); }
.ef-badge img { display: block; width: 24px; height: 24px; }
.ef-badge:hover { transform: scale(1.08); }
/* Tiny variant after a label (About): cancels the label's 12px gap and sits at the top right of the last word */
.ef-badge--tiny { align-self: flex-start; margin: -5px 0 0 -11px; }
.ef-badge--tiny img { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .brand img { height: 32px; }
  .brand-group .ef-badge { margin-top: -7px; }
  .brand-group .ef-badge img { width: 20px; height: 20px; }
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--blue); transition: right .3s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang a, .lang span { padding: 6px 8px; text-decoration: none; }
.lang span { background: var(--ink); color: var(--white); }
.lang a:hover { color: var(--blue-ink); }
.nav .btn { padding: 12px 22px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 1240px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 88px 0 0 0; z-index: 49;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px;
    padding: 32px var(--gutter) 48px; background: var(--white);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav-list { flex-direction: column; gap: 6px; }
  .nav-list a { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; letter-spacing: -0.02em; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .eyebrow, .section--ink .muted { color: #a9a59c; }
.section--ink .lead { color: #d8d5ce; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.hero .display { font-size: clamp(34px, 5.4vw, 78px); margin-bottom: clamp(36px, 5vw, 64px); }
.hero h1 .line { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Hero visual: real websites we built, in browser and phone frames */
.hero-visual { position: relative; height: clamp(300px, 72vw, 440px); }
.hero-shape { position: absolute; inset: 10% 2% 4% 14%; background: var(--paper); clip-path: polygon(25.75% 0, 100% 0, 74.25% 100%, 0 100%); }
.hero-visual .laptop { position: absolute; z-index: 1; }
.hero-visual .hv-main { left: 0; top: 0; width: 80%; }
.hero-visual .hv-second { right: 0; bottom: 4%; width: 54%; z-index: 2; }
.hero-visual .phone { left: 4%; right: auto; bottom: 0; width: 20%; z-index: 3; }
.hero-visual .badge {
  position: absolute; right: 0; top: 4%; z-index: 4;
  background: var(--blue); color: var(--ink); padding: 14px 34px 14px 22px;
  font-weight: 600; font-size: 14px; line-height: 1.3;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.hero-visual .badge b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
@media (max-width: 640px) {
  .hero-visual .badge { top: auto; bottom: -6%; max-width: 64%; padding: 10px 26px 10px 14px; font-size: 12px; }
  .hero-visual .badge b { font-size: 18px; }
  .hero-visual .phone { width: 24%; border-radius: 12px; padding: 4px; }
  .hero-visual .phone img { border-radius: 9px; }
  .hero-visual .laptop-bar { padding: 6px 8px; }
  .hero-visual .laptop-bar span { display: none; }
}

@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 1.45fr; align-items: stretch; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; }
  .hero-visual { height: clamp(400px, 34vw, 500px); }
}

/* ---------- Service strip ---------- */

.service-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.service-strip ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 30px; }
.service-strip li {
  display: inline-flex; align-items: center; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.service-strip li::before {
  content: ""; display: inline-block; width: 14px; height: 5px; margin-right: 10px;
  background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.service-strip a { color: var(--ink); text-decoration: none; }
.service-strip a:hover { color: var(--blue-ink); }

/* ---------- Services ---------- */

.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 1fr; gap: 28px 56px;
  padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line);
}
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--blue-ink); letter-spacing: .06em; }
.service h3 { font-size: clamp(34px, 4.2vw, 56px); text-transform: uppercase; letter-spacing: -0.03em; margin: 10px 0 18px; }
.service .tagline { font-size: 20px; font-weight: 500; line-height: 1.45; margin: 0 0 22px; max-width: 30em; }
.service ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 28px; }
.service li { position: relative; padding-left: 26px; color: var(--ink-2); }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 6px; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
@media (min-width: 640px) { .service ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .service { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .service:nth-child(even) .service-media { order: -1; }
}

/* Mock search result / ad, used for SEO and Google Ads */
.mock { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: var(--paper); }
.mock-card { width: 100%; max-width: 440px; background: var(--white); border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(18,16,11,.25); font-family: Arial, sans-serif; }
.mock-card + .mock-card { margin-top: 14px; opacity: .55; transform: scale(.96); }
.mock-site { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #202124; }
.mock-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.mock-fav i { width: 12px; height: 6px; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.mock-site small { display: block; color: #4d5156; font-size: 12px; }
.mock-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 10px 0 6px; }
.mock-text { color: #4d5156; font-size: 14px; line-height: 1.5; margin: 0; }
.mock-ad { font-weight: 700; font-size: 12px; color: #202124; margin-bottom: 6px; }
.mock-stars { color: #e7a500; font-size: 13px; letter-spacing: 1px; }
@media (max-width: 640px) { .service-media.mock { aspect-ratio: auto; } }

/* Laptop + phone, used for Webdesign */
.devices { position: relative; width: 100%; max-width: 520px; padding: 0 0 18px; }
.laptop { background: var(--ink); border-radius: 10px 10px 4px 4px; padding: 0 0 10px; box-shadow: 0 24px 50px -24px rgba(18,16,11,.45); overflow: hidden; }
.laptop-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2823; }
.laptop-bar i { width: 9px; height: 9px; border-radius: 50%; background: #55524b; }
.laptop-bar span { margin-left: 10px; flex: 1; font-size: 11px; color: #a9a59c; background: #12100b; border-radius: 4px; padding: 3px 10px; }
.laptop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: absolute; right: -4%; bottom: 0; width: 27%; background: var(--ink); border-radius: 18px; padding: 6px; box-shadow: 0 24px 40px -18px rgba(18,16,11,.5); }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 13px; }

/* Brand sheet, used for Design */
.brand-sheet { width: 100%; max-width: 460px; background: var(--white); padding: 22px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(18,16,11,.25); }
.brand-sheet-logo { display: grid; place-items: center; padding: 26px 16px; background: var(--paper); }
.brand-sheet-logo img { width: 78%; height: auto; }
.brand-sheet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.brand-sheet-row--type { grid-template-columns: 1fr 1fr; }
.swatch { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 8px; border: 1px solid var(--line); }
.swatch span { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.type-card { border: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: baseline; gap: 10px; }
.type-card b { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.type-card--body b { font-family: var(--font-body); font-weight: 500; }
.type-card span { font-size: 12px; color: var(--muted); }
.brand-sheet-shapes { display: flex; gap: 8px; }
.brand-sheet-shapes i { height: 14px; flex: 1; background: var(--blue); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.brand-sheet-shapes i:nth-child(2) { background: var(--ink); }
.brand-sheet-shapes i:nth-child(3) { background: var(--line); }

/* Dashboard, used for Portals */
.dash { width: 100%; max-width: 480px; display: grid; grid-template-columns: 44px 1fr; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(18,16,11,.25); font-size: 12px; }
.dash-side { background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }
.dash-side i { width: 18px; height: 18px; border-radius: 5px; background: #3a3832; }
.dash-side i.on { background: var(--blue); }
.dash-main { padding: 16px; display: grid; gap: 12px; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; }
.dash-top b { font-family: var(--font-display); font-size: 17px; }
.dash-top span { color: var(--muted); font-size: 11px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { background: var(--paper); padding: 8px 10px; }
.dash-kpis small { display: block; color: var(--muted); font-size: 10px; }
.dash-kpis b { font-family: var(--font-display); font-size: 18px; }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.dash-chart i { flex: 1; background: #cde9f3; border-radius: 2px 2px 0 0; }
.dash-chart i.hi { background: var(--blue); }
.dash-table { display: grid; }
.dash-row { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dash-row span:nth-child(2) { color: var(--muted); }
.dash-row em { font-style: normal; font-size: 10px; font-weight: 600; text-align: center; padding: 2px 6px; border-radius: 999px; }
.dash-row em.ok { background: #dff3ea; color: #1d6b48; }
.dash-row em.open { background: #fdf1d8; color: #8a5a00; }
.dash-export { display: flex; gap: 6px; }
.dash-export span { font-size: 10px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; }

/* AI assistant answer, used for GEO */
.chat { width: 100%; max-width: 440px; display: grid; gap: 12px; font-size: 14px; line-height: 1.5; }
.chat-q { justify-self: end; max-width: 82%; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.chat-a { background: var(--white); padding: 16px 18px; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(18,16,11,.25); }
.chat-ai { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.chat-ai i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--blue), #8fd6ee, var(--ink), var(--blue)); }
.chat-a p { margin: 0 0 12px; color: var(--ink-2); }
.chat-a p b { background: linear-gradient(transparent 55%, rgba(29,172,218,.35) 55%); }
.chat-src { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; }
.chat-src span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: var(--ink); font-size: 10px; font-weight: 700; }

.mock-rank { display: inline-block; margin-top: 12px; padding: 4px 10px; background: var(--blue); color: var(--ink); font: 600 12px var(--font-body); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* Extra services */
.extras { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.extra { background: var(--white); padding: 30px 28px; }
.extra h4 { font-size: 22px; margin: 0 0 10px; }
.extra p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 640px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extras-title { font-size: 22px; margin: 0; padding: 30px 28px; background: var(--ink); color: var(--white); display: flex; align-items: flex-end; }

/* ---------- AI agents ---------- */

.section--ai { position: relative; overflow: hidden; }
.section--ai::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: -12%; width: 46%;
  background: var(--blue); opacity: .07; clip-path: polygon(25.75% 0, 100% 0, 74.25% 100%, 0 100%);
}
.section--ai .wrap { position: relative; }
.ai-grid { display: grid; grid-template-columns: 1fr; gap: 40px 64px; align-items: center; }
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1fr 1.25fr; } }

.agent { background: var(--white); color: var(--ink); max-width: 440px; width: 100%; justify-self: center; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); font-size: 14px; }
.agent-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.agent-head b { display: block; font-family: var(--font-display); font-size: 17px; }
.agent-head small { color: var(--muted); font-size: 12px; }
.agent-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.agent-icon i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--blue), #8fd6ee, var(--white), var(--blue)); }
.agent-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.agent-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.agent-steps i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.agent-steps .done i { background: var(--blue); }
.agent-steps .done i::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.agent-steps .wait { font-weight: 600; color: var(--ink); }
.agent-steps .wait i { border: 2px solid var(--blue); border-right-color: transparent; }
.agent-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.agent-actions span { font-size: 13px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line); }
.agent-actions .on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.ai-uses { display: grid; grid-template-columns: 1fr; gap: 1px; background: #2f2d28; border: 1px solid #2f2d28; }
.ai-use { background: var(--ink); padding: 26px 24px; }
.ai-use h3 { font-size: 21px; margin: 0 0 8px; color: var(--white); }
.ai-use h3::before { content: ""; display: block; width: 22px; height: 8px; margin-bottom: 14px; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.ai-use p { margin: 0; color: #c9c5bc; font-size: 15px; }
@media (min-width: 640px) { .ai-uses { grid-template-columns: 1fr 1fr; } }

.ai-foot { display: grid; gap: 24px; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid #2f2d28; }
.ai-foot p { margin: 0; color: #d8d5ce; max-width: 46em; }
@media (min-width: 960px) { .ai-foot { grid-template-columns: 1fr auto; } }

/* ---------- Featured clients ---------- */

.feature { display: grid; grid-template-columns: 1fr; gap: 32px 64px; align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 140px); }
.feature-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media:hover img { transform: scale(1.04); }
.feature-label { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.feature h3 { font-size: clamp(30px, 3.6vw, 48px); text-transform: uppercase; letter-spacing: -0.03em; margin: 0 0 20px; }
.feature p { margin: 0 0 22px; color: var(--ink-2); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.tags li { font-size: 13px; font-weight: 500; padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }
.sub-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.sub-brand { display: block; text-decoration: none; }
.sub-brand .thumb { aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.sub-brand img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sub-brand:hover img { transform: scale(1.06); }
.sub-brand span { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1.25fr 1fr; }
  .feature--flip .feature-media { order: 2; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Process ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; counter-reset: step; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 8px 20px; align-content: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.step h3 { font-size: 26px; margin: 4px 0 8px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 1020px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 0; }
  .step { grid-template-columns: 1fr; padding: 34px 26px 0 0; border-bottom: 0; border-top: 2px solid var(--ink); position: relative; }
  .step::before { content: ""; position: absolute; top: -6px; left: 0; width: 26px; height: 10px; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
  .step-num { font-size: 64px; margin-bottom: 18px; }
}
.promise { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.promise p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr auto; } }

/* ---------- Projects ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  border: 1px solid var(--ink); background: transparent; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s;
}
.filter:hover { background: var(--paper); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter .count { opacity: .55; margin-left: 4px; font-size: 13px; }

.project-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-grid--home .project:nth-child(1) { grid-column: 1 / -1; }
@media (min-width: 1020px) {
  .project-grid--home .project:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .project-grid--home .project:nth-child(1) .project-media { aspect-ratio: auto; height: calc(100% - 118px); min-height: 420px; }
}
.project { display: block; text-decoration: none; }
.project[hidden] { display: none; }
.project-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-media::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%); transition: clip-path .5s var(--ease); mix-blend-mode: multiply; opacity: .55;
}
.project:hover .project-media img { transform: scale(1.05); }
.project:hover .project-media::after { clip-path: polygon(0 70%, 30% 100%, 0 100%, 0 100%); }
.project-visit {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; padding: 10px 16px 10px 22px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.project:hover .project-visit, .project:focus-visible .project-visit { transform: none; }
.project-body { padding-top: 18px; }
.project-sector { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.project h3 { font-size: 26px; margin: 0 0 8px; }
.project p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.project .tags { margin: 0; }
.project .tags li { font-size: 12px; padding: 3px 10px; border-color: var(--line); opacity: 1; color: var(--muted); }

/* ---------- Clients ---------- */

.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.clients li { background: var(--white); display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 10px; }
.clients img { width: 100%; max-width: 220px; filter: grayscale(1); mix-blend-mode: multiply; opacity: .75; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1020px) { .clients { grid-template-columns: repeat(5, 1fr); } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: start; }
.about blockquote { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; }
.about blockquote span { color: var(--blue); }
.about-text p { margin: 0 0 18px; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */

.cta { position: relative; overflow: hidden; background: var(--blue); color: var(--ink); padding: clamp(72px, 9vw, 130px) 0; }
.cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: -10%; width: 55%;
  background: var(--ink); clip-path: polygon(25.75% 0, 100% 0, 100% 100%, 0 100%); opacity: .08;
}
.cta-inner { position: relative; display: grid; gap: 32px; align-items: end; }
.cta h2 { max-width: 12em; }
.cta p { margin: 0; font-size: 19px; max-width: 32em; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Page hero (subpages) ---------- */

.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 72px); }
.page-hero .display { font-size: clamp(36px, 5.4vw, 78px); margin-bottom: 28px; }

/* ---------- Quote form ---------- */

.form-layout { display: grid; grid-template-columns: 1fr; gap: 48px 72px; align-items: start; }
@media (min-width: 1020px) { .form-layout { grid-template-columns: 1.5fr 1fr; } }
.form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field .req { color: var(--blue-ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--white); border: 1px solid #cfcbc2; border-radius: var(--radius);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 172, 218, .35); }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 10px 16px; border: 1px solid #cfcbc2; border-radius: 999px; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.alert { padding: 16px 20px; border-left: 4px solid #c0392b; background: #fbeceb; margin-bottom: 8px; }
.aside-card { background: var(--paper); padding: clamp(28px, 3vw, 40px); }
.aside-card h2 { font-size: 28px; margin: 0 0 18px; }
.aside-card ol { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: a; }
.aside-card ol li { counter-increment: a; position: relative; padding: 0 0 16px 44px; }
.aside-card ol li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800; color: var(--blue-ink); }
.aside-card .contact-lines { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 6px; }
.aside-card .contact-lines a { font-weight: 600; text-decoration: none; }
.aside-card .contact-lines a:hover { color: var(--blue-ink); }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--blue-ink); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d8d5ce; padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid #2f2d28; }
.footer-claim { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--white); margin: 0; }
.footer-claim span { color: var(--blue); }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8d897f; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 14px; color: #8d897f; }
.footer-bottom img { height: 24px; width: auto; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
