/* =========================================================
   Jhon Ruel Dalagan — Portfolio
   Fixed-left-sidebar layout (GHL-inspired navigation)
   ========================================================= */

:root {
  --orange: #FF650F;
  --orange-hover: #FF7A2E;
  --bg: #0F0F11;
  --bg-alt: #151518;
  --surface: #1C1C20;
  --surface-hover: #232328;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --white: #FFFFFF;
  --text: #B4B4BC;
  --muted: #8A8A94;
  --glow: rgba(255, 101, 15, 0.15);
  --tint: rgba(255, 101, 15, 0.10);

  --sidebar-w: 248px;
  --mobile-bar-h: 64px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Plus Jakarta Sans", Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

/* Subtle grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font: 600 15px/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow), 0 0 0 1px rgba(255,101,15,.35); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--white); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: rgba(255,101,15,.5); color: var(--white); transform: translateY(-2px); background: var(--tint); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  /* Frosted glass: translucent tint + blur of the glows behind it */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 45%, rgba(255,255,255,0.03) 100%),
    rgba(20, 20, 24, 0.42);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    10px 0 40px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
/* Soft specular sheen across the top of the glass */
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 22%, transparent 40%),
    radial-gradient(120% 40% at 0% 100%, rgba(255,101,15,0.06), transparent 70%);
}

/* Fixed ambient glows behind the sidebar, giving the glass something to frost */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(260px 260px at 170px 22%, rgba(255,101,15,0.20), transparent 70%),
    radial-gradient(220px 300px at 40px 72%, rgba(255,101,15,0.12), transparent 70%),
    radial-gradient(200px 200px at 230px 92%, rgba(255,255,255,0.05), transparent 70%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.brand-logo { height: 30px; width: auto; max-width: 100%; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px var(--glow);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { color: var(--white); font-weight: 700; font-size: 15px; }
.brand-role { color: var(--muted); font-size: 12px; font-weight: 500; }

.nav-label {
  margin: 6px 12px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}

.side-nav { display: flex; flex-direction: column; gap: 3px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-link .ico { width: 19px; height: 19px; color: var(--muted); transition: color .25s var(--ease); }
.nav-link::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
  transform: translateY(-50%);
  transition: height .3s var(--ease);
}
.nav-link:hover { background: rgba(255,101,15,0.06); color: var(--white); }
.nav-link:hover .ico { color: var(--orange); }
.nav-link.active { background: var(--tint); color: var(--orange); font-weight: 600; }
.nav-link.active .ico { color: var(--orange); }
.nav-link.active::before { height: 22px; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-bottom .btn { padding: 13px 16px; font-size: 14px; }

.side-social { display: flex; justify-content: center; gap: 8px; }
.side-social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.side-social .ico { width: 18px; height: 18px; stroke-width: 1.6; shape-rendering: geometricPrecision; }
/* solid brand glyphs read heavier than outline icons, so trim them slightly to balance */
.side-social a[aria-label^="LinkedIn"] .ico, .side-social a[aria-label^="WhatsApp"] .ico { width: 16px; height: 16px; }
.side-social a:hover { color: var(--orange); border-color: rgba(255,101,15,.4); background: var(--tint); }

.availability {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.availability .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3DDC84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.15);
  animation: dot-breathe 2.4s ease-in-out infinite;
}
/* Slow "breathing" glow: the halo swells and softens, the dot brightens */
@keyframes dot-breathe {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.18), 0 0 4px rgba(61, 220, 132, 0.35);
    opacity: .85;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.10), 0 0 12px rgba(61, 220, 132, 0.75);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .availability .dot { animation: none; } /* steady glow instead */
}

.mobile-bar, .nav-backdrop { display: none; }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.main { margin-left: var(--sidebar-w); min-width: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 14px; }
.section-head p { font-size: 17px; margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,101,15,.28);
  background: var(--surface-hover);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,101,15,.06), 0 12px 40px rgba(255,101,15,.07);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--orange);
  border: 1px solid rgba(255,101,15,.18);
  flex: none;
}
.icon-box .ico { width: 22px; height: 22px; }
.icon-box.sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-box.sm .ico { width: 19px; height: 19px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -160px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,101,15,.10), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  position: relative;
}

/* Headline: exactly two fixed lines. Font size scales with the column
   width (container query units), so it shrinks instead of wrapping. */
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-title {
  font-size: min(88px, 12cqi);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .accent { color: var(--orange); }

.hero-sub { font-size: clamp(16px, 1.35vw, 18.5px); max-width: 520px; margin-bottom: 34px; }

.portrait {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, #1E1E23 0%, #141417 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 80px rgba(255,101,15,.10);
  overflow: hidden;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,101,15,.16), transparent 70%);
  pointer-events: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portrait-inner .ico { width: 64px; height: 64px; stroke-width: 1.2; opacity: .55; }
