/* ============================================================
   PT. PAK INDO MARINE — Website (Master Prompt v2)
   Multi-page · new hero overlay · heading hover box · sidebar indicator ·
   frameless images · isometric illustrations as design elements
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img { max-width: 100%; display: block; border: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* --- Palette --- */
:root {
  --primary:   #0A2342;
  --secondary: #1E4070;
  --teal:      #00C4CC;
  --teal-2:    #6BE0E5;
  --light:     #F0F0F0;
  --dark:      #333333;
  --white:     #FFFFFF;

  --ink:     #05121F;
  --line:    rgba(240,240,240,0.12);
  --hair:    rgba(240,240,240,0.08);
  --muted:   rgba(240,240,240,0.62);
  --muted-2: rgba(240,240,240,0.42);

  --f-display: "Montserrat", "Segoe UI", sans-serif;
  --f-body:    "Lato", "Roboto", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-deep: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

/* --- Base --- */
body {
  font-family: var(--f-body);
  color: var(--light);
  background: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* --- Type --- */
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.h3 { font-size: 1.4rem; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__title .accent, .h2 .accent, .h1 .accent { color: var(--teal); }
.eyebrow {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: 0.75rem;
}

/* --- Heading hover box (revised) ---
   Rectangular dark plate, tightly wrapped, no rounded corners, no rotation.
   Consistent tight fit across every heading & nav link. */
.hover-box {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0.08em 0.28em;
}
.hover-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 18, 31, 0.5);
  border-radius: 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.9,.2,1);
  z-index: -1;
  pointer-events: none;
}
.hover-box:hover::before, .hover-box:focus-visible::before {
  opacity: 0.5;
  transform: scaleX(1);
}
/* Suppress hover-box on the giant page-cover H1s (hero + sub-page top titles) */
.hero__title.hover-box, .page-hero .h1.hover-box { padding: 0; }
.hero__title.hover-box::before, .page-hero .h1.hover-box::before { display: none; }

/* Nav link hover — same effect, tightly wrapping the link box */
.site-nav a { position: relative; isolation: isolate; }
.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 18, 31, 0.5);
  border-radius: 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.2,.9,.2,1);
  z-index: -1;
}
.site-nav a:hover::before, .site-nav a.is-active::before {
  opacity: 0.5;
  transform: scaleX(1);
}
.site-nav a.is-active { color: var(--teal); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  border: 2px solid transparent;
}
.btn--primary { background: var(--teal); color: #062A2C; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(0,196,204,0.55); background: var(--teal-2); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: rgba(240,240,240,0.28); color: var(--white); background: rgba(5,18,31,0.35); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 18px 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.3s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 18, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
  padding: 12px 0;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); z-index: 2; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-text em { font-style: normal; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: 24px; }
.site-nav a {
  font-family: var(--f-display);
  font-weight: 500; font-size: 0.9rem;
  color: var(--light);
  padding: 6px 10px;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--teal); }
.nav-cta { padding: 0.7rem 1.25rem; font-size: 0.78rem; }

