/* ==========================================================================
   Ìpàdé Nig Ltd — site styles
   Brand palette taken from the Ìpàdé Maps apps (../howfar):
   sunrise gradient #FFA94D → #F26A21 → #D24A17, indigo #3D4EEA, ink #1A1D1F.
   ========================================================================== */

:root {
  /* Brand */
  --sun-glow: #FFA94D;
  --sun: #F26A21;
  --orange: #D24A17;
  --indigo: #3D4EEA;
  --sunrise: linear-gradient(180deg, var(--sun-glow) 0%, var(--sun) 55%, var(--orange) 100%);
  --sunrise-x: linear-gradient(90deg, var(--sun-glow) 0%, var(--sun) 50%, var(--orange) 100%);

  /* Division accents */
  --c-ict: #3D4EEA;
  --c-ict-soft: #EEF0FE;
  --c-estate: #C2410C;
  --c-estate-soft: #FDF0E6;
  --c-style: #B83280;
  --c-style-soft: #FCEEF5;

  /* Neutrals (from app theme) */
  --ink: #1A1D1F;
  --ink-2: #5B6472;
  --muted: #8B93A1;
  --line: #E4E6EB;
  --canvas: #F3F4F7;
  --cream: #FFF8F2;
  --white: #FFFFFF;
  --success: #12B76A;
  --night: #121417;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(26, 29, 31, .06), 0 2px 8px rgba(26, 29, 31, .05);
  --shadow: 0 2px 6px rgba(26, 29, 31, .05), 0 18px 40px -12px rgba(26, 29, 31, .16);
  --shadow-lg: 0 30px 80px -24px rgba(26, 29, 31, .35);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 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: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--sunrise-x);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .65rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sun); color: var(--orange); }
.btn-ghost img { width: 16px; height: auto; }
.btn-accent { background: var(--accent); color: #fff; margin-top: .5rem; }
.btn-accent:hover { box-shadow: 0 12px 26px -12px var(--accent); filter: brightness(1.06); }
.btn-sun { background: var(--sunrise-x); color: #fff; box-shadow: 0 12px 30px -12px rgba(242, 106, 33, .8); }
.btn-sun:hover { filter: brightness(1.05); box-shadow: 0 16px 34px -12px rgba(242, 106, 33, .95); }
.btn-sun[aria-disabled="true"] { cursor: default; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  background: #FFF1E6; color: var(--orange);
}
.badge--light { background: rgba(255,169,77,.15); color: var(--sun-glow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.3); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: .4rem; }
.brand-suffix { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--ink-2); letter-spacing: 0; }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-suffix { color: rgba(255,255,255,.6); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav ul a { font-size: .94rem; font-weight: 500; color: var(--ink-2); position: relative; padding-block: .4rem; transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--sunrise-x); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--ink); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--canvas); }
  .site-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255,169,77,.18), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(61,78,234,.06), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.4rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(242,106,33,.18); }