.portrait-hero {
  aspect-ratio: 4 / 5;
  width: 78%;
  max-width: 440px;
  margin-left: auto;
  border-radius: 32px;
  overflow: visible; /* let the cut-out photo break out of the card */
}
.portrait-hero::after { border-radius: inherit; }
/* Sized/positioned relative to the card so the framing holds at every width:
   head rises above the card, laptop extends past the left edge, bottom sits on the card edge */
.portrait .portrait-photo {
  position: absolute;
  right: -12%;
  bottom: 0;
  width: 143%;
  max-width: none;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
/* Small dark shadow along the bottom of the photo */
.portrait-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7%; /* kept below the arms/watch so they aren't darkened */
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 12, 14, 0.6) 50%, rgba(12, 12, 14, 0.92) 100%);
  border-radius: 0 0 32px 32px;
}

/* ---------------- Hero design-editor decorations ----------------
   Sizes use cqi (1cqi = 1% of the card width) and positions use % of the card,
   so everything scales with the portrait. Placement keeps clear of the face
   (~33–66% across, top 30%) and the laptop (left of 36%, below 46%). */
.portrait-hero { container-type: inline-size; }
.hero-deco { position: absolute; inset: 0; z-index: 3; pointer-events: none; --p: 0; }
.deco { position: absolute; will-change: transform, opacity; }
.deco-in { animation: deco-enter .7s var(--ease) both; animation-delay: var(--d, .6s); }
@keyframes deco-enter {
  from { opacity: 0; translate: 0 10px; scale: var(--s0, 1); }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

.glass {
  display: inline-flex;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02)), rgba(24, 24, 28, 0.6);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 26px rgba(0,0,0,0.38);
}

/* A. Selection box (+ E. guides) — upper-left, beside the head, above the laptop */
.deco-select {
  left: -10%; top: 19.2%; /* right of the vertical toolbar, starting a little below its top */
  transform: translate3d(0, calc(var(--p) * -18px), 0);
  opacity: calc(1 - var(--p) * 1.7); /* fully faded about halfway through the hero */
}
.deco-select .deco-in { --d: .75s; --s0: .95; }
.sel-box {
  position: relative;
  display: block;
  width: 30cqi; height: 18cqi;
  border: 1px solid var(--orange);
  background: rgba(255, 101, 15, 0.04);
}
.sel-box i {
  position: absolute;
  width: 6px; height: 6px;
  background: #fff;
  border: 1px solid var(--orange);
}
.sel-box .tl { left: -3.5px; top: -3.5px; }
.sel-box .tr { right: -3.5px; top: -3.5px; }
.sel-box .bl { left: -3.5px; bottom: -3.5px; }
.sel-box .br { right: -3.5px; bottom: -3.5px; }
.sel-size {
  position: absolute;
  left: 50%; top: calc(18cqi + 7px);
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: clamp(8px, 2.7cqi, 11px);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.sel-cursor {
  position: absolute;
  left: calc(30cqi - 4px); top: calc(18cqi - 4px);
  width: clamp(14px, 5.5cqi, 22px); height: auto;
  fill: #fff;
  stroke: #0F0F11;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.guide { position: absolute; display: block; opacity: calc(0.85 - var(--p) * 0.75); }
.guide-v { /* rises from the box's left edge */
  left: 0; bottom: 100%;
  height: 14cqi; width: 0;
  border-left: 1px dashed rgba(255, 101, 15, 0.45);
}
.guide-h { /* runs left from the box's bottom edge */
  right: 100%; top: calc(18cqi - 1px);
  width: 5cqi; height: 0; /* short, stops before the vertical toolbar */
  border-top: 1px dashed rgba(255, 101, 15, 0.45);
}

/* Long dashed guide lines (behind the other decorations), fading out toward the hero text */
.deco-lines {
  inset: 0;
  opacity: calc(1 - var(--p) * 1.7);
}
.deco-lines .deco-in { position: absolute; inset: 0; --d: .8s; }
.gl { position: absolute; display: block; }
.gl-h1, .gl-h2 {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,101,15,0.38) 0 6px, transparent 6px 12px);
}
.gl-h1 {
  left: -44%; width: 44%; top: 12%;           /* above the toolbar/selection group, meets the card edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
          mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.gl-h2 {
  left: -44%; width: 40%; top: 40%;           /* below the selection box; desktop left/width set in script.js */
  /* full strength except the first (leftmost) dash, which fades in */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px);
          mask-image: linear-gradient(90deg, transparent 0, #000 6px);
}
.gl-v1 {
  left: -36%; top: -6%;
  width: 1px; height: 86%;                     /* left of the toolbar, clear of the laptop */
  background: repeating-linear-gradient(180deg, rgba(255,101,15,0.30) 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}

/* B. File asset — inside the card's upper-left, beside (not above) the head */
.deco-file {
  left: -9%; top: 4%; /* directly above the selection box */
  transform: translate3d(0, calc(var(--p) * -24px), 0) rotate(calc(var(--p) * 3deg));
  opacity: calc(1 - var(--p) * 1.7);
}
.deco-file .deco-in { --d: .9s; }
.file-chip {
  position: relative;
  width: 15cqi; height: 15cqi;
  min-width: 34px; min-height: 34px;
  align-items: center; justify-content: center;
  border-radius: 3.6cqi;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 26px rgba(0,0,0,0.38), 0 0 22px rgba(255,101,15,0.14);
}
.file-chip .ico { width: 46%; height: 46%; stroke-width: 1.6; }
.file-dot {
  position: absolute;
  right: 18%; top: 18%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255,101,15,0.7);
}

/* D. Toolbar */
.toolbar { gap: 1cqi; padding: 1.2cqi; border-radius: 2.8cqi; }
.toolbar-v { flex-direction: column; }
.tool-btn {
  display: grid;
  place-items: center;
  width: 8cqi; height: 8cqi;
  min-width: 22px; min-height: 22px;
  border-radius: 1.8cqi;
  color: rgba(255, 255, 255, 0.72);
}
.tool-btn .ico { width: 58%; height: 58%; stroke-width: 1.6; }
.tool-btn.is-on { background: var(--tint); color: var(--orange); }

/* D. Vertical toolbar — left of the card, above the laptop; drifts down = slower than the portrait */
.deco-vtool {
  left: -26.4%; top: 14.4%; /* left of the selection box; ends above the laptop's top-left corner */
  transform: translate3d(0, calc(var(--p) * 16px), 0);
  opacity: calc(1 - var(--p) * 1.7);
}
.deco-vtool .deco-in { --d: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  .deco { transform: none !important; } /* no drifting; the scroll fade (opacity only) still applies */
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.portrait-about { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: 32px; }
.portrait-about img { object-position: 50% 20%; } /* tall photo: show head + shoulders with a little headroom */

.about-copy { container-type: inline-size; min-width: 0; }
/* Heading: always a single line, scales with column width */
.about-title {
  font-size: min(44px, 6.6cqi);
  font-weight: 800;
  margin-bottom: 22px;
  white-space: nowrap;
}
.about-title span { display: inline-block; white-space: nowrap; }
.about-copy > p { font-size: 16.5px; }
.about-copy .btn { margin-top: 8px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .3s var(--ease);
}
.highlight:hover { border-color: rgba(255,101,15,.28); }
.highlight strong { color: var(--white); display: block; font-size: 15px; }
.hl-icon { color: var(--orange); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); flex: none; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { padding: clamp(26px, 3vw, 40px); }
.service-top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.service-top h3 { font-size: 23px; font-weight: 700; }
/* Independent columns (not grid rows), so a wrapped item in one column
   doesn't leave a gap in the other */
.checklist {
  list-style: none;
  margin: 0 0 -14px; padding: 0; /* cancels the last item's bottom margin */
  columns: 2;
  column-gap: 20px;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.4;
  margin-bottom: 14px;
  break-inside: avoid;
}
.checklist .ico {
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--orange);
  stroke-width: 2.5;
}

/* =========================================================
   TOOLS
   ========================================================= */
/* Infinite right-to-left logo marquee */
.marquee {
  --marquee-gap: 16px;
  --marquee-duration: 30s;
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}
/* Each item carries its own right margin so the duplicated half is exactly 50% wide (no jump) */
.marquee-track .tool { margin-right: var(--marquee-gap); }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* Static glows inside the strip: the glass tiles slide over them and frost them.
   (They must live inside .marquee, because its mask makes it the backdrop root.) */
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(180px 60px at 18% 50%, rgba(255,101,15,0.22), transparent 70%),
    radial-gradient(220px 70px at 52% 50%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(180px 60px at 84% 50%, rgba(255,101,15,0.18), transparent 70%);
}
.marquee { isolation: isolate; }

/* Glass tiles (logos use light-text variants so they stay legible) */
.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 10px;
  height: 76px;
  min-width: 150px;
  padding: 0 28px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.05) 100%),
    rgba(28, 28, 32, 0.35);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: #F5F5F7;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 24px rgba(0,0,0,0.30);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tool:hover {
  border-color: rgba(255,101,15,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.30), 0 0 24px rgba(255,101,15,0.18);
}
.tool img { height: var(--h, 28px); width: auto; flex: none; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.industry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.industry:hover { transform: translateY(-3px); border-color: rgba(255,101,15,.3); }

/* =========================================================
   SELECTED WORK
   ========================================================= */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.project {
  display: block;
  padding: 10px;
  outline: none;
}
.project-media {
  position: relative;
  aspect-ratio: 1 / 1; /* square, boxy cards */
  border-radius: 12px;
  overflow: hidden;
  background: #121215;
}
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(.9);
  transform: scale(1);
  transition: opacity .5s ease-in-out, transform 1.2s var(--ease), filter .4s var(--ease);
}
.project-media img.is-active { opacity: 1; }
.project:hover .project-media img,
.project:focus-visible .project-media img { filter: brightness(1); transform: scale(1.03); }

.project-dots {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 99px;
  background: rgba(15,15,17,.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.project:hover .project-dots, .project:focus-visible .project-dots { opacity: 1; }
.project-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s, width .3s; }
.project-dots span.is-active { background: var(--orange); width: 14px; border-radius: 4px; }

.project-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 6px 6px; }
.project-info h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.project-info small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
/* Arrow button — opens the pop-up viewer (plain arrow, no circle) */
.project-open {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px; /* comfortable click area */
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.project-open .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.project:hover .project-open { color: var(--orange); }
.project:hover .project-open .ico { transform: translateX(3px); }
.project-open:hover .ico, .project-open:focus-visible .ico { transform: translateX(5px); }

/* ---------------- Sample Work pop-up ---------------- */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; } /* otherwise display:grid keeps an invisible layer over the page that blocks clicks */
.lightbox.is-open { opacity: 1; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)), rgba(22, 22, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform: translateY(14px) scale(.98);
  transition: transform .3s var(--ease);
}
.lightbox.is-open .lb-panel { transform: none; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.lb-head h3 { font-size: 18px; font-weight: 700; }
.lb-count { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lb-close, .lb-nav {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); border-color: var(--orange); }
.lb-prev .ico { transform: scaleX(-1); }
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  flex: 1;
}
.lb-img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: calc(100dvh - 48px - 36px - 210px); /* viewport minus header, thumbs and padding */
  min-height: 220px;
  object-fit: contain;      /* whole graphic, never cropped */
  border-radius: 12px;
  background: #0d0d10;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lb-img.is-in { opacity: 1; }
.lb-thumbs { display: flex; justify-content: center; gap: 10px; }
.lb-thumb {
  width: 64px; height: 64px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0d0d10;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, border-color .25s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb.is-active { opacity: 1; border-color: var(--orange); }

@media (max-width: 767px) {
  .lightbox { padding: 12px; }
  .lb-panel { padding: 12px; gap: 10px; }
  .lb-stage { gap: 0; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 36px; height: 36px; background: rgba(15,15,17,.7); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { height: calc(100dvh - 24px - 24px - 170px); }
  .lb-thumb { width: 52px; height: 52px; }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step { padding: 28px 24px; position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--tint);
  border: 1px solid rgba(255,101,15,.2);
  color: var(--orange);
  font-weight: 800;
  font-size: 15px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 51px;
  left: 82px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,101,15,.35), transparent);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; padding: 30px; display: flex; flex-direction: column; }
