/* ──────────────────────────────────────────────────────────
   Veilframe — technology studio
   Aesthetic: brutalist-technical · near-black + acid lime + cream
   ────────────────────────────────────────────────────────── */

:root {
  --bg:            #0a0c0a;
  --bg-elev:       #11141a;
  --bg-elev-2:     #161a16;
  --text:          #ecebe2;
  --text-dim:      #9a9d92;
  --text-faint:    #4b4e47;
  --accent:        #c8f24e;
  --accent-soft:   rgba(200, 242, 78, 0.14);
  --accent-faint:  rgba(200, 242, 78, 0.06);
  --accent-glow:   rgba(200, 242, 78, 0.45);
  --border:        #1d1f1c;
  --border-strong: #2a2d28;

  --font-title:   "Cinzel", "Times New Roman", serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: url("assets/birth-of-adam.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle vignette so the painting frames the card */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.28));
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ── Atmosphere ────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' /></svg>");
}

/* ── Glass card ────────────────────────────────────────── */
.glass-card {
  --card-vmargin: clamp(3.5rem, 9vh, 7rem);
  --card-hmargin: clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max-w);
  width: calc(100% - 2 * var(--card-hmargin));
  margin: 0;
  height: calc(100vh - 2 * var(--card-vmargin));
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: rgba(8, 10, 8, 0.52);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 4px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 8px 30px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);

  opacity: 0;
  transform: translateY(28px) scale(0.985);
  animation: card-in 1.4s 0.7s cubic-bezier(.18,.86,.24,1) both;
}

/* Inner top highlight — a faint diagonal sheen along the upper edge */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(200, 242, 78, 0.35) 50%,
    rgba(255, 255, 255, 0.18) 70%,
    transparent
  );
  opacity: 0;
  animation: sheen-in 1.6s 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheen-in {
  to { opacity: 1; }
}

/* ── Layout ────────────────────────────────────────────── */
.layout {
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  position: relative;
  height: 100%;
  padding: clamp(2.5rem, 7vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.brand-mark {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
}
.brand-name {
  padding-right: 0.12em;
  background: linear-gradient(180deg, var(--text), #c4c2b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-cursor {
  display: inline-block;
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
  margin-left: 0.04em;
  animation: blink 1.15s steps(1) infinite;
  text-shadow: 0 0 18px var(--accent-glow);
}
@keyframes blink { 50% { opacity: 0; } }

.brand-role {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.brand-tagline {
  margin-top: 1.4rem;
  max-width: 32ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.55;
}

/* Nav */
.nav { margin: 3rem 0; }
.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: color 0.35s ease, padding-left 0.4s ease;
}
.nav-indicator {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.45s cubic-bezier(.2,.85,.2,1), background-color 0.3s ease;
}
.nav-num {
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--text); }
.nav-link:hover .nav-indicator { width: 52px; }
.nav-link:hover .nav-num { color: var(--text-dim); }

.nav-link.is-active { color: var(--accent); }
.nav-link.is-active .nav-indicator {
  width: 68px;
  background: var(--accent);
}
.nav-link.is-active .nav-num { color: var(--accent); }

/* Sidebar footer */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 0.55rem;
  width: fit-content;
  transition: color 0.25s, border-color 0.25s;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}
.contact-line:hover { color: var(--accent); border-color: var(--accent); }
.contact-prompt { color: var(--accent); }
.contact-cmd { color: var(--text-faint); }

.social {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.social a {
  color: var(--text-dim);
  display: inline-flex;
  transition: color 0.2s, transform 0.25s ease;
}
.social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.social svg { width: 20px; height: 20px; }

.footer-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Content ───────────────────────────────────────────── */
.content {
  --content-fade: 3rem;
  padding: clamp(2.5rem, 7vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 var(--content-fade),
    #000 calc(100% - var(--content-fade)),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 var(--content-fade),
    #000 calc(100% - var(--content-fade)),
    transparent 100%
  );
}
.content::-webkit-scrollbar {
  width: 8px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}
.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
.content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section {
  padding: 4rem 0 7rem;
  scroll-margin-top: 2rem;
}
.section:first-of-type { padding-top: 0; }

.section-header { margin-bottom: 2.75rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  padding-left: 38px;
  position: relative;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: 0.015em;
  color: var(--text);
  max-width: 22ch;
}
.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.section-lede {
  margin-top: 1.1rem;
  color: var(--text-dim);
  max-width: 50ch;
  font-size: 1rem;
}

.section-body p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-dim);
  margin-bottom: 1.15em;
  max-width: 62ch;
}
.section-body p strong {
  color: var(--text);
  font-weight: 500;
}