/* Language switcher (EN / ID) — segmented pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(0, 196, 204, 0.35);
  border-radius: 999px;
  background: rgba(5, 18, 31, 0.7);
  margin-right: 6px;
  flex-shrink: 0;
}
.lang-switch button {
  min-width: 40px;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--light);
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.lang-switch button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.lang-switch button.is-active {
  background: var(--teal);
  color: #062A2C;
}
.lang-switch button.is-active:hover { background: var(--teal-2); }

@media (max-width: 1080px) {
  .lang-switch { margin-right: 6px; }
}

/* Mobile toggle */
.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; color: var(--white); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }
.mobile-nav { display: none; flex-direction: column; padding: 20px 24px 28px; background: rgba(5,18,31,0.98); border-top: 1px solid var(--hair); gap: 12px; }
.mobile-nav a { color: var(--white); font-family: var(--f-display); font-weight: 500; padding: 8px 4px; border-bottom: 1px solid var(--hair); }
.mobile-nav a.is-active { color: var(--teal); }
.mobile-nav a:last-of-type { border-bottom: 0; text-align: center; margin-top: 8px; }
.site-header.is-open .mobile-nav { display: flex; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sidebar section indicator (Master v2 §3.4) --- */
.sidebar-nav {
  position: fixed;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  z-index: 55;
  pointer-events: auto;
}
.sidebar-nav ul { display: flex; flex-direction: column; gap: 14px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  color: var(--muted-2);
  transition: color 0.25s ease;
}
.sidebar-nav a:hover { color: var(--teal); }
.sidebar-nav .sn-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: rgba(240,240,240,0.35);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.sidebar-nav .sn-line {
  display: inline-block;
  width: 0; height: 3px;
  border-radius: 2px;
  background-color: var(--teal);
  opacity: 0;
  transition: all 0.35s ease;
  margin-left: -8px;   /* line replaces dot when active */
}
.sidebar-nav .sn-label {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.sidebar-nav a:hover .sn-label { opacity: 1; transform: translateX(0); color: var(--light); }
.sidebar-nav .sn-item.is-active .sn-dot { opacity: 0; transform: scale(0.5); width: 0; height: 0; margin-right: 0; }
.sidebar-nav .sn-item.is-active .sn-line { width: 28px; opacity: 1; margin-left: 0; }
.sidebar-nav .sn-item.is-active .sn-label { opacity: 1; transform: translateX(0); color: var(--teal); }

@media (max-width: 1080px) { .sidebar-nav { display: none; } }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 0 130px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.hero__bg {
  position: absolute; top: -8%; left: 0;
  width: 100%; height: 116%;
  background-image: url("/assets/hero_ship_parallax.jpg");
  background-size: cover;
  background-position: center 42%;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
  opacity: 1;
}
/* Lighter overlay so the ship image shows through more clearly */
.hero__scrim {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(5, 18, 31, 0.45) 0%,
      rgba(10, 35, 66, 0.20) 30%,
      rgba(10, 35, 66, 0.15) 55%,
      rgba(5, 18, 31, 0.75) 100%),
    linear-gradient(90deg,
      rgba(5, 18, 31, 0.45) 0%,
      rgba(5, 18, 31, 0.10) 50%,
      rgba(5, 18, 31, 0.00) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.hero__inner { position: relative; z-index: 3; max-width: 900px; }
.hero__sub {
  color: rgba(255,255,255,0.86);
  font-size: 1.12rem;
  max-width: 62ch;
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(5,18,31,0.6);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__strengths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 900px;
}
.hero__strengths li { display: flex; flex-direction: column; padding: 4px 0; }
.strength__k {
  font-family: var(--f-display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 4px;
}
.strength__v { font-family: var(--f-display); font-weight: 600; color: var(--white); font-size: 1.15rem; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--white); border-radius: 2px; animation: scroll-hint 1.6s ease-in-out infinite; }
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* --- Page hero (sub-page top area) --- */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(0,196,204,0.08), transparent 60%),
    linear-gradient(180deg, var(--primary) 0%, var(--ink) 100%);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .lede { max-width: 720px; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(0,196,204,0.10), transparent 50%),
    radial-gradient(60% 60% at 0% 100%, rgba(30,64,112,0.30), transparent 50%);
}

/* --- Sections --- */
.section { position: relative; padding: 110px 0; overflow: hidden; }
.section--dark   { background: var(--primary); }
.section--darker { background: var(--ink); }
.section__head { max-width: 780px; margin-bottom: 3rem; }
.section__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.section__grid--reverse { grid-template-columns: 1fr 1.15fr; }
.section__grid--reverse .section__copy { order: 2; }
.section__copy p { color: var(--muted); margin-top: 1rem; }

/* Frameless figure — no rounded box, no shadow, just the image */
.section__figure { margin: 0; }
.section__figure--bare img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(0.9) contrast(1.02);
}
.section__figure--bare {
  position: relative;
  isolation: isolate;
}
.section__figure--bare::after {
  /* subtle vignette so photo edges bleed into the dark section instead of hard-cropping */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--ink) 100%),
    linear-gradient(90deg, transparent 85%, var(--ink) 100%),
    linear-gradient(-90deg, transparent 85%, var(--ink) 100%);
  pointer-events: none;
}

.addr {
  font-style: normal;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: rgba(0,196,204,0.06);
  color: var(--light);
  border-radius: 6px;
  line-height: 1.7;
}
.addr strong { display: block; font-family: var(--f-display); color: var(--teal); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 6px; }

/* --- Isometric illustrations as design overlays (Master v2 §3.5) --- */
.iso-decor { position: relative; isolation: isolate; overflow: hidden; }
.iso-decor__img {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  max-width: none;
  filter: saturate(1.05) drop-shadow(0 20px 40px rgba(0,0,0,0.55));
  opacity: 0.85;
}
.iso-decor__img--right { right: -80px; top: 50%; transform: translateY(-50%); width: 620px; }
.iso-decor__img--left  { left: -80px;  top: 50%; transform: translateY(-50%); width: 620px; }
.iso-decor .wrap { position: relative; z-index: 1; }
.iso-decor::after {
  /* gradient veil to protect text readability where illustration overlaps */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 30% 50%, rgba(5,18,31,0.55), transparent 60%);
}
.iso-decor--left::after  { background: radial-gradient(60% 90% at 70% 50%, rgba(5,18,31,0.55), transparent 60%); }
.iso-decor--right::after { background: radial-gradient(60% 90% at 30% 50%, rgba(5,18,31,0.55), transparent 60%); }

