/* ==========================================================================
   TIDLI Ventures — site styles
   ========================================================================== */

/* Self-hosted variable fonts (latin subset), both under the SIL Open Font License 1.1 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-variable.woff2") format("woff2");
}

:root {
  --bg: #FAF9F6;
  --ink: #101828;
  --ink-2: #182036;
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-soft: #A5B4FC;
  --lavender: #EEECFF;
  --slate: #475467;
  --line: #E4E7EC;
  --white: #FFFFFF;
  --error: #B42318;
  --error-bg: #FEF3F2;

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-dark); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.mission-card :focus-visible { outline-color: var(--indigo-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: .95rem; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link::after {
  content: "";
  width: 18px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(4px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}
.eyebrow-light { color: var(--indigo-soft); }

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  background: var(--lavender);
  color: var(--indigo-dark);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(16, 24, 40, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.brand-sub {
  margin-top: 4px;
  color: var(--indigo-soft);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav ul a {
  display: block;
  padding: 10px 14px;
  color: #D0D5DD;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 6px; justify-items: center; }
.nav-toggle-bars span {
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-grid; place-items: center; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav ul a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }

  /* Without JavaScript the links stay visible in a compact row */
  html:not(.js) .site-header { height: auto; padding-block: 12px; }
  html:not(.js) .header-inner, html:not(.js) .site-nav, html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .site-nav { gap: 8px; }
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: #D0D5DD;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%; top: -30%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(79, 70, 229, .42), transparent);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 136px);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.accent-underline {
  background: linear-gradient(transparent 82%, var(--indigo) 82%, var(--indigo) 94%, transparent 94%);
}
.hero-lede {
  max-width: 34rem;
  margin: 28px 0 36px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: #98A2B3;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
}
.hero-tagline::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero-art { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
}

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

.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lede { margin-top: 20px; font-size: 1.125rem; max-width: 40rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split-top { align-items: start; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
.sticky-col .btn { margin-top: 28px; }

.prose p { max-width: 38rem; }
.prose-lg { font-size: 1.125rem; }
.prose-lg p:first-child { color: var(--ink); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.4; }
.about .prose { margin-top: 28px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}

/* ---------- Introduction ---------- */

.intro-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px);
  background: var(--lavender);
  border-radius: var(--radius);
}
.intro-banner svg { width: 48px; height: 48px; flex: none; }
.intro-banner p {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
}

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