.testimonial-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.quote-ico { width: 36px; height: 36px; flex: none; fill: var(--orange); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 17px; height: 17px; fill: #FFC531; } /* star-rating yellow */
.quote-ico .fill, .quote-ico path { fill: var(--orange); stroke: none; }
.testimonial blockquote { margin: 0 0 26px; font-size: 15.5px; line-height: 1.7; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial figcaption strong { display: block; color: var(--white); font-size: 15px; }
.testimonial figcaption small { color: var(--muted); font-size: 13px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; margin-bottom: 16px; }
.contact-copy > p { font-size: 17px; max-width: 460px; }
.contact-links { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  max-width: 420px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-links a:hover { border-color: rgba(255,101,15,.35); transform: translateX(4px); }
.contact-links small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.contact-links a > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* Commitment letter (replaces the old contact form) */
/* Frosted-glass letter card */
.letter,
.letter:hover {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  transform: none;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.04) 100%),
    rgba(28, 28, 32, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 20px 50px rgba(0, 0, 0, 0.35);
}
/* Soft glows behind the letter for the glass to frost */
.contact-grid { position: relative; isolation: isolate; }
.contact-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%; top: 6%;
  width: min(520px, 55%); height: 80%;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 70% 25%, rgba(255,101,15,0.28), transparent 70%),
    radial-gradient(40% 35% at 25% 80%, rgba(255,101,15,0.16), transparent 70%),
    radial-gradient(30% 30% at 85% 85%, rgba(255,255,255,0.06), transparent 70%);
  filter: blur(10px);
}
@media (max-width: 1023px) {
  .contact-grid::before { right: 0; top: auto; bottom: 0; width: 100%; height: 60%; }
}
.letter-title { font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; margin-bottom: 22px; }
.letter p { font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; }
.letter .letter-greeting { color: var(--white); font-weight: 600; margin-bottom: 16px; }
.letter .letter-sign {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  line-height: 0;
}
/* Signature image (white ink on transparent). Shown at its natural size to stay sharp */
.letter-sign img { width: 227px; max-width: 100%; height: auto; margin-left: -12px; /* offsets the image's built-in left padding */ }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 30px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { font-size: 14px; color: var(--text); transition: color .25s; }
.footer-links a:hover { color: var(--orange); }

/* =========================================================
   ENTRANCE ANIMATION
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* Marquee becomes a still strip the visitor can swipe */
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet: narrower sidebar */
@media (max-width: 1199px) {
  :root { --sidebar-w: 212px; }
  .sidebar { padding: 20px 12px 16px; }
  .nav-link { padding: 9px 10px; gap: 10px; font-size: 14px; }
  .nav-link::before { left: -12px; }
  .brand { padding: 4px 6px 18px; }
  .brand-logo { height: 26px; }

  .deco-vtool { display: none; } /* tablet: fewer decorations */
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial:last-child { grid-column: 1 / -1; }
  .checklist { columns: 1; }
}

@media (max-width: 1023px) {
  .hero { min-height: auto; padding-top: 80px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  /* Centered, nudged right so the laptop stays on screen; top margin leaves room for the head */
  .portrait-hero { width: min(300px, 58vw); margin: 56px auto 0; transform: translateX(8%); }
  .portrait-about { max-width: 320px; }
  .services-grid { grid-template-columns: 1fr; }
  .checklist { columns: 2; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial:last-child { grid-column: auto; }
}

/* Mobile: sidebar becomes a top bar + slide-down panel */
@media (max-width: 767px) {
  :root { --sidebar-w: 0px; }
  body::before { display: none; } /* panel frosts the page content instead */

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--mobile-bar-h);
    padding: 0 16px;
    z-index: 110;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .mobile-logo {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 11px;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 11px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }
  .menu-toggle .ico { width: 22px; height: 22px; }
  .menu-toggle .ico-close { display: none; }
  body.nav-open .menu-toggle .ico-open { display: none; }
  body.nav-open .menu-toggle .ico-close { display: block; }

  .sidebar {
    top: var(--mobile-bar-h);
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--mobile-bar-h));
    padding: 12px 16px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
      rgba(18, 18, 22, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  body.nav-open .sidebar {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .sidebar .brand, .sidebar .nav-label, .availability { display: none; }
  .nav-link { padding: 13px 12px; font-size: 15.5px; }
  .nav-link::before { left: 0; }
  .sidebar-bottom { padding-top: 16px; }
  .sidebar-bottom .btn { padding: 15px 16px; font-size: 15px; }

  .nav-backdrop {
    position: fixed;
    inset: var(--mobile-bar-h) 0 0 0;
    z-index: 90;
    background: rgba(0,0,0,.5);
  }
  body.nav-open .nav-backdrop { display: block; }

  .main { margin-left: 0; }
  .section { scroll-margin-top: var(--mobile-bar-h); padding: 72px 0; }
  .hero { padding-top: calc(var(--mobile-bar-h) + 40px); padding-bottom: 64px; }
  .container { padding: 0 16px; }

  .portrait-hero { margin-top: 44px; }
  .guide, .deco-lines { display: none; } /* mobile: keep only the selection box + file */
  .highlights { gap: 10px; }
  .highlight { padding: 12px; font-size: 13px; gap: 10px; }
  .hl-icon { width: 32px; height: 32px; }
  .checklist { columns: 1; }
  .marquee { --marquee-gap: 12px; --marquee-duration: 26s; }
  .tool { height: 62px; min-width: 120px; padding: 0 20px; font-size: 14px; gap: 8px; }
  .tool img { height: calc(var(--h, 28px) * .8); }
  .industries-grid { grid-template-columns: 1fr; gap: 10px; }
  .process-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 599px) {
  .work-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