/* --- Home teaser grid --- */
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.teaser {
  padding: 26px 22px;
  background: rgba(5, 18, 31, 0.5);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  color: var(--light);
  display: flex; flex-direction: column;
  backdrop-filter: blur(2px);
}
.teaser:hover { transform: translateY(-4px); border-color: rgba(0,196,204,0.45); background: rgba(10,35,66,0.55); }
.teaser__num {
  font-family: var(--f-display); font-weight: 700;
  color: var(--teal); font-size: 0.85rem; letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.teaser h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.teaser p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; flex: 1; }

.link-arrow {
  font-family: var(--f-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { border-bottom-color: var(--teal); color: var(--teal-2); }

/* --- Diff cards / step / fleet / product / project --- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.diff-card { padding: 28px 24px; background: rgba(5,18,31,0.55); border: 1px solid var(--hair); border-radius: var(--radius); transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; backdrop-filter: blur(2px); }
.diff-card:hover { transform: translateY(-4px); border-color: rgba(0,196,204,0.35); background: rgba(10,35,66,0.5); }
.diff-num { font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; color: var(--teal); letter-spacing: 0.2em; display: inline-block; margin-bottom: 12px; }
.diff-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.diff-card p { color: var(--muted); font-size: 0.94rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.step { padding: 30px 26px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(5,18,31,0.55); position: relative; backdrop-filter: blur(2px); }
.step__num { font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--teal); display: block; margin-bottom: 12px; opacity: 0.9; }
.step h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.fleet-card { padding: 28px; border: 1px solid var(--hair); border-radius: var(--radius); background: linear-gradient(160deg, rgba(0,196,204,0.06), rgba(255,255,255,0.02)); transition: transform 0.25s ease, border-color 0.25s ease; }
.fleet-card:hover { transform: translateY(-4px); border-color: rgba(0,196,204,0.45); }
.fleet-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.fleet-card p  { color: var(--muted); font-size: 0.94rem; }

/* Services detail — checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 8px; }
.checklist li {
  padding: 12px 14px 12px 32px;
  border-radius: 10px;
  background: rgba(5,18,31,0.5);
  border-left: 3px solid var(--teal);
  color: var(--light);
  font-size: 0.95rem;
  position: relative;
}
.checklist li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(-45deg);
}

/* --- Aerial banner --- */
.banner--aerial {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(5,18,31,0.55), rgba(5,18,31,0.75)),
    url("/assets/cargo_ship_aerial.jpg") center/cover no-repeat fixed;
  padding: 100px 0;
}
.banner__inner { max-width: 900px; }
.banner .h2 { color: var(--white); margin-bottom: 1rem; }

/* --- Products (frameless) --- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; position: relative; z-index: 1; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.product--bare { background: none; border: 0; padding: 0; }
.product__thumb {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: 0;
  filter: saturate(0.95);
}
.product__body h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.product__body p  { color: var(--muted); font-size: 0.95rem; }
.product__iso {
  width: 100%; height: auto;
  filter: saturate(1.05) drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* --- Anamorphic (Blueprint 2.3) — bare, no visible frame --- */
.anamorphic-section { padding-bottom: 140px; position: relative; z-index: 1; }
.anamorphic {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  isolation: isolate;
}
.anamorphic--bare { box-shadow: none; }
.anamorphic img {
  width: 100%; height: 100%; object-fit: cover;
  transform: perspective(600px) rotateX(22deg) scale(0.88);
  transform-origin: center 70%;
  filter: blur(5px) saturate(1.1);
  transition: transform 0.7s ease, filter 0.7s ease;
}
.anamorphic:hover img, .anamorphic:focus-within img { transform: perspective(600px) rotateX(0deg) scale(1); filter: blur(0) saturate(1); }
.anamorphic__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(10,35,66,0.05) 40%, rgba(10,35,66,0.85) 100%);
  color: var(--teal);
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}
.anamorphic:hover .anamorphic__overlay, .anamorphic:focus-within .anamorphic__overlay { opacity: 0; }

