/* ==========================================================
   Delta Metal Industrial L.L.C — v2
   Direction: "Glass & light" — frosted panels, cool daylight
   neutrals, oversized type, Delta red used as a signal colour.
   ========================================================== */
:root {
  --red: #E31B23;
  --red-600: #C8141C;
  --red-50: #FDECEC;
  --slate: #15202B;        /* deep glass slate for dark surfaces */
  --slate-2: #1D2A36;
  --ink: #15202B;
  --ink-2: #4A5866;
  --ink-3: #7A8794;
  --bg: #F3F5F7;           /* cool daylight, not cream */
  --surface: #FFFFFF;
  --tint: #E5ECF1;         /* glass-blue tint */
  --line: #DFE5EA;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --pill: 999px;
  --container: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 500; background: var(--red); color: #fff; padding: 10px 18px; border-radius: var(--pill); text-decoration: none; }
.skip-link:focus { top: 16px; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .45em; color: inherit; }
.display { font-size: clamp(2.9rem, 7.6vw, 7.4rem); letter-spacing: -0.05em; line-height: .95; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.15; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-2); line-height: 1;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.chip--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chip--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --f: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 10px 0 24px; border-radius: var(--pill);
  background: var(--b); color: var(--f); border: 0;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn .ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); transition: transform .35s var(--ease), background .25s;
}
.btn .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn:hover .ico { transform: rotate(-45deg); }
.btn--red { --b: var(--red); }
.btn--red:hover { --b: var(--red-600); }
.btn--light { --b: #fff; --f: var(--ink); }
.btn--light .ico { background: var(--ink); color: #fff; }
.btn--light:hover { --b: var(--tint); }
.btn--ghost { --b: transparent; --f: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost .ico { background: var(--ink); color: #fff; }
.btn--ghost:hover { --b: var(--surface); }
.btn--glass { --b: rgba(255,255,255,.12); --f: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--glass:hover { --b: rgba(255,255,255,.22); }
.btn--plain { padding: 0 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; color: var(--ink); }
.arrow-link span { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .35s var(--ease); }
.arrow-link span svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.arrow-link:hover span { transform: rotate(-45deg); }

/* ---------- Floating nav ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 200; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 66px; padding: 0 10px 0 18px; border-radius: var(--pill);
  background: rgba(21,32,43,.28);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  color: #fff; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid .nav-bar, body.light-top .nav-bar {
  background: rgba(255,255,255,.82); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(21,32,43,.08), 0 10px 30px rgba(21,32,43,.08);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand svg { width: 30px; height: 32px; flex: none; }
.brand b { font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; opacity: .65; margin-top: 3px; letter-spacing: .01em; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 16px; border-radius: var(--pill); text-decoration: none; font-size: .96rem; font-weight: 450; opacity: .88;
  transition: background .2s, opacity .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,.14); }
.site-header.is-solid .nav-links a:hover, body.light-top .nav-links a:hover { background: var(--tint); }
.nav-links a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.18); }
.site-header.is-solid .nav-links a[aria-current="page"], body.light-top .nav-links a[aria-current="page"] { background: var(--tint); }
.nav-cta { min-height: 46px; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; place-items: center;
}
.menu-btn i, .menu-btn i::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-btn i::before { content: ""; position: absolute; top: 6px; width: 12px; right: 0; }
.menu-btn i { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(-6px) rotate(-90deg); width: 18px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--slate); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gutter) 36px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.15;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu nav a small { font-size: .9rem; letter-spacing: 0; font-weight: 400; color: rgba(255,255,255,.45); }
.mobile-menu nav a[aria-current="page"] { color: var(--red); }
.mobile-menu .mm-foot { margin-top: 32px; color: rgba(255,255,255,.6); font-size: .95rem; display: grid; gap: 4px; }
.mobile-menu .mm-foot a { color: #fff; text-decoration: none; }

@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- Hero (home) ---------- */
.hero-shell { padding: 12px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 24px); border-radius: var(--r-xl);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px clamp(20px, 4vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--slate);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; transform: scale(1.06); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,32,43,.35) 0%, rgba(21,32,43,0) 30%),
    linear-gradient(0deg, rgba(14,22,30,.92) 0%, rgba(14,22,30,.55) 38%, rgba(14,22,30,0) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; }
.hero h1 { margin: 22px 0 0; max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-sub p { margin: 0; color: rgba(255,255,255,.8); max-width: 52ch; font-size: 1.08rem; }

.glass-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  border-radius: var(--r-lg); padding: 22px; color: #fff;
}
.hero-card { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) .5s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hero-card .big { font-size: 3.2rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.hero-card .lbl { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 6px; }
.thumbs { display: flex; }
.thumbs img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); margin-left: -12px; }
.thumbs img:first-child { margin-left: 0; }
.hero-card a { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 12px 14px 12px 18px; border-radius: var(--pill); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.hero-card a span { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .35s var(--ease); }
.hero-card a span svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.hero-card a:hover span { transform: rotate(-45deg); }
.hero-mark { position: absolute; top: 110px; right: clamp(20px, 4vw, 56px); width: 54px; fill: var(--red); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .hero-mark { display: none; }
}
@media (max-width: 520px) {
  .hero-shell { padding: 8px; }
  .hero { border-radius: var(--r-lg); padding-top: 120px; }
  .hero-card .big { font-size: 2.6rem; }
}

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0 10px; overflow: hidden; }
.marquee-label { text-align: center; color: var(--ink-3); font-size: .92rem; margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--red); clip-path: polygon(70% 0, 100% 78%, 0 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 10vw, 150px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .left { max-width: 760px; }
.sec-head .chip { margin-bottom: 22px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head p { margin: 18px 0 0; }

.dark-panel {
  margin: 0 12px; border-radius: var(--r-xl); background: var(--slate); color: rgba(255,255,255,.78);
  position: relative; overflow: hidden; isolation: isolate;
}
.dark-panel h2, .dark-panel h3, .dark-panel h4 { color: #fff; }
.dark-panel .lead { color: rgba(255,255,255,.7); }
@media (max-width: 520px) { .dark-panel { margin: 0 8px; border-radius: var(--r-lg); } }

/* ---------- Statement with inline images ---------- */
.statement {
  font-size: clamp(1.8rem, 4.2vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12;
  max-width: 22ch; margin: 0; color: var(--ink);
}
.statement { max-width: none; }
.statement .soft { color: var(--ink-3); }
.statement .pic {
  display: inline-block; width: 1.9em; height: .95em; border-radius: var(--pill); overflow: hidden;
  vertical-align: -0.08em; margin: 0 .08em;
}
.statement .pic img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px 24px; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 30px; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { color: var(--ink-2); font-size: .95rem; line-height: 1.4; display: block; }
@media (max-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stat { padding: 20px 18px; } .stat b { margin-bottom: 18px; } }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
  background: var(--surface); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  border: 1px solid var(--line);
}
.tile--img { color: #fff; border: 0; background: var(--slate); }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,22,30,.86) 0%, rgba(14,22,30,.15) 55%, rgba(14,22,30,.05) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile h3 { margin: 0 0 8px; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.tile p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.tile--img p { color: rgba(255,255,255,.78); }
.tile .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tile .go {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tint); color: var(--ink); transition: transform .4s var(--ease), background .25s, color .25s;
}
.tile--img .go { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tile .go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.tile:hover .go { transform: rotate(-45deg); background: var(--red); color: #fff; }
.tile--red { background: var(--red); color: #fff; border: 0; }
.tile--red p { color: rgba(255,255,255,.85); }
.tile--red .go { background: rgba(255,255,255,.18); color: #fff; }
.tile--red:hover .go { background: #fff; color: var(--red); }
.tile--red .mark { position: absolute; right: -30px; bottom: -40px; width: 180px; fill: rgba(0,0,0,.12); z-index: -1; }
.bento .a { grid-column: span 2; grid-row: span 2; }
.bento .b { grid-column: span 2; }
.bento .c { grid-column: span 1; }
.bento .d { grid-column: span 1; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bento .a { grid-column: span 2; grid-row: span 2; }
  .bento .b { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .tile { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 230px; }
  .bento .a { min-height: 340px; }
}

/* ---------- Project carousel ---------- */
.carousel-wrap { position: relative; }
.carousel {
  /* full-bleed strip: runs to both edges of the page, first card lines up with the heading */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 420px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge); scroll-padding-right: var(--edge);
  padding: 0 var(--edge) 8px; scrollbar-width: none;
  width: 100%; max-width: none; margin: 0;
}
.carousel::-webkit-scrollbar { display: none; }
.p-card { scroll-snap-align: start; text-decoration: none; color: var(--ink); display: block; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.p-card .ph { display: block; position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.p-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .ph img { transform: scale(1.05); }
.p-card .ph .chip { position: absolute; left: 14px; top: 14px; }
.p-card .ph .cnt { left: auto; top: auto; right: 14px; bottom: 14px; }
.p-card h3 { font-size: 1.2rem; margin: 16px 0 4px; }
.p-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.car-ctrl { display: flex; gap: 8px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.round-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.car-progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 28px; overflow: hidden; }
.car-progress i { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 2px; transition: width .2s linear; }

/* ---------- Process (sticky) ---------- */
.process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.process .sticky { position: sticky; top: 120px; }
.steps { display: grid; gap: 14px; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 64px 1fr; gap: 20px;
}
.step .n {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em;
}
.step h3 { margin: 4px 0 8px; }
.step p { margin: 0; color: rgba(255,255,255,.66); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process .sticky { position: static; }
}
@media (max-width: 480px) { .step { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Factory ---------- */
.factory { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.factory .intro { grid-column: span 1; padding: clamp(28px, 4vw, 48px); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.eq h4 { margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; }
.eq h4 span { color: var(--red); font-weight: 600; }
.eq ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; color: var(--ink-2); }
.eq li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.eq li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.eq--wide { grid-column: span 2; }
@media (max-width: 900px) { .factory { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .eq-grid { grid-template-columns: 1fr; } .eq--wide { grid-column: span 1; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 12px; border-radius: var(--r-xl); background: var(--red); color: #fff;
  padding: clamp(56px, 8vw, 110px) 0;
}
.cta h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); letter-spacing: -0.05em; line-height: .98; max-width: 14ch; margin-bottom: 28px; }
.cta p { color: rgba(255,255,255,.88); max-width: 46ch; }
.cta .mark { position: absolute; right: -4%; bottom: -18%; width: min(48vw, 560px); fill: rgba(0,0,0,.13); z-index: -1; }
.cta .btn--light .ico { background: var(--red); }
@media (max-width: 520px) { .cta { margin: 0 8px; border-radius: var(--r-lg); } }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 110px) 0 0; overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font-size: .95rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--red); }
.f-brand p { color: var(--ink-2); max-width: 34ch; margin-top: 18px; }
.f-ar { font-family: "Noto Kufi Arabic", "Geeza Pro", Tahoma, sans-serif; color: var(--ink-2); display: block; text-align: left; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 20px; margin-top: 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
.wordmark {
  font-size: min(13.6vw, 12rem); font-weight: 700; letter-spacing: -0.065em; line-height: .76;
  color: var(--ink); white-space: nowrap; user-select: none; margin: 8px 0 -0.02em; text-align: center;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(21,32,43,.08) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.p-hero-shell { padding: 12px; }
.p-hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: 62svh; color: #fff; display: flex; align-items: flex-end;
  padding: 150px 0 clamp(36px, 5vw, 64px); background: var(--slate);
}
.p-hero .bg { position: absolute; inset: 0; z-index: -2; }
.p-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,22,30,.9) 0%, rgba(14,22,30,.5) 45%, rgba(14,22,30,.3) 100%); }
.p-hero h1 { max-width: 15ch; margin: 20px 0 18px; }
.p-hero .lead { color: rgba(255,255,255,.8); margin: 0; }
.p-hero .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: rgba(255,255,255,.65); }
.crumbs a { color: #fff; text-decoration: none; }
@media (max-width: 520px) { .p-hero-shell { padding: 8px; } .p-hero { border-radius: var(--r-lg); min-height: 54svh; padding-top: 130px; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.photo .glass-card { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; }
.photo .glass-card b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.photo .glass-card span { font-size: .9rem; color: rgba(255,255,255,.8); }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.t-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.t-item b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 26px; }
.t-item b em { font-style: normal; color: var(--red); }
.t-item span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; display: block; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } }

.quote-block { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 6vw, 88px); }
.quote-block blockquote { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; color: #fff; }
.quote-block blockquote::before { content: "“"; display: block; color: var(--red); font-size: 4.5rem; line-height: .6; margin-bottom: 14px; }
.quote-block .who { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.quote-block .who svg { width: 46px; height: 48px; fill: var(--red); }
.quote-block .who b { display: block; color: #fff; font-weight: 600; }
.quote-block .who span { font-size: .92rem; color: rgba(255,255,255,.6); }
.quote-block .body p { color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .quote-block { grid-template-columns: 1fr; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mv > div { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.mv > div:first-child { background: var(--tint); border-color: transparent; }
.mv h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 18px 0 14px; }
.mv p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
  text-align: left; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 500; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.tab-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; opacity: .5; }
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-btn[aria-selected="true"] svg { opacity: 1; color: var(--red); }
.tab-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
.tab-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tab-panel ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tab-panel li { padding: 14px 16px 14px 44px; border-radius: var(--r-sm); background: var(--bg); position: relative; font-size: .97rem; line-height: 1.4; }
.tab-panel li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--red-50); box-shadow: inset 0 0 0 5px var(--red); }
.tab-panel .sig { margin-top: 26px; color: var(--ink-3); font-size: .92rem; }
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab-btn { flex: none; padding: 14px 18px; }
  .tab-btn svg { display: none; }
  .tab-panel ul { grid-template-columns: 1fr; }
}

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.svc-nav a { padding: 11px 16px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 450; font-size: .97rem; transition: background .2s, color .2s; display: flex; gap: 10px; align-items: center; }
.svc-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; flex: none; }
.svc-nav a:hover { background: var(--surface); color: var(--ink); }
.svc-nav a.active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 0 var(--line); }
.svc-nav a.active::before { background: var(--red); }
.svc-list { display: grid; gap: 14px; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; scroll-margin-top: 100px; }
.svc-card .media { position: relative; min-height: 380px; }
.svc-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card .media--plain { background: var(--red); display: grid; place-items: center; }
.svc-card .media--plain svg { width: 40%; fill: rgba(255,255,255,.95); position: static; }
.svc-card .body { padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; }
.svc-card .num { color: var(--ink-3); font-size: .9rem; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.svc-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 14px; }
.svc-card p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.tags li { padding: 7px 13px; border-radius: var(--pill); background: var(--bg); font-size: .88rem; color: var(--ink); }
.svc-card .seen { margin-top: auto; padding-top: 24px; font-size: .9rem; color: var(--ink-3); }
.svc-card .seen a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1100px) { .svc-card { grid-template-columns: 1fr; } .svc-card .media { min-height: 280px; } }
@media (max-width: 860px) { .svc-layout { grid-template-columns: 1fr; } .svc-nav { display: none; } }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.extras > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 30px; }
.extras .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--red); display: grid; place-items: center; margin-bottom: 40px; }
.extras .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }
.extras p { color: rgba(255,255,255,.66); margin: 0; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 11px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 500; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; transition: all .2s;
}
.filter sup { font-size: .75rem; color: var(--ink-3); top: 0; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: rgba(255,255,255,.6); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.toolbar .count { color: var(--ink-3); font-size: .95rem; }

.masonry { columns: 3 320px; column-gap: 16px; }
.m-card { break-inside: avoid; margin-bottom: 16px; display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; }
.m-card img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.m-card:hover img { transform: scale(1.04); }
.m-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,22,30,.85) 0%, rgba(14,22,30,0) 50%); z-index: 0; }
.m-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.m-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.m-card p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.78); line-height: 1.4; }
.m-card .chip { position: absolute; top: 14px; left: 14px; z-index: 1; }
.m-card .go { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background .2s; }
.m-card .go svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.m-card:hover .go { background: var(--red); transform: rotate(-45deg); }
.m-card[hidden] { display: none; }

