/* ============================================================
   MD NAIM ISLAM — Portfolio
   Global design system. Locked on the Home Page build.
   Every page inherits from this file.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Base surfaces */
  --bg:            #0B0D10;
  --bg-deep:       #07090B;
  --surface:       #12151A;
  --surface-2:     #171C23;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  /* Accents */
  --orange:        #FF6A00;
  --accent-a-rgb: 255, 106, 0;
  --accent-a-soft-rgb: 255, 140, 58;
  --orange-soft:   #FF8C3A;
  --blue:          #3BA9FF;
  --accent-b-rgb: 59, 169, 255;
  --accent-b-soft-rgb: 111, 196, 255;
  --blue-soft:     #6FC4FF;

  /* Text */
  --text:          #EDF1F6;
  --text-muted:    #9BA5B4;
  --text-dim:      #6D7787;

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

  /* Rhythm */
  --shell:         1240px;
  --gutter:        28px;
  --section-pad:   130px;
  --r-sm:          10px;
  --r-md:          16px;
  --r-lg:          24px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.85, 0.28, 1);
  --ease-soft:     cubic-bezier(0.4, 0, 0.2, 1);

  /* Depth */
  --shadow-lift:   0 26px 60px -24px rgba(0, 0, 0, 0.85);
  --glow-orange:   0 0 60px -12px rgba(var(--accent-a-rgb), 0.55);
  --glow-blue:     0 0 60px -12px rgba(var(--accent-b-rgb), 0.5);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--orange); color: #0B0D10; }

/* ---------- 3. Layout helpers ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: 96px; }

.section-head { max-width: 720px; margin-bottom: 58px; }

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin: 0;
  max-width: 62ch;
}

.rule {
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  margin-bottom: 26px;
}

/* ---------- 4. Ambient background (soft blurred drifting glow) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(var(--accent-a-rgb), 0.10), transparent 62%),
    radial-gradient(900px 560px at 8% 104%, rgba(var(--accent-b-rgb), 0.10), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.4;
  will-change: transform, opacity;
}

.orb--1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(var(--accent-a-rgb), 0.55), transparent 68%);
  top: -14%; left: 56%;
  animation: drift-a 30s var(--ease-soft) infinite alternate,
             pulse 11s ease-in-out infinite;
}

.orb--2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(var(--accent-b-rgb), 0.5), transparent 68%);
  top: 44%; left: -12%;
  animation: drift-b 36s var(--ease-soft) infinite alternate,
             pulse 14s ease-in-out infinite 2s;
}

.orb--3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(var(--accent-a-soft-rgb), 0.34), transparent 70%);
  top: 122%; left: 62%;
  animation: drift-c 42s var(--ease-soft) infinite alternate,
             pulse 16s ease-in-out infinite 1s;
}

.orb--4 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(var(--accent-b-rgb), 0.34), transparent 70%);
  top: 196%; left: 4%;
  animation: drift-b 38s var(--ease-soft) infinite alternate-reverse,
             pulse 13s ease-in-out infinite 3s;
}

@keyframes drift-a { to { transform: translate3d(-140px, 120px, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(160px, -110px, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-110px, -90px, 0) scale(1.16); } }
@keyframes pulse   { 50% { opacity: 0.72; } }

/* Drifting dust particles */
.dust {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.6px);
  opacity: 0;
  animation: float-up linear infinite;
}
.dust.is-orange { background: rgba(var(--accent-a-soft-rgb), 0.85); }
.dust.is-blue   { background: rgba(var(--accent-b-soft-rgb), 0.85); }

@keyframes float-up {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) scale(0.7); }
  14%  { opacity: 0.7; }
  84%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translateY(-190px) translateX(34px) scale(1.25); }
}

