/* ============================================================
   XL Ovation — rebuild
   White bg · navy (#1C3A5F) + orange (#F2863E) · Geist · glass motif
   ============================================================ */

:root {
  /* brand */
  --navy:        #1C3A5F;
  --navy-700:    #142A46;
  --navy-900:    #0B1A2E;
  --orange:      #F2863E;
  --orange-600:  #D96F22;

  /* neutrals */
  --ink:         #0E1623;
  --ink-2:       #2A3344;
  --muted:       #5C6778;
  --line:        #E4E7EC;
  --line-strong: #C8CED6;
  --paper:       #FFFFFF;
  --paper-alt:   #F6F7F9;
  --tint:        #F1F5FA;   /* very faint navy tint */

  /* glass — heavier */
  --glass-bg:     rgba(255,255,255,0.42);
  --glass-bg-nav: rgba(255,255,255,0.55);
  --glass-dark:   rgba(28,58,95,0.32);
  --glass-border: rgba(255,255,255,0.7);
  --glass-blur:   28px;
  --glass-sat:    180%;

  /* type */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14,22,35,0.06), 0 1px 1px rgba(14,22,35,0.04);
  --shadow:    0 10px 30px -12px rgba(14,22,35,0.18), 0 2px 6px rgba(14,22,35,0.06);
  --shadow-lg: 0 30px 80px -30px rgba(14,22,35,0.28), 0 8px 20px rgba(14,22,35,0.08);

  --container: 1240px;
  --gutter: 32px;
}

/* density */
html[data-density="compact"] { --section-y: 72px; }
html[data-density="regular"] { --section-y: 112px; }
html[data-density="spacious"]{ --section-y: 160px; }

/* color balance — swap primary */
html[data-balance="navy"]   { --primary: var(--navy);   --primary-hover: var(--navy-700); }
html[data-balance="orange"] { --primary: var(--orange); --primary-hover: var(--orange-600); }
:root { --primary: var(--orange); --primary-hover: var(--orange-600); }

/* ============================================================ base */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* subtle page atmosphere — thin gradient blobs behind content, keep bg feel white */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(242,134,62,0.18), transparent 60%),
    radial-gradient(1000px 700px at -5% 30%, rgba(28,58,95,0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(28,58,95,0.10), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, rgba(242,134,62,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
#root { position: relative; z-index: 1; }

h1,h2,h3,h4 { font-family: var(--font-sans); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 88px); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: clamp(20px, 1.6vw, 26px); }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: #fff; }

/* ============================================================ layout */

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

section { padding: var(--section-y) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--navy); opacity: 0.5;
}

.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.small { font-size: 13px; color: var(--muted); }

/* ============================================================ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); }

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.arrow { display: inline-flex; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================ glass primitives */

/* also boost baseline .glass opacity-balance so it reads as real glass over white */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.6);
}

.glass-strong {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.7);
}