/* Capabilities */
.capabilities {
  margin-top: 2.75rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.capabilities li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.cap-mark { color: var(--accent); margin-right: 0.5rem; }

/* Services */
.service {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 0.5rem;
}
.service:last-of-type { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}
.service-num {
  color: var(--accent);
  padding: 0.15em 0.5em;
  border: 1px solid var(--accent-soft);
}
.service-kind { color: var(--text-dim); }

.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 1.25rem;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}

.service-desc {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.service-includes { margin-top: 0.25rem; }
.includes-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 0.95rem;
}

.service-outcome {
  margin-top: 1.85rem;
  padding: 1.1rem 1.35rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-faint);
  position: relative;
  max-width: 62ch;
}
.outcome-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.service-outcome p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.service-examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.service-examples li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.55;
}
.service-examples strong { color: var(--text); font-weight: 500; }
.ex-mark {
  color: var(--accent);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
}

/* Security block */
.security-block {
  margin-top: 2.25rem;
  padding: 1.85rem 1.85rem 2.1rem;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.002));
  position: relative;
}
.security-block::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 32px; height: 2px;
  background: var(--accent);
}
.security-block::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 2px; height: 32px;
  background: var(--accent);
}

.security-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.security-intro {
  margin-top: 0.85rem;
  color: var(--text-dim);
  max-width: 58ch;
  font-size: 0.97rem;
}
.vuln-list {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem 1.6rem;
}
.vuln-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.45;
}
.vuln-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3em 0.55em;
  min-width: 72px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.standards {
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--border-strong);
}
.standards-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}
.standards-list {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.standard {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.4em 0.8em;
  border: 1px solid var(--border-strong);
  transition: border-color 0.25s, color 0.25s;
}
.standard:hover { border-color: var(--accent); color: var(--accent); }

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.work-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-strong);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.7;
}
.work-empty code {
  color: var(--accent);
  font-family: var(--font-mono);
  background: var(--accent-faint);
  padding: 0.15em 0.4em;
  font-size: 0.92em;
}

.work-card {
  display: block;
  color: var(--text);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.2));
  position: relative;
  transition: border-color 0.35s ease, transform 0.5s cubic-bezier(.2,.85,.2,1), box-shadow 0.35s;
  overflow: hidden;
  cursor: pointer;
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(200, 242, 78, 0.25);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-elev-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,12,10,0.85) 100%);
  pointer-events: none;
}
.work-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 14px,
      rgba(255,255,255,0.012) 14px,
      rgba(255,255,255,0.012) 28px
    );
}

.work-body { padding: 1.25rem 1.35rem 1.6rem; }
.work-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
}
.work-meta-kind { color: var(--accent); }
.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: 0.55rem;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.work-title .arrow {
  display: inline-block;
  margin-left: 0.2em;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(.2,.85,.2,1);
  font-style: normal;
}
.work-card:hover .work-title .arrow {
  transform: translate(4px, -4px);
}
.work-summary {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3em 0.55em;
}

/* CTA */
.cta {
  margin-top: 4.5rem;
  padding: 2.5rem 2.25rem 2.75rem;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(200, 242, 78, 0.04), rgba(200, 242, 78, 0.01) 60%, transparent),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.15));
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 42px; height: 2px;
  background: var(--accent);
}
.cta::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 2px; height: 42px;
  background: var(--accent);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 28ch;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}
.cta-body {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: transform 0.3s cubic-bezier(.2,.85,.2,1), box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -16px rgba(200, 242, 78, 0.55);
}
.cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(.2,.85,.2,1);
}
.cta-button:hover .cta-arrow { transform: translateX(4px); }

/* Page footer */
.page-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-mark { color: var(--text-dim); }