/* Faint technical grid, static */
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 20px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  padding-block: 12px;
  background: rgba(9, 11, 14, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0B0D10;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft) 45%, var(--blue));
  box-shadow: var(--glow-orange);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand__role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta {
  margin-left: 10px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0B0D10;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--glow-orange); }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.36s var(--ease), opacity 0.22s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger span:nth-child(3) { top: 29px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn svg { flex-shrink: 0; }

.btn--primary {
  color: #0B0D10;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  box-shadow: 0 14px 34px -16px rgba(var(--accent-a-rgb), 0.9);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(var(--accent-a-rgb), 0.95), var(--glow-orange);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-b-rgb), 0.6);
  background: rgba(var(--accent-b-rgb), 0.09);
  box-shadow: var(--glow-blue);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 150px 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 72px;
  align-items: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 17px 8px 13px;
  border: 1px solid rgba(var(--accent-b-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--accent-b-rgb), 0.07);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-soft);
  margin-bottom: 30px;
}

.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(var(--accent-b-rgb), 0.6);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-b-rgb), 0); }
}

.hero__name {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  font-weight: 600;
  color: var(--orange-soft);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 12px;
}

.hero__note {
  font-size: 0.97rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 38px;
}

.chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.032);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.chip:hover {
  border-color: rgba(var(--accent-a-rgb), 0.5);
  color: var(--text);
  transform: translateY(-2px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero portrait */
.hero__media { 
  position: relative; 
  justify-self: center; 
  width: 100%;
  max-width: 410px;
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(150deg, var(--orange), transparent 42%, transparent 60%, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Soft glow halo behind the portrait */
.portrait__halo {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(var(--accent-a-rgb), 0.34), transparent 58%),
    radial-gradient(circle at 70% 76%, rgba(var(--accent-b-rgb), 0.32), transparent 58%);
  filter: blur(58px);
  z-index: -1;
  animation: pulse 9s ease-in-out infinite;
}

/* Portrait load reveal — soft wipe */
.portrait__veil {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 2;
  transform-origin: bottom;
}
.is-ready .portrait__veil {
  animation: wipe-away 1.25s var(--ease) 0.35s forwards;
}
@keyframes wipe-away {
  to { transform: scaleY(0); }
}

.portrait img { opacity: 0; transform: scale(1.07); }
.is-ready .portrait img {
  animation: portrait-settle 1.7s var(--ease) 0.4s forwards;
}
@keyframes portrait-settle {
  to { opacity: 1; transform: scale(1); }
}

/* Floating credential badge */
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
  opacity: 0;
}
.is-ready .badge { animation: badge-in 0.9s var(--ease) forwards; }
.badge--gold  { right: -26px; top: 13%;  animation-delay: 1.15s; }
.badge--natl  { left: -34px;  bottom: 16%; animation-delay: 1.35s; }

@keyframes badge-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.badge__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.badge--gold .badge__icon { background: rgba(var(--accent-a-rgb), 0.16); color: var(--orange-soft); }
.badge--natl .badge__icon { background: rgba(var(--accent-b-rgb), 0.16); color: var(--blue); }

.badge__value {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
}
.badge__label {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ---------- 8. Stats ---------- */
.stats { padding-block: 10px 0; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  position: relative;
  padding: 44px 30px;
  background: rgba(16, 19, 25, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease);
}
.stat:hover { background: rgba(23, 28, 35, 0.94); }

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--orange) 8%, var(--orange-soft) 44%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.stat__label {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- 9. Services teaser ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service {
  position: relative;
  padding: 34px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.9), rgba(13, 16, 20, 0.86));
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  top: -55%; right: -35%;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--_tint, rgba(var(--accent-a-rgb), 0.3)), transparent 68%);
  filter: blur(46px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.service:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.service:hover::before { opacity: 1; }

.service--blue { --_tint: rgba(var(--accent-b-rgb), 0.32); }

.service__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: rgba(var(--accent-a-rgb), 0.1);
  color: var(--orange-soft);
  transition: transform 0.45s var(--ease);
}
.service--blue .service__icon { background: rgba(var(--accent-b-rgb), 0.1); color: var(--blue); }
.service:hover .service__icon { transform: translateY(-3px) scale(1.06); }