.glass-dark {
  background: rgba(14,22,35,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  color: #fff;
}

/* ============================================================ nav */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 10px 20px;
  background: var(--glass-bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  box-shadow: 0 6px 24px -10px rgba(14,22,35,0.15), 0 1px 2px rgba(14,22,35,0.04);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: rgba(28,58,95,0.06); color: var(--navy); }
.nav__cta { margin-left: 8px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ============================================================ hero */

.hero {
  padding-top: 140px;
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 28px;
}
.hero__tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 3px rgba(242,134,62,0.2);
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal !important; color: var(--orange); font-weight: 600; font-family: inherit; }
.founder__quote em, p em { font-style: normal; font-family: inherit; }
.hero h1 u  { text-decoration: none; color: var(--navy); }

.hero__lead { margin-bottom: 36px; max-width: 54ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding-top: 28px; border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero__meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero__meta .v { font-size: 15px; color: var(--ink); font-weight: 500; }

/* hero visual — modern split composition: CAD sketch + finished product */
.hero__visual { position: relative; aspect-ratio: 4/5; }

.hero__visual--split {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.hero__split {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0b1a2e;
}
.hero__split img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__split--top { background: #fff; border: 1px solid var(--line); }
.hero__split--top img { object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.hero__split--bot { background: #F4F5F7; }
.hero__split--bot img { object-fit: contain; padding: 20px; }

.hero__split-tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px 6px 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(14,22,35,0.08);
}
.hero__split-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.hero__split-tag .dot--navy { background: var(--navy); }
.hero__split-tag .dot--orange { background: var(--orange); }

.hero__float {
  position: absolute;
  padding: 18px 20px;
  font-size: 13px;
  z-index: 3;
}
.hero__float--side {
  top: 50%; left: -40px;
  transform: translate(-10%, -50%);
  max-width: 220px;
}
@media (max-width: 960px) { .hero__float--side { left: 8px; transform: translateY(-50%); } }

.hero__float .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.hero__float .v { font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.3; }

.hero__badge {
  position: absolute;
  bottom: -18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--navy); color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.hero__badge .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ============================================================ process (glass card grid over subtle tinted bg) */

.process { position: relative; }
.process::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--tint) 40%, var(--tint) 60%, transparent 100%);
  z-index: 0;
}
.process .container { position: relative; z-index: 1; }

.process__head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .process__head { grid-template-columns: 1fr; } }
.process__head h2 em { font-style: normal; color: var(--orange); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process__grid { grid-template-columns: 1fr; } }

.pcard {
  padding: 28px 26px 30px;
  min-height: 260px;
  display: flex; flex-direction: column;
  position: relative;
}
.pcard__n {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; color: var(--orange);
  font-weight: 500;
  margin-bottom: 24px;
}
.pcard h3 { margin-bottom: 12px; font-size: 22px; }
.pcard p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.pcard__foot {
  margin-top: auto; padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase;
  border-top: 1px solid rgba(14,22,35,0.08);
}

/* ============================================================ services */

.services__head { max-width: 720px; margin-bottom: 56px; }
.services__head h2 { margin-top: 18px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.scard {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
  min-height: 240px;
}
.scard:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

.scard__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--tint); color: var(--navy);
  margin-bottom: 20px;
}
.scard h3 { font-size: 19px; margin-bottom: 8px; }
.scard p  { color: var(--ink-2); font-size: 14.5px; }
.scard ul { list-style: none; padding: 0; margin: 14px 0 0; }
.scard li { font-size: 13px; color: var(--muted); padding: 4px 0; display: flex; gap: 8px; }
.scard li::before { content: '·'; color: var(--orange); font-weight: 700; }

/* ============================================================ case study (2XSR) */

.casehero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 560px;
  background: #0b1a2e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  isolation: isolate;
}
@media (max-width: 860px) { .casehero { grid-template-columns: 1fr; min-height: 0; } }

.casehero__imgwrap { position: relative; min-height: 420px; }
.casehero__imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.casehero__content {
  position: relative;
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #142a46 0%, #0b1a2e 100%);
}
.casehero__content::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -40px; width: 80px;
  background: linear-gradient(90deg, transparent, #142a46);
  pointer-events: none;
}
@media (max-width: 860px) { .casehero__content { padding: 40px 28px; } .casehero__content::before { display: none; } }

.casehero__brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.casehero__brand img { height: 28px; filter: brightness(0) invert(1); opacity: 0.85; }
.casehero__brand span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.casehero h2 { color: #fff; margin-bottom: 20px; max-width: 18ch; }
.casehero p { color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 32px; font-size: 16px; }

.case__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
}
.case__stat .n { font-size: 28px; font-weight: 600; color: #fff; font-feature-settings: 'tnum'; letter-spacing: -0.02em; }
.case__stat .l { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-family: var(--font-mono); margin-top: 4px; }

.case__cta { align-self: flex-start; }

/* ============================================================ founder + book */

.founder {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) { .founder { grid-template-columns: 1fr; gap: 48px; } }

.founder h2 { margin-top: 18px; margin-bottom: 20px; }
.founder__quote {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  font-weight: 500;
}
.founder__quote::before { content: '"'; color: var(--orange); font-weight: 600; margin-right: 4px; }
.founder__quote::after { content: '"'; color: var(--orange); font-weight: 600; }

.founder__byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.founder__byline .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.founder__byline .nm { font-weight: 500; }
.founder__byline .role { font-size: 13px; color: var(--muted); }

.founder__media { position: relative; }
.founder__media .book-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(closest-side, rgba(242,134,62,0.25), transparent 70%);
  z-index: 0;
}
.founder__media img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 50px rgba(14,22,35,0.25));
}
.founder__media .book-chip {
  position: absolute; z-index: 2; bottom: 10%; left: -10px;
  padding: 14px 18px;
  font-size: 13px;
  max-width: 240px;
}
.founder__media .book-chip .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.founder__media .book-chip .v { font-weight: 600; font-size: 15px; }