/* ── Motion ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(.2,.7,.2,1),
    transform 0.9s cubic-bezier(.2,.85,.2,1);
}
.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  body {
    overflow: auto;
    height: auto;
    display: block;
  }
  .glass-card {
    margin: clamp(1rem, 3vh, 2rem) clamp(0.75rem, 2vw, 1.5rem);
    width: auto;
    height: auto;
    flex: initial;
    display: block;
    overflow: visible;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    flex: initial;
    min-height: auto;
    overflow: visible;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 3.5rem 0 1rem;
  }
  .sidebar-inner {
    height: auto;
    gap: 2.75rem;
  }
  .content {
    padding: 0;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .nav { margin: 0; }
  .nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
  }
  .brand-tagline { max-width: 48ch; }
  .section { padding: 3rem 0 5rem; }
}

@media (max-width: 768px) {
  .glass-card {
    margin: 0.75rem 0.5rem;
    border-radius: 3px;
  }
  .layout { padding: 0 clamp(1.1rem, 4vw, 1.75rem); }
  .sidebar { padding: 2.5rem 0 0.5rem; }
  .sidebar-inner { gap: 2.1rem; }

  .brand-mark { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .brand-role { margin-top: 1rem; font-size: 0.78rem; letter-spacing: 0.2em; }

  .nav ul { gap: 0.4rem 1.5rem; }
  .nav-link { padding: 0.5rem 0; }

  .contact-line { font-size: 0.8rem; }
  .social { gap: 1.25rem; }
  .social svg { width: 22px; height: 22px; }

  .section { padding: 2.25rem 0 3.5rem; scroll-margin-top: 1rem; }
  .section-header { margin-bottom: 1.85rem; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2.1rem); max-width: 100%; }
  .section-body p { font-size: 1rem; line-height: 1.65; }
  .section-lede { font-size: 0.95rem; }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
  }

  .service { padding: 2rem 0 0.5rem; }
  .service-title { font-size: clamp(1.5rem, 6vw, 1.95rem); }
  .service-desc { font-size: 0.95rem; margin-bottom: 1.4rem; }
  .service-examples li { font-size: 0.9rem; padding-left: 1.45rem; }

  .security-block { margin-top: 1.85rem; padding: 1.5rem 1.25rem 1.6rem; }
  .security-intro { font-size: 0.92rem; }
  .vuln-list { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .vuln-list li { font-size: 0.88rem; }
  .vuln-tag { min-width: 64px; font-size: 0.66rem; }
  .standards { margin-top: 1.5rem; padding-top: 1.1rem; }
  .standards-list { gap: 0.45rem; }
  .standard { font-size: 0.72rem; padding: 0.35em 0.7em; }

  .work-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .work-body { padding: 1rem 1.1rem 1.3rem; }

  .page-footer {
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
    padding: 1.85rem 0 2.5rem;
    margin-top: 1.5rem;
  }

  .cta {
    margin-top: 3rem;
    padding: 2rem 1.4rem 2.25rem;
  }
  .cta-title { font-size: clamp(1.4rem, 5.5vw, 1.85rem); }
  .cta-body { font-size: 0.95rem; }
  .cta-button { padding: 0.75rem 1.15rem; font-size: 0.74rem; }

  .service-outcome { padding: 1rem 1.1rem 1.1rem; }
  .includes-label { font-size: 0.66rem; margin-bottom: 0.75rem; }
}

@media (max-width: 480px) {
  .glass-card {
    margin: 0.5rem;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
  }
  .layout { padding: 0 1rem; }
  .sidebar { padding: 1.85rem 0 0.25rem; }

  .brand-mark { font-size: clamp(2rem, 11vw, 2.7rem); }
  .brand-role { font-size: 0.74rem; letter-spacing: 0.18em; }

  .nav ul { gap: 0.35rem 1.1rem; }
  .nav-link { gap: 0.7rem; font-size: 0.7rem; letter-spacing: 0.18em; }
  .nav-indicator { width: 18px; }
  .nav-link:hover .nav-indicator { width: 30px; }
  .nav-link.is-active .nav-indicator { width: 40px; }

  .contact-line { font-size: 0.74rem; flex-wrap: wrap; }
  .contact-email { word-break: break-all; }

  .section { padding: 1.75rem 0 2.75rem; }
  .section-header { margin-bottom: 1.4rem; }
  .section-title { font-size: clamp(1.5rem, 7.5vw, 1.9rem); line-height: 1.15; }

  .service { padding: 1.6rem 0 0.5rem; }
  .service-meta { gap: 0.7rem; font-size: 0.66rem; }

  .security-block { padding: 1.25rem 1rem 1.4rem; }
  .vuln-tag { min-width: 58px; padding: 0.25em 0.45em; }
  .vuln-list li { gap: 0.55rem; }
}

/* Backdrop-filter is expensive — disable for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glass-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .glass-card::before { animation: none; opacity: 1; }
}