.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { margin: 0; font-size: 0.94rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- 10. Featured work ---------- */
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}
.work__head .section-head { margin-bottom: 0; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease);
}

.work-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.85) brightness(0.92);
}

.work-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 11, 0.94) 4%, rgba(7, 9, 11, 0.45) 42%, transparent 74%);
  transition: opacity 0.5s var(--ease);
}

.work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  transform: translateY(16px);
  transition: transform 0.55s var(--ease);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.work-card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease) 0.06s, transform 0.45s var(--ease) 0.06s;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-a-rgb), 0.42);
  box-shadow: var(--shadow-lift), 0 0 44px -20px rgba(var(--accent-a-rgb), 0.7);
}
.work-card:hover .work-card__img { transform: scale(1.11); filter: saturate(1.06) brightness(1); }
.work-card:hover .work-card__body { transform: translateY(0); }
.work-card:hover .work-card__meta { opacity: 1; transform: translateY(0); }

.work__foot { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- 11. Testimonials ---------- */
.quotes { position: relative; }

.quotes__viewport { overflow: hidden; border-radius: var(--r-lg); }

.quotes__track {
  display: flex;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}

.quote {
  flex: 0 0 100%;
  padding: 52px clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(23, 28, 35, 0.9), rgba(12, 15, 19, 0.9));
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.6;
  color: var(--orange);
  opacity: 0.42;
  margin-bottom: 22px;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  margin: 0 0 30px;
  max-width: 68ch;
}

.quote__who { display: flex; align-items: center; gap: 15px; }

.quote__avatar {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.93rem;
  color: #0B0D10;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  flex-shrink: 0;
}

.quote__name { font-family: var(--font-display); font-weight: 600; font-size: 0.99rem; }
.quote__org  { font-size: 0.85rem; color: var(--text-dim); }

.quotes__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.quotes__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.quotes__arrow:hover {
  background: rgba(var(--accent-b-rgb), 0.12);
  border-color: rgba(var(--accent-b-rgb), 0.5);
  transform: translateY(-2px);
}

.quotes__dots { display: flex; gap: 9px; }

.quotes__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.quotes__dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

/* ---------- 12. Organizations marquee ---------- */
.orgs { padding-block: 84px; border-block: 1px solid var(--line); }

.orgs__label {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__group { display: flex; flex-shrink: 0; }

.org {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  margin-right: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.org:hover { border-color: rgba(var(--accent-a-rgb), 0.42); background: rgba(var(--accent-a-rgb), 0.06); }

.org__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: #0B0D10;
  flex-shrink: 0;
}
.org:nth-child(odd)  .org__mark { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.org:nth-child(even) .org__mark { background: linear-gradient(135deg, var(--blue), var(--blue-soft)); }

.org__name { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; }
.org__kind { font-size: 0.76rem; color: var(--text-dim); }

/* ---------- 13. Closing CTA ---------- */
.cta__panel {
  position: relative;
  padding: clamp(48px, 7vw, 86px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(760px 400px at 14% 6%, rgba(var(--accent-a-rgb), 0.15), transparent 62%),
    radial-gradient(700px 400px at 88% 96%, rgba(var(--accent-b-rgb), 0.15), transparent 62%),
    linear-gradient(160deg, rgba(22, 26, 33, 0.94), rgba(11, 13, 17, 0.94));
  overflow: hidden;
  text-align: center;
}

.cta__panel h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin-bottom: 20px;
}

.cta__panel p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 38px;
  font-size: 1.03rem;
}

.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 14. Footer ---------- */
.footer { padding-block: 76px 34px; border-top: 1px solid var(--line); margin-top: 120px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer__about p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 44ch;
  margin: 20px 0 0;
}

.footer h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer__links li { margin-bottom: 11px; }
.footer__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.28s var(--ease), padding-left 0.28s var(--ease);
}
.footer__links a:hover { color: var(--orange-soft); padding-left: 5px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  transition: transform 0.32s var(--ease), color 0.32s var(--ease),
              border-color 0.32s var(--ease), background 0.32s var(--ease);
}
.social:hover {
  transform: translateY(-4px);
  color: var(--text);
  border-color: rgba(var(--accent-b-rgb), 0.55);
  background: rgba(var(--accent-b-rgb), 0.1);
}