.register-card { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; }
.register { width: 100%; border-collapse: collapse; font-size: .97rem; }
.register th, .register td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.register thead th { font-weight: 500; color: var(--ink-3); font-size: .9rem; background: var(--bg); }
.register tbody tr:last-child td { border-bottom: 0; }
.register td:first-child { color: var(--ink-3); width: 64px; font-variant-numeric: tabular-nums; }
.register td:nth-child(2) { font-weight: 500; }
.register tbody tr { transition: background .15s; }
.register tbody tr:hover { background: var(--bg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,15,20,.97); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.lightbox.is-open { display: grid; }
.lb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px var(--gutter); }
.lb-top h3 { margin: 0 0 4px; }
.lb-top p { margin: 0; color: rgba(255,255,255,.6); font-size: .95rem; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 84px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-bottom { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px var(--gutter) 22px; }
.lb-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; opacity: .5; transition: opacity .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--red); }
.lb-counter { color: rgba(255,255,255,.6); font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -66px; transform: none; } .lb-bottom { padding-top: 78px; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; align-items: stretch; }
.c-info { display: grid; gap: 14px; align-content: start; }
.c-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; text-decoration: none; transition: border-color .2s; }
a.c-tile:hover { border-color: var(--ink); }
.c-tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--red-50); display: grid; place-items: center; }
.c-tile .ic svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.c-tile small { display: block; color: var(--ink-3); font-size: .88rem; margin-bottom: 2px; }
.c-tile b { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; word-break: break-word; }
.c-tile span { color: var(--ink-2); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 15px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--bg);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(227,27,35,.12); }
.svc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-pick label { position: relative; cursor: pointer; font-weight: 450; }
.svc-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc-pick span { display: inline-block; padding: 10px 16px; border-radius: var(--pill); background: var(--bg); border: 1px solid transparent; font-size: .93rem; transition: all .2s; }
.svc-pick input:checked + span { background: var(--ink); color: #fff; }
.svc-pick input:focus-visible + span { outline: 2.5px solid var(--red); outline-offset: 2px; }
.svc-pick span:hover { border-color: var(--line); }
.err { display: none; color: var(--red-600); font-size: .87rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff; }
.field.invalid .err { display: block; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: var(--r-md); font-weight: 500; }
.form-status.ok { display: block; background: #E7F5EC; color: #1B5E34; }
.form-status.fail { display: block; background: var(--red-50); color: var(--red-600); }
.form-status a { color: inherit; }
.hp { position: absolute; left: -9999px; }
.map-card { border-radius: var(--r-xl); overflow: hidden; background: var(--tint); height: 440px; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span, .hero-card { transform: none; opacity: 1; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header.menu-open .nav-bar { background: rgba(255,255,255,.06) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important; }

/* ==========================================================
   Motion layer (v2.1)
   ========================================================== */
/* page enter / leave */
body { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { animation: pageOut .28s ease forwards; }
@keyframes pageOut { to { opacity: 0; } }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 600; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* nav entrance */
.nav-bar { animation: navIn .9s var(--ease) both .1s; }
@keyframes navIn { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* split headings: words rise in */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-words.in .w > span { transform: none; }

/* image wipe reveal */
/* the clip sits on the image, not the observed box, so IntersectionObserver still sees the target */
.js .img-reveal > img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); transition-delay: inherit; }
.js .img-reveal.in > img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .img-reveal.in:hover img { transform: scale(1.05); transition-duration: .8s; }

/* spotlight that follows the pointer on cards */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }
.stat.spot::before, .eq.spot::before, .c-tile.spot::before, .t-item.spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(227,27,35,.07), transparent 50%); }

/* cards lift */
.stat, .eq, .t-item, .c-tile { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .2s; }
.stat:hover, .eq:hover, .t-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,32,43,.08); }

/* hero parallax wrappers */
.hero-bg, .p-hero .bg { will-change: transform; }
.p-hero .bg img { animation: heroZoom 2.4s var(--ease) both; transform: scale(1.06); }

/* process line fills on scroll */
.steps { position: relative; padding-left: 26px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.steps::before { background: rgba(255,255,255,.1); }
.steps::after { background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { transition: border-color .4s, background .4s; }
.step.lit { border-color: rgba(227,27,35,.45); background: rgba(227,27,35,.06); }
.step .n { transition: transform .5s var(--ease); }
.step.lit .n { transform: scale(1.08); }
@media (max-width: 480px) { .steps { padding-left: 18px; } }

/* hero card float */
.hero-card .thumbs img { transition: transform .4s var(--ease), margin .4s var(--ease); }
.hero-card:hover .thumbs img { margin-left: -4px; }
.hero-card:hover .thumbs img:first-child { margin-left: 0; }

/* ---------- Bento tiles: refined ---------- */
.tile .idx { font-size: .85rem; font-variant-numeric: tabular-nums; opacity: .7; margin-bottom: 10px; display: block; letter-spacing: .02em; }
.tile .more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .5s var(--ease), opacity .35s, transform .5s var(--ease); }
.tile .more span { font-size: .8rem; padding: 5px 10px; border-radius: var(--pill); background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile:hover .more, .tile:focus-visible .more { max-height: 80px; opacity: 1; transform: none; }
.tile--img::after { transition: background .5s var(--ease); }
.tile--img:hover::after { background: linear-gradient(0deg, rgba(14,22,30,.92) 0%, rgba(14,22,30,.35) 60%, rgba(14,22,30,.12) 100%); }
@media (hover: none) { .tile .more { max-height: 80px; opacity: 1; transform: none; } }

/* ---------- Carousel cards: refined ---------- */
.p-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,22,30,.55), transparent 45%); opacity: 0; transition: opacity .4s; }
.p-card:hover .ph::after { opacity: 1; }
.p-card .view {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -40%) scale(.9); opacity: 0;
  padding: 12px 20px; border-radius: var(--pill); background: rgba(255,255,255,.18); color: #fff; font-weight: 500; font-size: .92rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  transition: opacity .35s, transform .45s var(--ease); white-space: nowrap;
}
.p-card:hover .view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.p-card .ph .cnt { z-index: 2; }
.p-card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.p-card .meta .no { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; flex: none; }
.p-card .client { color: var(--ink-3); font-size: .88rem; margin-top: 2px; }
.carousel { cursor: grab; }
.carousel.dragging { cursor: grabbing; }