.hero h1 { margin-bottom: 1.4rem; font-size: clamp(2.6rem, 5.6vw, 4.1rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36rem; margin-bottom: 2rem; }
.lead em { font-style: normal; font-weight: 600; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero-divisions { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-divisions a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.hero-divisions a:hover { border-color: var(--sun); color: var(--ink); background: #fff; }
.hero-divisions .icon { width: 1.05em; height: 1.05em; color: var(--sun); }

.hero-art { position: relative; }
.hero-scene {
  width: 100%; height: auto; aspect-ratio: 520 / 540;
  border-radius: 32px; box-shadow: var(--shadow-lg);
}
.hero-scene .sun { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-scene .route { animation: dash 22s linear infinite; }
@keyframes rise { from { transform: translateY(70px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -280; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem .75rem .75rem; border-radius: 16px;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .92rem; line-height: 1.2; }
.float-card small { display: block; font-size: .76rem; color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; }
.fc-icon .icon { width: 20px; height: 20px; }
.c-ict { background: var(--c-ict); }
.c-estate { background: var(--c-estate); }
.c-style { background: var(--c-style); }
.fc-ict { top: 8%; left: -8%; }
.fc-estate { top: 44%; right: -6%; animation-delay: -2s; }
.fc-style { bottom: 9%; left: -4%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .fc-ict { left: 4%; }
  .fc-estate { right: 4%; }
  .fc-style { left: 4%; }
}
@media (max-width: 520px) {
  .float-card { padding: .55rem .75rem .55rem .55rem; gap: .55rem; }
  .float-card small { display: none; }
  .fc-icon { width: 32px; height: 32px; border-radius: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; }
.strip p { margin: 0; display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.85); }
.strip .icon { color: var(--sun-glow); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); }
.kicker, .division-copy > p.kicker, .contact-info > p.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--orange)); margin-bottom: 1rem;
}

/* Services grid */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.sc-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); margin-bottom: .5rem;
}
.sc-icon .icon { width: 26px; height: 26px; }
.sc-icon--logo { background: #FFF1E6; }
.sc-icon--logo img { width: 26px; height: auto; }
.sc-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--accent); margin-top: .5rem; }
.sc-link .icon { width: 1em; height: 1em; transition: transform .2s; }
.service-card:hover .sc-link .icon { transform: translateX(4px); }
.service-card .badge { position: absolute; top: 1.25rem; right: 1.25rem; }
.service-card--maps { background: linear-gradient(180deg, #FFF8F2, #fff 60%); border-color: #FBDCC4; }

@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Division sections ---------- */
.division { position: relative; }
.division--alt { background: var(--canvas); }
.division-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.division-inner--reverse .division-copy { order: 2; }
.division-copy h2 { margin-bottom: 1.1rem; }
.division-copy > p { color: var(--ink-2); font-size: 1.08rem; }

.checklist { display: grid; gap: .8rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.checklist strong { color: var(--ink); font-weight: 600; }
.checklist .icon {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); stroke-width: 2.6;
}

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2rem; }
.pillar { padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.division:not(.division--alt) .pillar { background: var(--accent-soft); border-color: transparent; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--accent); }
.pillar li { position: relative; padding-left: 1rem; font-size: .93rem; color: var(--ink-2); margin-bottom: .35rem; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.division-art { position: relative; }

/* ICT art */
.code-window { border-radius: var(--radius); background: #14172B; color: #D6DAF5; box-shadow: var(--shadow-lg); overflow: hidden; }
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #1B1F3A; }
.cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3F63; }
.cw-bar i:first-child { background: #FF6B5A; } .cw-bar i:nth-child(2) { background: #FFB547; } .cw-bar i:nth-child(3) { background: #3DD68C; }
.cw-bar span { margin-left: 10px; font-size: .78rem; color: #8A90B8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-window pre { margin: 0; padding: 1.6rem 1.6rem 2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(.78rem, 1.35vw, .95rem); line-height: 1.75; overflow-x: auto; padding-bottom: 3.5rem; }
.tk-k { color: #8C9BFF; } .tk-f { color: #FFA94D; } .tk-s { color: #7EE2B8; } .tk-c { color: #6B7199; font-style: italic; }
.stat-chip {
  position: absolute; right: -4%; bottom: -2rem;
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
}
.stat-chip > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--c-ict-soft); color: var(--c-ict); }
.stat-chip strong { display: block; font-size: .95rem; }
.stat-chip small { display: block; font-size: .8rem; color: var(--muted); }

/* Estate art */
.estate-scene { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }

/* Style art */
.style-art {
  margin-bottom: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem;
  padding: 1.5rem; border-radius: 28px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255,169,77,.35), transparent 70%),
    radial-gradient(70% 70% at 0% 100%, rgba(184,50,128,.22), transparent 70%),
    #FFF6F9;
}
.swatch {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  min-height: 190px; padding: 1.25rem; border-radius: 20px; color: #fff; font-weight: 600;
}
.swatch .icon { width: 28px; height: 28px; }
.s1 { background: linear-gradient(150deg, #D946A0, #8E1F61); }
.s2 { background: var(--sunrise); }
.s3 { background: var(--ink); grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: .75rem; }
.s3 .icon { color: var(--sun-glow); }
.appt-card {
  position: absolute; right: -5%; bottom: -2.5rem;
  width: min(230px, 60%); padding: 1rem 1.1rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
}
.appt-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .25rem; }
.appt-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 .35rem; }
.appt-meta { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); margin: 0 0 .75rem; }
.appt-meta .icon { width: 16px; height: 16px; color: var(--c-style); }
.appt-dots { display: flex; gap: 6px; }
.appt-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.appt-dots i:first-child { margin-left: 0; background: #8E1F61; }
.appt-dots i:nth-child(2) { background: #D946A0; } .appt-dots i:nth-child(3) { background: #F26A21; } .appt-dots i:nth-child(4) { background: #FFA94D; }

@media (max-width: 900px) {
  .division-inner { grid-template-columns: 1fr; }
  .division-inner--reverse .division-copy { order: 0; }
  .division-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .stat-chip { right: 4%; }
  .appt-card { right: 3%; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .style-art { margin-bottom: 0; }
  .appt-card { position: relative; right: auto; bottom: auto; width: auto; grid-column: 1 / -1; }
  .stat-chip { position: relative; right: auto; bottom: auto; margin: -1.25rem 1rem 0; }
}

/* ---------- Maps ---------- */
.maps {
  position: relative; overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--night); color: #fff;
}
.maps-glow {
  position: absolute; inset: auto -10% -40% auto; width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(242,106,33,.35), rgba(210,74,23,.12) 50%, transparent 75%);
  pointer-events: none;
}
.maps::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.maps-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.maps-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.maps-brand img { width: 34px; height: auto; }
.maps-brand > span:not(.badge) { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.maps h2 { margin-bottom: 1.1rem; }
.maps-lead { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 38rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin: 2.25rem 0 2.5rem; }
.feature-grid li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: .9rem; align-content: start; }
.feature-grid .fi {
  grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,169,77,.12); color: var(--sun-glow); border: 1px solid rgba(255,169,77,.2);
}
.feature-grid .fi .icon { width: 21px; height: 21px; }
.feature-grid h3 { font-size: 1.02rem; margin: .15rem 0 .3rem; }
.feature-grid p { font-size: .9rem; color: rgba(255,255,255,.6); margin: 0; }