.footer__contact p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer__bar a { color: var(--text-muted); }
.footer__bar a:hover { color: var(--orange-soft); }

/* ---------- 15. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.14s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.23s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.32s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.41s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.50s; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 0.59s; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 0.68s; }
[data-reveal-group].is-visible > *:nth-child(9) { transition-delay: 0.77s; }
[data-reveal-group].is-visible > *:nth-child(10) { transition-delay: 0.86s; }
[data-reveal-group].is-visible > *:nth-child(11) { transition-delay: 0.95s; }
[data-reveal-group].is-visible > *:nth-child(12) { transition-delay: 1.04s; }

/* Hero entrance */
.hero__copy > * { opacity: 0; transform: translateY(24px); }
.is-ready .hero__copy > * { animation: rise 1s var(--ease) forwards; }
.is-ready .hero__copy > *:nth-child(1) { animation-delay: 0.12s; }
.is-ready .hero__copy > *:nth-child(2) { animation-delay: 0.22s; }
.is-ready .hero__copy > *:nth-child(3) { animation-delay: 0.32s; }
.is-ready .hero__copy > *:nth-child(4) { animation-delay: 0.42s; }
.is-ready .hero__copy > *:nth-child(5) { animation-delay: 0.52s; }
.is-ready .hero__copy > *:nth-child(6) { animation-delay: 0.62s; }
.is-ready .hero__copy > *:nth-child(7) { animation-delay: 0.72s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 16. Toast (for pages not built yet) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 24px);
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(14, 17, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lift);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 17b. Page header (non-home pages) ---------- */
.page-head {
  padding-block: 152px 30px;
}

.page-head__eyebrow {
  margin-bottom: 26px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  margin-bottom: 20px;
}

.page-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0;
}

/* ---------- 17c. Portfolio: filter tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}

.tab {
  padding: 12px 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.032);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.32s var(--ease), background 0.32s var(--ease),
              border-color 0.32s var(--ease), box-shadow 0.32s var(--ease),
              transform 0.32s var(--ease);
}

.tab:hover:not(.is-active) {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.tab.is-active {
  color: #0B0D10;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft) 48%, var(--blue));
  box-shadow: 0 12px 30px -14px rgba(var(--accent-a-rgb), 0.7);
}

.tab__count {
  display: inline-block;
  margin-left: 7px;
  opacity: 0.72;
  font-weight: 500;
}

/* ---------- 17d. Portfolio: card grid ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(12, 15, 19, 0.92));
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-a-rgb), 0.4);
  box-shadow: var(--shadow-lift), 0 0 46px -22px rgba(var(--accent-a-rgb), 0.65);
}

.portfolio-card[data-category="iot"]:hover,
.portfolio-card[data-category="iot"]:focus-visible {
  border-color: rgba(var(--accent-b-rgb), 0.45);
  box-shadow: var(--shadow-lift), 0 0 46px -22px rgba(var(--accent-b-rgb), 0.65);
}

/* Filter transition state — layered on top of the reveal system */
[data-reveal-group].is-visible > .portfolio-card.is-filtered-out {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.09);
  filter: saturate(1.05) brightness(1);
}

.portfolio-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.portfolio-card__tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--orange);
}
.portfolio-card[data-category="iot"] .portfolio-card__tag::before { background: var(--blue); }
.portfolio-card[data-category="smart"] .portfolio-card__tag::before {
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.portfolio-card__body { padding: 22px 22px 25px; }

.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 9px;
}

.portfolio-card__desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.portfolio-card__expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange-soft);
}
.portfolio-card[data-category="iot"] .portfolio-card__expand { color: var(--blue-soft); }

.portfolio-card__expand svg { transition: transform 0.35s var(--ease); }
.portfolio-card:hover .portfolio-card__expand svg { transform: translateX(4px); }

.portfolio__empty {
  display: none;
  padding: 70px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.98rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.portfolio__empty.is-shown { display: block; }

/* ---------- 17e. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox__panel {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 86vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(24, 29, 37, 0.98), rgba(10, 12, 16, 0.98));
  box-shadow: var(--shadow-lift);
  transform: translateY(26px) scale(0.97);
  transition: transform 0.5s var(--ease);
}
.lightbox.is-open .lightbox__panel { transform: translateY(0) scale(1); }

.lightbox__media {
  position: relative;
  min-height: 260px;
  background: var(--surface);
}
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox__close:hover {
  background: rgba(var(--accent-a-rgb), 0.16);
  border-color: rgba(var(--accent-a-rgb), 0.5);
  transform: rotate(90deg);
}

.lightbox__body {
  padding: clamp(26px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lightbox__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.lightbox__body[data-category="iot"] .lightbox__tag::before { background: var(--blue); }
.lightbox__body[data-category="smart"] .lightbox__tag::before { background: linear-gradient(135deg, var(--orange), var(--blue)); }

.lightbox__title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 16px;
}

.lightbox__desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0 0 26px;
}

.lightbox__note {
  font-size: 0.83rem;
  color: var(--text-dim);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- 17f. Portfolio responsive ---------- */
@media (max-width: 1080px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__panel { grid-template-columns: 1fr; }
  .lightbox__media { min-height: 220px; max-height: 320px; }
}

@media (max-width: 620px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .tabs { gap: 8px; }
  .tab { padding: 10px 18px; font-size: 0.86rem; }
  .page-head { padding-block: 128px 24px; }
}

/* ---------- 17g. Portfolio reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-card__media img,
  .lightbox,
  .lightbox__panel,
  .lightbox__close {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 17h. Portfolio misc ---------- */
body.no-scroll { overflow: hidden; }
.portfolio-card.is-hidden { display: none; }
.portfolio-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.portfolio-card__tag { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.lightbox__media img { background: var(--bg-deep); }
.portfolio__grid .portfolio-card__body { min-height: 148px; display: flex; flex-direction: column; }

.portfolio-card[data-category="smart"]:hover,
.portfolio-card[data-category="smart"]:focus-visible {
  border-color: rgba(255, 138, 61, 0.4);
  box-shadow: var(--shadow-lift), 0 0 50px -22px rgba(var(--accent-a-rgb), 0.45),
              0 0 50px -22px rgba(var(--accent-b-rgb), 0.45);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 22px;
  transition: color 0.28s var(--ease), gap 0.28s var(--ease);
}
.back-link:hover { color: var(--orange-soft); gap: 11px; }

.portfolio__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 30px 0 46px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.portfolio__meta strong { color: var(--text); font-family: var(--font-display); }

.legend { display: flex; align-items: center; gap: 8px; }
.legend span.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend .dot--robotics { background: var(--orange); }
.legend .dot--iot { background: var(--blue); }
.legend .dot--smart { background: linear-gradient(135deg, var(--orange), var(--blue)); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--orange);
  color: #0B0D10;
  font-weight: 700;
  border-radius: 10px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

.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;
}

@media (max-width: 480px) {
  .page-head .chip { font-size: 0.78rem; padding: 6px 12px; }
}

/* ---------- 19. About page: narrative ---------- */
.narrative__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}

.narrative__story p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.85;
  margin: 0 0 24px;
  max-width: 66ch;
}

.narrative__story p:last-child { margin-bottom: 0; }

.narrative__pull {
  margin: 38px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--orange), var(--blue)) 1;
}

.narrative__pull p {
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 2vw, 1.34rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 52ch;
}

.narrative__aside {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facts-card,
.abilities-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(12, 15, 19, 0.9));
}

.facts-card h3,
.abilities-card h3 {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.facts-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.facts-card__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 5px;
}

.facts-card__label {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.abilities-card ul { display: flex; flex-direction: column; gap: 15px; }

.abilities-card li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.abilities-card__icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(var(--accent-a-rgb), 0.1);
  color: var(--orange-soft);
}
.abilities-card li:nth-child(2n) .abilities-card__icon { background: rgba(var(--accent-b-rgb), 0.1); color: var(--blue); }

.abilities-card li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- 20. About page: timeline ---------- */
.timeline { position: relative; padding-top: 6px; }

.timeline__line {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--accent-a-rgb), 0.55), rgba(var(--accent-b-rgb), 0.55));
  opacity: 0.4;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding-bottom: 60px;
}

.timeline__item--left { left: 0; padding-right: 54px; text-align: right; }
.timeline__item--right { left: 50%; padding-left: 54px; text-align: left; }

.timeline__dot {
  position: absolute;
  top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  box-shadow: 0 0 0 5px var(--bg), 0 0 22px -3px rgba(var(--accent-a-rgb), 0.75);
}
.timeline__item--left .timeline__dot { right: -8px; }
.timeline__item--right .timeline__dot { left: -8px; }

.timeline__card {
  display: inline-block;
  text-align: left;
  max-width: 420px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(12, 15, 19, 0.9));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timeline__item--left .timeline__card { margin-left: auto; }

.timeline__card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.timeline__index {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--orange-soft);
  margin-bottom: 10px;
}

.timeline__card h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.timeline__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Alternating reveal direction for timeline entries */
[data-reveal-x] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal-x="left"] { transform: translateX(-36px); }
[data-reveal-x="right"] { transform: translateX(36px); }
[data-reveal-x].is-visible { opacity: 1; transform: none; }

/* ---------- 21. About page: skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 52px;
}

.skill__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.skill__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
}

.skill__percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange-soft);
  flex-shrink: 0;
}

.skill__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transition: width 1.6s var(--ease);
}
.skill__fill.is-filled { width: var(--target); }

/* ---------- 22. About page responsive ---------- */
@media (max-width: 980px) {
  .narrative__grid { grid-template-columns: 1fr; }
  .narrative__aside { position: static; }
  .facts-card__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 780px) {
  .timeline__line { left: 18px; }
  .timeline__item,
  .timeline__item--left,
  .timeline__item--right {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 46px;
    padding-right: 0;
  }
  .timeline__item--left .timeline__card { margin-left: 0; }
  .timeline__item--left .timeline__dot,
  .timeline__item--right .timeline__dot { left: 11px; right: auto; }
  .timeline__card { max-width: none; }
}

@media (max-width: 620px) {
  .skills__grid { grid-template-columns: 1fr; }
  .facts-card__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-x] { opacity: 1 !important; transform: none !important; }
  .skill__fill { transition-duration: 0.01ms !important; }
}

/* ---------- 23. Services page ---------- */
.services-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-detail {
  position: relative;
  padding: 42px 38px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(11, 14, 18, 0.9));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service-detail::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--_tint, rgba(var(--accent-a-rgb), 0.28)), transparent 68%);
  filter: blur(56px);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.service-detail--blue { --_tint: rgba(var(--accent-b-rgb), 0.3); }

.service-detail:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.service-detail:hover::before { opacity: 1; }

