/* ============================================================
   AIStudio.London — public site
   Faithful rebuild of the live single-page site, off Wix.
   Clean white/grey brochure aesthetic. Jost (geometric sans,
   matches the original Futura-style headline; AISL brand font).
   Sharp corners. Mobile-first.
============================================================ */

:root {
  --ink:        #111111;   /* headlines, primary text */
  --ink-soft:   #4a4a4a;   /* body */
  --ink-mute:   #8a8a8a;   /* meta */
  --paper:      #ffffff;   /* page */
  --paper-alt:  #f5f4f2;   /* alternating section */
  --hairline:   rgba(0,0,0,0.10);
  --accent:     #111111;   /* CTA fill — keep mono, faithful to live site */
  --container:  1120px;
  --pad-x:      24px;
  --font: "Jost", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.7; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.visually-hidden, .skip-link {
  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:focus {
  position: static; width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip: auto; background: var(--ink); color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #fff; color: var(--ink); opacity: 1; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 28px; }
.hero-title {
  font-size: clamp(58px, 12.5vw, 150px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.0;
}
.hero-sub { font-size: clamp(18px, 2.2vw, 24px); color: var(--ink-soft); margin: 0; max-width: 30ch; }
.hero-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px;
}
.hero-images img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }

/* ---------- About ---------- */
.about { background: var(--paper-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.about-copy p { font-size: 17px; margin: 0 0 18px; }

/* ---------- Core focus ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 8px; }
.focus-icon { color: var(--ink); display: inline-flex; margin-bottom: 18px; }
.focus-item h3 { font-size: 19px; margin-bottom: 10px; }
.focus-item p { margin: 0; font-size: 15.5px; }

/* ---------- Full-width band ---------- */
.band { line-height: 0; }
.band img { width: 100%; height: clamp(220px, 30vw, 380px); object-fit: cover; }

/* ---------- Development approach ---------- */
.approach { background: var(--paper-alt); }
.approach .lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-no { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-bottom: 10px; }
.step h3 { font-size: 18px; }
.approach-foot { margin: 40px 0 0; font-size: 16px; max-width: 70ch; }

/* ---------- Start with clarity ---------- */
.clarity-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.clarity-copy p { font-size: 17px; margin: 0 0 26px; max-width: 46ch; }
.clarity-form { display: flex; gap: 12px; flex-wrap: wrap; }
.clarity-form input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--font); font-size: 15px;
  padding: 13px 16px; border: 1px solid var(--hairline); background: #fff; color: var(--ink);
}
.clarity-form input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form-note { margin: 14px 0 0; color: #1A7A40; font-size: 15px; }
.clarity-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; color: var(--ink); }
.footer-meta { color: var(--ink-mute); font-size: 14px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 14px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .clarity-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media { order: 2; }
  .focus-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a:first-child { display: none; }
  .hero-images { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-bottom { align-items: flex-start; }
}

/* ---------- Legal footer (expanded) ---------- */
.footer-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-about { max-width: 520px; }
.footer-reg { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.55; }
.footer-nav { flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.footer-link-btn:hover { opacity: 0.7; }
.footer-meta { display: block; margin-top: 26px; color: var(--ink-mute); font-size: 13px; }
@media (max-width: 560px) { .footer-cols { flex-direction: column; gap: 24px; } }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 780px; margin: 0 auto;
  background: var(--ink); color: #fff; padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 10px 44px rgba(0,0,0,0.28);
}
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: #ececec; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { font-size: 13px; padding: 10px 18px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 480px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* ---------- Form states ---------- */
.clarity-form.is-loading button { opacity: 0.55; pointer-events: none; }
.form-error { margin: 14px 0 0; color: #991818; font-size: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }
