/* ==========================================================================
   Multibasik International Limited — Zylink design system
   - 8pt spacing grid (8 / 16 / 24 / 32 / 48 / 64 / 96)
   - SF Pro Display/Text where licensed, Inter as web fallback
   - Spring-based motion (no linear/ease-in-out defaults)
   - Glassmorphism on nav + cards
   - Single controlled palette: ink + neutral + one brand accent (deep teal)
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Palette — restrained, single accent */
  --ink-900: #0a1f2c;   /* deep ink — body text on light, primary on dark */
  --ink-700: #1b3a4b;
  --ink-500: #345566;
  --ink-300: #6b8593;
  --ink-100: #c8d4dc;
  --paper-50: #ffffff;
  --paper-100: #f6f8fa;
  --paper-200: #eef2f5;
  --paper-300: #e1e8ed;

  --brand-900: #0e2d3a;  /* deep teal — used as primary */
  --brand-700: #1c5168;
  --brand-500: #2d7d99;  /* the single accent color */
  --brand-300: #79b3c7;
  --brand-100: #d4eaf2;

  --line: rgba(10, 31, 44, 0.08);
  --line-strong: rgba(10, 31, 44, 0.18);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-blur: 18px;
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(10, 31, 44, 0.08);

  /* 8pt grid */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* Typography */
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", monospace;

  /* Type scale — 1.250 modular */
  --t-xs: 0.75rem;     /* 12 */
  --t-sm: 0.875rem;    /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-md: 1.125rem;    /* 18 */
  --t-lg: 1.25rem;     /* 20 */
  --t-xl: 1.5rem;      /* 24 */
  --t-2xl: 2rem;       /* 32 */
  --t-3xl: 2.5rem;     /* 40 */
  --t-4xl: 3.25rem;    /* 52 */
  --t-5xl: 4rem;       /* 64 */

  /* Line heights */
  --lh-tight: 1.12;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spring motion (no linear/ease-in-out) */
  --spring-1: cubic-bezier(0.22, 1, 0.36, 1);     /* standard out-spring */
  --spring-2: cubic-bezier(0.34, 1.56, 0.64, 1); /* overshoot */
  --spring-3: cubic-bezier(0.16, 1, 0.3, 1);     /* settle */
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  --nav-h: 72px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-normal);
  color: var(--ink-900);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--dur-fast) var(--spring-1); }
a:hover { color: var(--brand-500); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
h1 { font-size: var(--t-4xl); line-height: 1.05; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s-2); }
strong { font-weight: 600; }
small { font-size: var(--t-sm); }
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.lede {
  font-size: var(--t-lg);
  line-height: var(--lh-relaxed);
  color: var(--ink-700);
  max-width: 65ch;
}

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-2);
  padding-right: var(--s-2);
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-7) 0; }
.section--tight { padding: var(--s-6) 0; }
.section--loose { padding: var(--s-8) 0; }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--dur-base) var(--spring-1),
              box-shadow var(--dur-base) var(--spring-1),
              border-color var(--dur-base) var(--spring-1);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--glass-shadow);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 100%;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav__brand-mark {
  height: auto;
  width: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__brand-mark img {
  display: block;
  height: 64px;
  width: auto;
  max-width: none;
}
.nav__brand-name { font-size: var(--t-md); line-height: 1.1; color: var(--ink-900); }
.nav__brand-sub  { font-size: 11px; color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  height: 100%;
}
.nav__links li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav__links a {
  color: var(--ink-700);
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--spring-1),
              background-color var(--dur-fast) var(--spring-1);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--brand-700);
  background: var(--brand-100);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--spring-2),
              background-color var(--dur-base) var(--spring-1);
}
.nav__cta:hover { color: #fff; transform: translateY(-1px); background: var(--brand-700); }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-900);
  transition: transform var(--dur-base) var(--spring-2), opacity var(--dur-fast) var(--spring-1);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — switch below 1100px so 8 nav links + CTA always fit on desktop */
@media (max-width: 1100px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    flex-direction: column;
    gap: 0;
    padding: var(--s-2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--spring-2), opacity var(--dur-base) var(--spring-1);
    height: auto;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links li { width: 100%; height: auto; }
  .nav__links a {
    width: 100%;
    padding: var(--s-2);
    border-radius: var(--r-sm);
    font-size: var(--t-base);
    line-height: var(--lh-snug);
  }
  .nav__cta { display: none; }
}

/* Tablet / medium desktop — when the navbar items start to feel tight, condense spacing */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav__inner { padding: 0 var(--s-2); gap: var(--s-2); }
  .nav__brand-mark img { height: 56px; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 8px 10px; font-size: var(--t-xs); }
  .nav__cta { padding: 8px 14px; font-size: var(--t-xs); }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--spring-2),
              background-color var(--dur-base) var(--spring-1),
              border-color var(--dur-base) var(--spring-1),
              color var(--dur-base) var(--spring-1);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--ink-900);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--secondary {
  background: var(--paper-50);
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--accent {
  background: var(--brand-500);
  color: #fff;
}
.btn--accent:hover { background: var(--brand-700); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn--ghost:hover { background: var(--paper-200); color: var(--ink-900); }
.btn--lg { padding: 14px 28px; font-size: var(--t-md); }
.btn--block { width: 100%; }

/* ---- Card / glass -------------------------------------------------------- */
.card {
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  transition: transform var(--dur-base) var(--spring-2),
              box-shadow var(--dur-base) var(--spring-1),
              border-color var(--dur-base) var(--spring-1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 31, 44, 0.10);
  border-color: var(--brand-300);
}
.card--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.card__media {
  aspect-ratio: 16 / 10;
  background: var(--paper-200);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--s-3);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--spring-3); }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: var(--t-xl); margin-bottom: var(--s-1); }
.card__text  { color: var(--ink-500); font-size: var(--t-sm); line-height: var(--lh-relaxed); }
.card__link  { margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand-700); }
.card__link::after { content: "→"; transition: transform var(--dur-fast) var(--spring-1); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s-6));
  padding-bottom: var(--s-7);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-100), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--paper-200), transparent 60%),
    var(--paper-100);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-5);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--paper-50);
  border: 1px solid var(--line);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--s-3);
}
.hero__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--brand-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45, 125, 153, 0.18);
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, var(--t-5xl));
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: var(--t-lg); color: var(--ink-500); max-width: 56ch; margin-bottom: var(--s-4); line-height: var(--lh-relaxed); }
.hero__cta { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 31, 44, 0.18);
  background: var(--paper-200);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 44, 0.35) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero__media { aspect-ratio: 16 / 11; order: -1; }
}

/* ---- Trust strip --------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--paper-50);
  border: 1px solid var(--line);
}
.trust-strip__item { display: flex; flex-direction: column; gap: 4px; }
.trust-strip__value { font-size: var(--t-xl); font-weight: 600; color: var(--brand-700); }
.trust-strip__label { font-size: var(--t-xs); color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 720px) {
  .trust-strip { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ---- Section header ------------------------------------------------------ */
.section__header {
  max-width: 56ch;
  margin-bottom: var(--s-5);
}
.section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: var(--t-3xl); margin: var(--s-1) 0 var(--s-2); }
.section__lede  { color: var(--ink-500); font-size: var(--t-md); line-height: var(--lh-relaxed); }

/* ---- Division summary cards (home) ------------------------------------- */
.division-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.division-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: var(--s-2);
}
.division-card__media { aspect-ratio: 16 / 9; }
.division-card__title { font-size: var(--t-2xl); margin-bottom: var(--s-1); }
.division-card__text  { font-size: var(--t-base); color: var(--ink-500); line-height: var(--lh-relaxed); flex-grow: 1; }