.service-detail__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: rgba(var(--accent-a-rgb), 0.1);
  color: var(--orange-soft);
  transition: transform 0.5s var(--ease);
}
.service-detail--blue .service-detail__icon { background: rgba(var(--accent-b-rgb), 0.1); color: var(--blue); }
.service-detail:hover .service-detail__icon { transform: translateY(-4px) scale(1.05); }

.service-detail h3 {
  font-size: 1.32rem;
  margin-bottom: 14px;
}

.service-detail p {
  margin: 0 0 22px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 52ch;
}

.service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 24. Services page responsive ---------- */
@media (max-width: 900px) {
  .services-detail__grid { grid-template-columns: 1fr; }
  .service-detail { padding: 34px 28px 32px; }
}

/* ---------- 25. Achievements page ---------- */
.achievements {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.achievements__rail {
  position: absolute;
  left: 35px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--accent-a-rgb), 0.55), rgba(var(--accent-b-rgb), 0.55));
  opacity: 0.35;
}

.achievement-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  padding: 32px 30px 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.9), rgba(11, 14, 18, 0.9));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.achievement-card__icon-col {
  width: 70px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.achievement-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 14, 0.9);
  color: var(--orange-soft);
  box-shadow: 0 0 0 6px var(--bg);
  flex-shrink: 0;
}
.achievement-card:nth-child(even) .achievement-card__icon { color: var(--blue); }

.achievement-card__body { flex: 1; min-width: 0; }

.achievement-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.achievement-card__meta .chip {
  font-size: 0.78rem;
  padding: 6px 13px;
}

.achievement-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.achievement-card__org {
  display: block;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: -6px 0 14px;
}

.achievement-card p.achievement-card__desc {
  margin: 0 0 16px;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 66ch;
}

.achievement-card__why {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 66ch;
}
.achievement-card__why strong { color: var(--text); font-weight: 600; }

/* ---------- 26. Achievements responsive ---------- */
@media (max-width: 680px) {
  .achievements__rail { left: 27px; }
  .achievement-card { gap: 18px; padding: 26px 22px 26px 0; }
  .achievement-card__icon-col { width: 54px; }
  .achievement-card__icon { width: 44px; height: 44px; border-radius: 13px; }
}

/* ---------- 27. Contact page ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 52px;
  align-items: start;
}

.contact__lede {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: -6px 0 30px;
}

.form-card {
  padding: 38px 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(11, 14, 18, 0.9));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { margin-bottom: 22px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 9px;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239BA5B4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--accent-a-rgb), 0.55),
              0 0 30px -8px rgba(var(--accent-a-rgb), 0.55);
}

.form-row .field:nth-child(2) input:focus,
.form-row .field:nth-child(2) select:focus {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--accent-b-rgb), 0.55),
              0 0 30px -8px rgba(var(--accent-b-rgb), 0.55);
}

.form-card__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.form-card__note {
  font-size: 0.83rem;
  color: var(--text-dim);
  margin: 14px 0 0;
  line-height: 1.6;
}

.form-status {
  font-size: 0.88rem;
  color: var(--blue-soft);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-status.is-shown { opacity: 1; transform: none; }

/* Contact aside */
.contact__aside {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(12, 15, 19, 0.9));
}

.contact-card h3 {
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease),
              background 0.32s var(--ease);
}
.contact-tile:last-child { margin-bottom: 0; }

.contact-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-a-rgb), 0.5);
  background: rgba(var(--accent-a-rgb), 0.07);
}
.contact-tile--whatsapp:hover {
  border-color: rgba(var(--accent-b-rgb), 0.5);
  background: rgba(var(--accent-b-rgb), 0.07);
}

.contact-tile__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-a-rgb), 0.12);
  color: var(--orange-soft);
}
.contact-tile--whatsapp .contact-tile__icon { background: rgba(var(--accent-b-rgb), 0.12); color: var(--blue); }

.contact-tile__text { min-width: 0; }

.contact-tile__label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-tile__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-card .socials { margin-top: 4px; }

/* ---------- 28. Contact page responsive ---------- */
@media (max-width: 980px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 24px 32px; }
}

/* ---------- 25. Achievements page ---------- */
.accolades {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.accolades::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--accent-a-rgb), 0.55), rgba(var(--accent-b-rgb), 0.55));
  opacity: 0.35;
}

.accolade {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.accolade__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 14, 0.9);
  color: var(--orange-soft);
  box-shadow: 0 0 0 6px var(--bg);
}

.accolade:nth-child(even) .accolade__icon { color: var(--blue); }

.accolade__card {
  flex: 1;
  min-width: 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(11, 14, 18, 0.9));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.accolade__card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.accolade__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.accolade__meta .chip--muted {
  color: var(--text-dim);
  font-style: italic;
}

.accolade__card h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.accolade__card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.68;
  max-width: 62ch;
}

/* ---------- 26. Achievements page responsive ---------- */
@media (max-width: 620px) {
  .accolades::before { left: 25px; }
  .accolade { gap: 18px; }
  .accolade__icon { width: 52px; height: 52px; border-radius: 14px; }
  .accolade__card { padding: 22px 20px; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --section-pad: 104px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__copy { max-width: 640px; }
  .hero__media { justify-self: start; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 880px) {
  .nav__burger { display: block; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 96px 24px 30px;
    background: rgba(9, 11, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-104%);
    transition: transform 0.5s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 16px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; text-align: center; justify-content: center; }

  .work__head { flex-direction: column; align-items: flex-start; }
  .badge--gold { right: -10px; }
  .badge--natl { left: -10px; }
}

@media (max-width: 620px) {
  :root { --section-pad: 82px; --gutter: 20px; }
  body { font-size: 15.8px; }
  .hero { padding-block: 124px 70px; }
  .stats__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__role { display: none; }
  .quote { padding: 36px 24px; }
  .badge { transform: scale(0.88); }
  .badge--gold { right: -6px; }
  .badge--natl { left: -6px; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-group] > *, .hero__copy > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .portrait img { opacity: 1; transform: none; }
  .portrait__veil { display: none; }
  .badge { opacity: 1; }
}


/* ---------- Admin-connected dynamic content additions ---------- */
.service-detail__price {
  margin: 18px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 999px;
  border: 1px solid rgba(var(--accent-a-rgb), .25);
  background: rgba(var(--accent-a-rgb), .07);
  color: var(--orange-soft); font-weight: 700; font-size: .84rem;
}
.achievement-card__image { width: 100%; max-width: 240px; border-radius: var(--r-md); margin-top: 16px; border: 1px solid var(--line); }
.form-card__note.is-backend { color: var(--text-dim); }

/* ---------- 18. Media Coverage page ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(23, 28, 35, 0.92), rgba(12, 15, 19, 0.92));
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.media-card:nth-child(even) { }

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-a-rgb), 0.4);
  box-shadow: var(--shadow-lift), 0 0 46px -22px rgba(var(--accent-a-rgb), 0.65);
}

.media-card:nth-child(3n+2):hover,
.media-card:nth-child(3n+2):focus-within {
  border-color: rgba(var(--accent-b-rgb), 0.45);
  box-shadow: var(--shadow-lift), 0 0 46px -22px rgba(var(--accent-b-rgb), 0.65);
}

.media-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.media-card__logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.media-card__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--orange-soft);
}

.media-card__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.media-card__brand strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.media-card__date {
  width: fit-content;
  padding: 3px 11px;
  font-size: 0.72rem;
}

.media-card__headline {
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

.media-card__desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.media-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-soft);
  align-self: flex-start;
}

.media-card:nth-child(3n+2) .media-card__link { color: var(--blue-soft); }

.media-card__link svg { transition: transform 0.35s var(--ease); }
.media-card:hover .media-card__link svg { transform: translate(3px, -3px); }

.media-empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--text-dim);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .media-card { transition-duration: 0.01ms !important; }
}