/* --- Projects (frameless) --- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; position: relative; z-index: 1; }
.project--bare { display: flex; flex-direction: column; background: none; border: 0; padding: 0; }
.project__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.project__body { padding: 18px 0 0; }
.project__tag { font-family: var(--f-display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.project__body h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.project__body p  { color: var(--muted); font-size: 0.94rem; }

/* --- CTA block --- */
.cta-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 100% at 50% 0%, rgba(0,196,204,0.10), transparent 70%);
}
.cta-block .lede { margin: 1rem auto 1.5rem; }

/* --- Contact --- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__copy p { color: var(--muted); max-width: 46ch; margin-bottom: 1rem; }
.contact__list { margin-top: 1rem; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { padding: 14px 18px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(5,18,31,0.5); }
.contact__list span { display: block; font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.contact__list strong { display: block; color: var(--white); font-weight: 500; line-height: 1.6; }
.contact__list a { color: var(--white); border-bottom: 1px dotted var(--teal); }

.contact__form {
  padding: 32px;
  background: rgba(5,18,31,0.55);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 14px;
  backdrop-filter: blur(2px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--split { flex-direction: row; gap: 14px; }
.field--split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
label { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,204,0.28); background: rgba(0,0,0,0.5); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted-2); font-size: 0.8rem; margin-top: 4px; }
.form-success { padding: 14px 16px; border-radius: 10px; background: rgba(0,196,204,0.12); border: 1px solid rgba(0,196,204,0.4); color: var(--white); font-size: 0.95rem; }
.form-success strong { color: var(--teal); }

/* --- Footer --- */
.site-footer { background: #04101f; padding: 70px 0 30px; border-top: 1px solid var(--hair); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--teal); }
.footer-grid address { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: 14px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--hair); color: var(--muted-2); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* --- Responsive --- */
@media (max-width: 1180px) {
  .iso-decor__img--right { right: -180px; width: 500px; opacity: 0.6; }
  .iso-decor__img--left  { left:  -180px; width: 500px; opacity: 0.6; }
}
@media (max-width: 1080px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid, .fleet-grid, .projects-grid, .process-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .iso-decor__img { opacity: 0.35; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 90px; min-height: auto; }
  .page-hero { padding: 130px 0 70px; }
  .hero__strengths { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section__grid, .section__grid--reverse, .contact-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .section__grid--reverse .section__copy { order: 0; }
  .teaser-grid, .diff-grid, .fleet-grid, .projects-grid, .process-grid, .products-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .field--split { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner--aerial { background-attachment: scroll; min-height: 44vh; }
  .anamorphic { aspect-ratio: 4/3; }
  .iso-decor__img { display: none; }
}

/* ============================================================
   AI page — chatbot demo + receptionist demo + floating widget
   ============================================================ */

.chat-demo-wrap { display: flex; justify-content: center; }
.chat-demo {
  width: 100%;
  max-width: 720px;
  background: rgba(5, 18, 31, 0.6);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 40px 90px -50px rgba(0,196,204,0.25), 0 20px 40px -25px rgba(0,0,0,0.65);
}
.chat-demo__log {
  height: 380px;
  overflow-y: auto;
  padding: 22px 22px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-bubble {
  max-width: 78%;
  padding: 12px 15px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 0.95rem;
  animation: bubble-in 0.28s cubic-bezier(.2,.9,.2,1);
}
.chat-bubble--bot {
  background: rgba(0, 196, 204, 0.14);
  border: 1px solid rgba(0, 196, 204, 0.3);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble--user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hair);
  color: var(--light);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble--typing {
  align-self: flex-start;
  padding: 12px 15px;
  background: rgba(0, 196, 204, 0.10);
  border: 1px solid rgba(0, 196, 204, 0.25);
  border-radius: 14px 14px 14px 4px;
  display: inline-flex; gap: 4px;
}
.chat-bubble--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: typing 1.2s infinite ease-in-out;
}
.chat-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-demo__composer {
  display: flex; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--hair);
  background: rgba(5, 18, 31, 0.55);
}
.chat-demo__composer input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-demo__composer input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,204,0.28); }
.chat-demo__composer .btn { padding: 0.55rem 1.2rem; font-size: 0.72rem; }
.chat-demo__quick {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 16px;
}
.chat-demo__quick button {
  background: rgba(0, 196, 204, 0.08);
  border: 1px solid rgba(0, 196, 204, 0.3);
  color: var(--teal);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chat-demo__quick button:hover { background: rgba(0,196,204,0.16); color: var(--teal-2); border-color: var(--teal); }

/* --- Receptionist demo --- */
.receptionist {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
  background: rgba(5, 18, 31, 0.6);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  display: flex; gap: 24px; align-items: flex-start;
  backdrop-filter: blur(4px);
  box-shadow: 0 40px 90px -50px rgba(0,196,204,0.2), 0 20px 40px -25px rgba(0,0,0,0.65);
}
.receptionist__avatar {
  flex-shrink: 0;
  color: var(--teal);
  padding: 6px;
  border-radius: 50%;
  border: 2px solid rgba(0,196,204,0.35);
  position: relative;
}
.receptionist__pulse { display: none; }
.receptionist.is-calling .receptionist__avatar::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: pulse 1.4s ease-out infinite;
}
.receptionist.is-listening .receptionist__avatar {
  border-color: #ffb020;
  box-shadow: 0 0 0 3px rgba(255,176,32,0.2);
}
.receptionist.is-listening .receptionist__avatar::after {
  border-color: #ffb020;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.receptionist__transcript {
  margin: 14px 0 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--hair);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.rec-turn {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: bubble-in 0.28s ease;
}
.rec-turn__who {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
  margin-top: 2px;
}
.rec-turn--anisa .rec-turn__who { color: var(--teal); background: rgba(0,196,204,0.14); }
.rec-turn--user  .rec-turn__who { color: #ffb020;    background: rgba(255,176,32,0.14); }
.rec-turn__text {
  flex: 1;
  color: var(--light);
}
.rec-turn--user .rec-turn__text { color: rgba(240,240,240,0.85); }
.rec-turn__text .interim { opacity: 0.55; font-style: italic; }

.receptionist__input {
  display: flex; gap: 8px;
  margin-bottom: 14px;
}
.receptionist__input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.receptionist__input input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,204,0.28);
}
.receptionist__input .btn { padding: 0.55rem 1.2rem; font-size: 0.72rem; }
.receptionist__mic-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.35);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.receptionist__mic-note strong { color: #ffb020; }

/* Static marketing block (replaces the live demo) */
.receptionist-marketing {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 32px;
  background: rgba(5, 18, 31, 0.6);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  box-shadow: 0 40px 90px -50px rgba(0,196,204,0.2), 0 20px 40px -25px rgba(0,0,0,0.55);
  text-align: center;
}
.receptionist-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  text-align: left;
  margin-bottom: 26px;
}
.receptionist-feats li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 14px 20px;
  border-left: 2px solid var(--teal);
  background: rgba(0,196,204,0.05);
  border-radius: 8px;
}
.receptionist-feats strong {
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.receptionist-feats span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 720px) {
  .receptionist-feats { grid-template-columns: 1fr; gap: 12px; }
  .receptionist-marketing { padding: 28px 22px; }
}
.receptionist__body { flex: 1; }
.receptionist__name {
  font-family: var(--f-display);
  font-weight: 600; font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}