/* ---- Logos strip --------------------------------------------------------- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}
.logo-strip__item {
  display: grid;
  place-items: center;
  width: 200px;
  height: 80px;
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-2);
}
.logo-strip__item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: filter var(--dur-base) var(--spring-1), opacity var(--dur-base) var(--spring-1); }
.logo-strip__item:hover img { filter: grayscale(0); opacity: 1; }

/* ---- Page header ---------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--s-5));
  padding-bottom: var(--s-5);
  background:
    radial-gradient(900px 400px at 90% -20%, var(--brand-100), transparent 60%),
    var(--paper-100);
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--paper-50); border: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: var(--s-3);
}
.page-hero__title { font-size: clamp(2rem, 4vw, var(--t-4xl)); margin-bottom: var(--s-3); }
.page-hero__lede  { font-size: var(--t-lg); color: var(--ink-500); max-width: 60ch; line-height: var(--lh-relaxed); }

/* ---- Chairman block ------------------------------------------------------ */
.chairman {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.chairman__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.chairman__photo img { width: 100%; height: 100%; object-fit: cover; }
.chairman__name { font-size: var(--t-2xl); margin-bottom: 4px; }
.chairman__title { color: var(--brand-700); font-size: var(--t-md); margin-bottom: var(--s-3); font-weight: 500; }
.chairman__creds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-3); }
.credential-pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .chairman { grid-template-columns: 1fr; }
  .chairman__photo { max-width: 240px; }
}

/* ---- Pillars (Kaya Grup) ------------------------------------------------- */
.pillar {
  padding: var(--s-4);
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.pillar__title { font-size: var(--t-xl); margin-bottom: var(--s-2); display: flex; align-items: center; gap: 12px; }
.pillar__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand-100);
  border-radius: var(--r-md);
  color: var(--brand-700);
  flex-shrink: 0;
}
.pillar ul { margin: var(--s-2) 0 0; padding-left: var(--s-2); color: var(--ink-700); line-height: var(--lh-relaxed); }
.pillar li { margin-bottom: 8px; }