/* ---------- Services page cards: refined ---------- */
.svc-card:nth-child(even) .media { order: 2; }
@media (max-width: 1100px) { .svc-card:nth-child(even) .media { order: 0; } }
.svc-card .media .cap { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.svc-card .media img { transition: transform 1.2s var(--ease); }
.svc-card:hover .media img { transform: scale(1.04); }
.svc-card .num { display: flex; align-items: center; gap: 12px; }
.svc-card .num b { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.05em; color: var(--red); line-height: 1; }
.tags li { display: inline-flex; align-items: center; gap: 7px; }
.tags li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; flex: none; }
.svc-nav .bar { height: 3px; border-radius: 3px; background: var(--line); margin: 14px 16px 0; overflow: hidden; }
.svc-nav .bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease); }

/* ---------- Projects grid: refined ---------- */
.m-card { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.m-card.is-out { opacity: 0; transform: scale(.96); }
.m-card .chip.cnt { left: auto; top: 14px; right: 14px; z-index: 1; }
.m-card .client { display: block; margin-top: 2px; }
.m-card .info { transition: transform .5s var(--ease); }
.m-card:hover .info { transform: translateY(-4px); }

/* lightbox transitions */
.lightbox.is-open { animation: lbIn .4s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage img { transition: opacity .3s ease, transform .5s var(--ease); }
.lb-stage img.swap { opacity: 0; transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .split-words .w > span { transform: none !important; }
  .js .img-reveal > img { clip-path: none !important; transform: none !important; }
  .steps::after { transform: scaleY(1); }
  body { animation: none; }
}