.receptionist__status {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  min-height: 1.6em;
}
.receptionist.is-calling .receptionist__status { color: var(--teal); }
.receptionist__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* --- Floating chatbot widget (sitewide) --- */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 55;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: #062A2C;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 40px -12px rgba(0, 196, 204, 0.6), 0 10px 20px -8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab.is-open .chat-fab__open  { display: none; }
.chat-fab .chat-fab__close { display: none; }
.chat-fab.is-open .chat-fab__close { display: inline; }
.chat-widget {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 55;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: rgba(5, 18, 31, 0.96);
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 20px 40px -15px rgba(0,196,204,0.25);
  backdrop-filter: blur(14px);
}
.chat-widget.is-open { display: flex; animation: widget-in 0.22s ease-out; }
@keyframes widget-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-widget__head {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,196,204,0.18), rgba(30,64,112,0.35));
  border-bottom: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 2px;
}
.chat-widget__head strong { font-family: var(--f-display); color: var(--white); font-size: 0.98rem; }
.chat-widget__head span { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase; }
.chat-widget .chat-demo__log { flex: 1; height: auto; padding: 14px 14px 6px; }
.chat-widget .chat-demo__composer { padding: 10px 12px; }
.chat-widget .chat-demo__quick { padding: 0 12px 12px; }
.chat-widget .chat-bubble { font-size: 0.9rem; padding: 10px 13px; }
/* Hide widget on the AI page (embedded chatbot already available) */
.page-ai .chat-fab, .page-ai .chat-widget { display: none !important; }

@media (max-width: 640px) {
  .chat-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .chat-widget { bottom: 78px; right: 16px; height: 460px; }
  .receptionist { flex-direction: column; align-items: center; text-align: center; }
  .receptionist__cta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__bg { transform: none !important; }
}