/* ---- Showcase / carousel ------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.showcase__item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-200);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--spring-3); }
.showcase__item:hover img { transform: scale(1.05); }
.showcase__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-2);
  background: linear-gradient(0deg, rgba(10, 31, 44, 0.78), rgba(10, 31, 44, 0));
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 500;
}
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .showcase { grid-template-columns: 1fr; } }

/* ---- Stats / figures ----------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.stat {
  padding: var(--s-3);
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.stat__value { font-size: var(--t-3xl); font-weight: 700; color: var(--brand-700); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: var(--t-sm); color: var(--ink-500); line-height: var(--lh-snug); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Gallery (Events) ---------------------------------------------------- */
.gallery {
  columns: 3;
  column-gap: var(--s-2);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--s-2);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-200);
  border: 1px solid var(--line);
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform var(--dur-slow) var(--spring-3); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-2);
  background: linear-gradient(0deg, rgba(10, 31, 44, 0.85), transparent);
  color: #fff;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* ---- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.contact-info { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-block {
  padding: var(--s-3);
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-block__label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; }
.contact-block__value { font-size: var(--t-md); color: var(--ink-900); line-height: var(--lh-snug); }
.contact-block__value a { color: var(--ink-900); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.contact-block__value a:hover { color: var(--brand-700); border-color: var(--brand-500); }

.contact-form { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: var(--t-sm); font-weight: 500; color: var(--ink-700); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: var(--t-base);
  color: var(--ink-900);
  background: var(--paper-100);
  transition: border-color var(--dur-fast) var(--spring-1), background-color var(--dur-fast) var(--spring-1);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--paper-50);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-status { font-size: var(--t-sm); padding: 12px; border-radius: var(--r-sm); display: none; }
.form-status.is-success { display: block; background: var(--brand-100); color: var(--brand-900); border: 1px solid var(--brand-300); }
.form-status.is-error   { display: block; background: #fdeef0; color: #8a1c2c; border: 1px solid #f3c5cb; }
.form-status.is-loading { display: block; background: var(--paper-200); color: var(--ink-500); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Footer -------------------------------------------------------------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-6) 0 var(--s-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.footer__brand { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); color: #fff; }
.footer__brand-mark {
  height: 56px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
.footer__brand-mark img { max-height: 100%; width: auto; display: block; }
.footer__brand-name { font-size: var(--t-md); color: #fff; }
.footer__about { font-size: var(--t-sm); line-height: var(--lh-relaxed); color: rgba(255, 255, 255, 0.6); max-width: 36ch; }
.footer__col h5 { color: #fff; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-2); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: rgba(255, 255, 255, 0.78); font-size: var(--t-sm); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---- AI Assistant widget ------------------------------------------------- */
.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px; height: 60px;
  border-radius: var(--r-full);
  background: var(--ink-900);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(10, 31, 44, 0.28);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 80;
  transition: transform var(--dur-base) var(--spring-2), background-color var(--dur-base) var(--spring-1);
}
.ai-fab:hover { transform: scale(1.05) rotate(-2deg); background: var(--brand-700); }
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--r-full);
  border: 2px solid var(--brand-300);
  opacity: 0;
  animation: pulse 2.4s var(--spring-1) infinite;
}
@keyframes pulse {
  0%   { opacity: 0; transform: scale(0.96); }
  40%  { opacity: 0.6; }
  100% { opacity: 0; transform: scale(1.15); }
}

.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 380px;
  max-height: 70vh;
  display: none;
  flex-direction: column;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(10, 31, 44, 0.22);
  overflow: hidden;
  z-index: 81;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform var(--dur-base) var(--spring-2), opacity var(--dur-base) var(--spring-1);
}
.ai-panel.is-open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.ai-panel__header {
  padding: var(--s-3);
  background: var(--ink-900);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.ai-panel__title { font-size: var(--t-md); font-weight: 600; }
.ai-panel__sub { font-size: var(--t-xs); color: rgba(255, 255, 255, 0.6); letter-spacing: 0.06em; }
.ai-panel__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color var(--dur-fast) var(--spring-1);
}
.ai-panel__close:hover { background: rgba(255, 255, 255, 0.2); }
.ai-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-height: 50vh;
}
.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: var(--lh-relaxed);
  word-wrap: break-word;
}
.ai-msg--bot { align-self: flex-start; background: var(--paper-50); border: 1px solid var(--line); color: var(--ink-900); border-bottom-left-radius: 4px; }
.ai-msg--user { align-self: flex-end; background: var(--ink-900); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg--typing { display: flex; gap: 4px; }
.ai-msg--typing span {
  width: 6px; height: 6px;
  background: var(--ink-300);
  border-radius: 50%;
  animation: typing 1.2s var(--spring-1) infinite;
}
.ai-msg--typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-msg--typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-panel__input {
  padding: var(--s-2);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--paper-50);
}
.ai-panel__input textarea {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: var(--t-sm);
  resize: none;
  min-height: 42px;
  max-height: 100px;
}
.ai-panel__input button {
  background: var(--ink-900);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--spring-1);
}
.ai-panel__input button:hover { background: var(--brand-700); }
.ai-panel__input button:disabled { background: var(--ink-300); cursor: not-allowed; }

@media (max-width: 560px) {
  .ai-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .ai-fab { right: 16px; bottom: 16px; }
}

/* ---- Scroll reveal ------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--spring-3),
              transform var(--dur-slow) var(--spring-3);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }
[data-reveal-delay="5"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Utility ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-4) 0; }
.bg-paper-200 { background: var(--paper-200); }
.bg-brand-900 { background: var(--brand-900); color: #fff; }
.rounded { border-radius: var(--r-md); }
.hidden { display: none !important; }
.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;
}

/* ---- Image proxy fallback ----------------------------------------------- */
img[data-fallback]:not([src]) {
  background: var(--paper-200);
}