/* ============================================================ faq */

.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
@media (max-width: 960px) { .faq__grid { grid-template-columns: 1fr; gap: 40px; } }

.faq__list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.faq__item { background: #fff; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 24px;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 16.5px; font-weight: 500; color: var(--ink); text-align: left;
}
.faq__q:hover { background: var(--tint); }
.faq__plus { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); flex-shrink: 0; transition: transform .2s ease, background .2s ease; font-family: var(--font-mono); font-size: 14px; line-height: 1; }
.faq__item[data-open="true"] .faq__plus { background: var(--navy); color: #fff; border-color: var(--navy); transform: rotate(45deg); }
.faq__a {
  overflow: hidden; max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq__item[data-open="true"] .faq__a { max-height: 320px; padding: 0 24px 24px; }

/* ============================================================ contact */

.contact__wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
}
@media (max-width: 720px) { .contact__wrap { padding: 44px 28px; } }

.contact__wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(242,134,62,0.25), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(242,134,62,0.1), transparent 60%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 36px; } }

.contact__grid h2 { color: #fff; margin-bottom: 20px; }
.contact__grid p { color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 42ch; }

.contact__meta { display: grid; gap: 16px; margin-top: 32px; }
.contact__meta .row { display: flex; gap: 14px; align-items: center; }
.contact__meta .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); width: 70px; }
.contact__meta .v { color: #fff; font-size: 14.5px; }

.form {
  padding: 28px;
}
.form .row { margin-bottom: 16px; }
.form label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.4); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--orange); background: rgba(255,255,255,0.12); }
.form textarea { resize: vertical; min-height: 100px; }
.form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================ instagram strip */

.ig { position: relative; }
.ig__head {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 32px; align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .ig__head { grid-template-columns: 1fr; } }
.ig__head h2 { max-width: 22ch; }
.ig__follow { white-space: nowrap; }

.ig__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .ig__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .ig__grid { grid-template-columns: repeat(2, 1fr); } }

.ig__card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  position: relative;
}
.ig__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); }
.ig__img { aspect-ratio: 4/5; overflow: hidden; background: #F1F5FA; }
.ig__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ig__card:hover .ig__img img { transform: scale(1.03); }

.ig__meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.ig__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.ig__arrow { color: var(--orange); }

.footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 32px; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-2); font-size: 14px; max-width: 32ch; }

.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--navy); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}

.footer__big {
  font-size: clamp(64px, 11vw, 180px);
  letter-spacing: -0.05em;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(28,58,95,0.12);
  line-height: 1;
  margin: 40px 0 32px;
  text-align: center;
  user-select: none;
}

/* ============================================================ tweaks panel */

.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 280px;
  padding: 18px;
  z-index: 1000;
  font-size: 13px;
  display: none;
}
.tweaks[data-active="true"] { display: block; }
.tweaks h5 { margin: 0 0 12px; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tweaks .group { margin-bottom: 14px; }
.tweaks .group:last-child { margin-bottom: 0; }
.tweaks .label { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.tweaks .pills { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks .pills button {
  flex: 1; min-width: 0;
  padding: 7px 10px;
  font-size: 12px; font-family: inherit;
  background: rgba(28,58,95,0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.tweaks .pills button[aria-pressed="true"] { background: var(--navy); color: #fff; }