.maps-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.notify { display: flex; flex: 1 1 340px; gap: .5rem; padding: .35rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.notify input { flex: 1; min-width: 0; padding: .55rem 1rem; border: 0; background: transparent; color: #fff; outline: none; }
.notify input::placeholder { color: rgba(255,255,255,.45); }
.notify .btn { padding: .7rem 1.1rem; font-size: .9rem; }
.notify:focus-within { border-color: var(--sun); }
.maps .fine { color: rgba(255,255,255,.45); margin-top: 1rem; }
.fine { font-size: .82rem; color: var(--muted); margin: .75rem 0 0; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(320px, 100%); aspect-ratio: 300 / 620;
  padding: 12px; border-radius: 48px; background: #050607;
  box-shadow: 0 0 0 1.5px #2A2E35, 0 50px 100px -30px rgba(242,106,33,.45), 0 30px 60px -20px rgba(0,0,0,.7);
  transform: rotate(3deg);
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #050607; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #E9EAF0; color: var(--ink); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-route { stroke-dasharray: 600; stroke-dashoffset: 600; }
.phone-wrap.is-visible .map-route { animation: draw 2.4s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bus-pin { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.app-search {
  position: absolute; top: 58px; left: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px;
  background: #fff; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); font-size: .9rem; color: var(--muted);
}
.app-search .icon { width: 18px; height: 18px; color: var(--ink-2); }
.app-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: .6rem 1.1rem 1.2rem; border-radius: 22px 22px 0 0; background: #fff;
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,.2);
}
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto .8rem; }
.sheet-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.sheet-title { font-weight: 700; font-size: .98rem; margin: 0; }
.sheet-sub { font-size: .76rem; color: var(--muted); margin: .1rem 0 0; }
.live { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--success); background: rgba(18,183,106,.1); padding: .3rem .55rem; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.5); } 100% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } }
.sheet-eta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .9rem 0; }
.sheet-eta div { padding: .55rem .4rem; border-radius: 10px; background: var(--canvas); text-align: center; }
.sheet-eta strong { display: block; font-size: 1rem; line-height: 1.2; }
.sheet-eta small { font-size: .66rem; color: var(--muted); }
.sheet-btn { padding: .75rem; border-radius: 12px; background: var(--indigo); color: #fff; text-align: center; font-weight: 600; font-size: .9rem; }

@media (max-width: 900px) {
  .maps-inner { grid-template-columns: 1fr; }
  .phone { transform: none; width: min(300px, 82%); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .maps-cta > .btn { flex: 1 1 100%; }
  .notify { flex-direction: column; border-radius: 18px; padding: .5rem; }
  .notify input { padding: .7rem .75rem; }
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-name {
  position: sticky; top: calc(var(--header-h) + 2rem);
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 28px; background: var(--white); box-shadow: var(--shadow);
  overflow: hidden;
}
.about-name::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--sunrise); opacity: .9; }
.word { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 1rem; }
.word-def { position: relative; z-index: 1; color: var(--ink-2); font-size: 1.05rem; max-width: 22rem; margin: 0; }
.word-def em { color: var(--orange); font-style: normal; font-weight: 600; }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-copy > p { color: var(--ink-2); font-size: 1.06rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.value { padding: 1.25rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid #F3E4D6; }
.value .icon { width: 26px; height: 26px; color: var(--sun); margin-bottom: .75rem; }
.value h3 { font-size: 1rem; margin-bottom: .35rem; }
.value p { font-size: .88rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-name { position: relative; top: 0; }
}
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--ink-2); font-size: 1.08rem; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list a:hover { color: var(--orange); }
.ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #FFF1E6; color: var(--orange); flex: none; }

.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--canvas);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px rgba(242,106,33,.14); }
.field [aria-invalid="true"] { border-color: #EF4444; }
.form-error { color: #B42318; font-size: .9rem; background: #FEF3F2; padding: .7rem 1rem; border-radius: 10px; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.7); padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: .95rem; }
.footer-col h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a:hover { color: var(--sun-glow); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-base p { margin: 0; }
.site-footer::before { content: ""; display: block; height: 4px; margin-top: -4rem; margin-bottom: 4rem; background: var(--sunrise-x); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .map-route { stroke-dashoffset: 0; }
}

/* Let grid children shrink below their content width (prevents the code window from widening the page on phones). */
.hero-inner > *, .division-inner > *, .maps-inner > *, .about-inner > *, .contact-inner > * { min-width: 0; }