.services { background: var(--white); border-block: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service-card:hover { border-color: var(--indigo); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.service-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: var(--lavender);
  border-radius: 14px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--indigo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-num { color: #98A2B3; font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: .08em; }
.service-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.service-label {
  margin: 20px 0 12px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tick-list { display: grid; gap: 9px; margin-bottom: 20px; font-size: .95rem; }
.tick-list li { position: relative; padding-left: 26px; line-height: 1.5; }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: .38em;
  width: 14px; height: 10px;
  background: var(--indigo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-note {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--white);
  border-left: 3px solid var(--indigo-soft);
  border-radius: 0 8px 8px 0;
  font-size: .875rem;
  line-height: 1.5;
}
.service-card .arrow-link { margin-top: auto; padding-top: 8px; }

@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .service-grid { grid-template-columns: 1fr; } .service-card { padding: 26px; } }

/* ---------- Concepts ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.concept-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.concept-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.concept-preview {
  position: relative;
  display: block;
  padding: 20px 20px 0;
  background: var(--lavender);
  overflow: hidden;
}
.concept-preview img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 30px -8px rgba(16, 24, 40, .28);
  transition: transform .35s;
}
.concept-preview:hover img { transform: translateY(-4px) scale(1.015); }
.concept-preview:focus-visible { outline-offset: -4px; border-radius: var(--radius) var(--radius) 0 0; }
.concept-preview::after {
  content: "Enlarge";
  position: absolute; right: 14px; bottom: 14px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.concept-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.concept-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.concept-body .badge { align-self: flex-start; }
.tags { color: var(--ink); font-size: .875rem; font-weight: 500; }
.concept-body .arrow-link { margin-top: auto; padding-top: 8px; }
.concept-note {
  max-width: 44rem;
  margin: 36px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--indigo);
  font-size: .95rem;
}

@media (max-width: 1080px) { .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .concept-grid { grid-template-columns: 1fr; } }

/* Dialog */
.concept-dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  background: var(--bg);
  color: var(--slate);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(16, 24, 40, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
.concept-dialog::backdrop { background: rgba(16, 24, 40, .72); }
.dialog-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 3vw, 32px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dialog-head .badge { margin-bottom: 6px; }
.dialog-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.dialog-close {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--indigo); }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(18px, 3vw, 32px); }
.dialog-body figure { margin: 0; min-width: 0; }
.dialog-body img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.dialog-body figcaption { margin-top: 10px; font-size: .9rem; }
@media (max-width: 680px) {
  /* keep the designs legible on phones: scroll sideways instead of shrinking */
  .dialog-body .scroll-x { overflow-x: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
  .dialog-body .scroll-x img { width: 680px; max-width: none; }
  .dialog-body .scroll-x:focus-visible { outline-offset: 0; }
}
.dialog-note {
  margin: 0;
  padding: 16px clamp(18px, 3vw, 32px) 24px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

/* ---------- Why ---------- */

.why { background: var(--lavender); }
.why-list { display: grid; }
.why-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(79, 70, 229, .22);
}
.why-list li:last-child { border-bottom: 1px solid rgba(79, 70, 229, .22); }
.why-num { color: var(--indigo); font-family: var(--font-head); font-weight: 800; font-size: 1rem; padding-top: 3px; }
.why-list h3 { margin-bottom: 6px; font-size: 1.25rem; }

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

.process { background: var(--white); border-bottom: 1px solid var(--line); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.process-grid li {
  position: relative;
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.process-grid li:hover { background: var(--bg); }
.step-num {
  display: block;
  margin-bottom: 28px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--indigo);
  font-family: var(--font-head);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
@supports not (-webkit-text-stroke: 1px black) { .step-num { color: var(--indigo); } }
.process-grid h3 { margin-bottom: 8px; font-size: 1.3rem; }
.process-grid li::after {
  content: "";
  position: absolute; top: 36px; right: 32px;
  width: 10px; height: 10px;
  background: var(--lavender);
  border: 2px solid var(--indigo);
  border-radius: 50%;
}

@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } .process-grid li { padding: 28px 24px 32px; } .process-grid li::after { right: 24px; top: 28px; } }

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

.about-side { display: grid; gap: 24px; }
.mission-card {
  position: relative;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.mission-card figcaption {
  margin-bottom: 18px;
  color: var(--indigo-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mission-card blockquote {
  position: relative; z-index: 1;
  margin: 0;
  max-width: 24rem;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}
.mission-geo { position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px; }

.info-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h3 { margin-bottom: 18px; }
.audience-list { margin-bottom: 0; font-size: 1rem; gap: 12px; }
.vision { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.vision-label {
  margin-bottom: 8px;
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.vision p:last-child { color: var(--ink); font-weight: 500; }
.info-card dl, .contact-details dl { margin: 0; }
.info-card dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--slate); font-size: .875rem; }
dd { margin: 0; color: var(--ink); font-weight: 500; }

.values { margin-top: clamp(48px, 7vw, 88px); }
.values-title { margin-bottom: 24px; font-size: 1.1rem; }
.values ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.values li { padding: 22px 20px 0 0; }
.values li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.values strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.values span { font-size: .9rem; line-height: 1.5; display: block; }

@media (max-width: 1000px) {
  .values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .values li, .values li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .values ul { grid-template-columns: 1fr; }
  .info-card dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- FAQ ---------- */

.faq { background: var(--white); border-block: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 52px 22px 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--indigo); }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute; right: 10px; top: 50%;
  width: 16px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform .25s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 52px 24px 0; max-width: 40rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.4rem; }
.form-hint { margin: 6px 0 28px; font-size: .9rem; }
.req { color: var(--error); font-weight: 600; }
.opt { color: var(--slate); font-weight: 400; }

.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .93rem; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid #D0D5DD;
  border-radius: var(--radius-sm);
  font: inherit;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101828' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field input::placeholder { color: #98A2B3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #98A2B3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
.field-help { margin: 8px 0 0; font-size: .85rem; line-height: 1.5; }
.field-error {
  display: flex; gap: 6px;
  margin: 8px 0 0;
  color: var(--error);
  font-size: .875rem;
  font-weight: 500;
}
.field-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--error); color: var(--white); border-radius: 50%; font-size: .72rem; font-weight: 700; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.form-alert-error { background: var(--error-bg); color: #7A271A; border: 1px solid #FDA29B; }
.form-alert-error a { color: #7A271A; font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-privacy { flex: 1 1 240px; margin: 0; font-size: .85rem; line-height: 1.5; }

.form-success { padding: clamp(16px, 4vw, 40px) 0; text-align: center; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 20px; }
.form-success h3 { margin-bottom: 10px; font-size: 1.6rem; }
.form-success p { max-width: 30rem; margin-inline: auto; }
.form-success:focus { outline: none; }

.contact-details {
  padding: clamp(24px, 3vw, 36px);
  background: var(--lavender);
  border-radius: var(--radius);
}
.contact-details h3 { font-size: 1.4rem; margin-bottom: 24px; }
.next-steps { display: grid; gap: 20px; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.next-num {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 800;
}
.next-steps strong { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.next-steps p { font-size: .95rem; line-height: 1.55; }
.next-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(79, 70, 229, .22); }
.next-block h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.next-block .tick-list { margin-bottom: 0; }
.next-block p { overflow-wrap: anywhere; }
.operated { margin: 4px 0 20px; font-size: .95rem; }
.contact-details dl > div { padding: 16px 0; border-top: 1px solid rgba(79, 70, 229, .22); }
.contact-details dt { margin-bottom: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details a { color: var(--indigo-dark); font-weight: 600; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .form-actions .btn { width: 100%; } }

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

.site-footer { background: var(--ink); color: #98A2B3; font-size: .95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand p { max-width: 22rem; margin-top: 20px; }
.footer-heading {
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #D0D5DD; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { color: #D0D5DD; line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Legal page ---------- */

.legal-hero { background: var(--ink); color: #D0D5DD; padding-block: clamp(48px, 7vw, 88px); }
.legal-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
.legal-hero p { margin-top: 16px; }
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: calc(46rem + var(--gutter) * 2); }
.legal h2 { margin: 2.2em 0 .6em; font-size: 1.45rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.legal li { margin-bottom: .4em; }
.legal address { margin-bottom: 1em; color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--indigo-soft); font-weight: 500; }
.back-link:hover { color: var(--white); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease, border-color .25s, box-shadow .25s, background-color .25s;
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .service-card[data-reveal].is-visible:hover,
  .js .concept-card[data-reveal].is-visible:hover { transform: translateY(-3px); }

  .float { animation: float 9s ease-in-out infinite; }
  .float-b { animation-duration: 7s; animation-delay: -2s; }
  .float-c { animation-duration: 8s; animation-delay: -4s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
