/* ============================================================
   Dockyard Techlabs — Tushar Ghorpade
   Light editorial + IDE-style code blocks
   ============================================================ */

:root {
  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  /* Light palette */
  --bg:        #F7F5EF;
  --bg-elev:  #FFFFFF;
  --bg-soft:  #EFEDE5;
  --ink:      #0E0F12;
  --ink-2:    #2A2C33;
  --muted:    #6B6E78;
  --line:     #E2DFD4;
  --line-2:   #D6D2C4;

  /* Accent (AWS amber) */
  --accent:   #FF9900;
  --accent-ink:#1A1100;

  /* IDE code panel */
  --code-bg:   #11131A;
  --code-bg-2: #0A0C12;
  --code-fg:   #E6E6E6;
  --code-mute: #8A8FA1;
  --code-key:  #FF9900;     /* keys / keywords */
  --code-str:  #A6E3A1;     /* strings */
  --code-num:  #F5C2E7;     /* numbers */
  --code-com:  #6B7280;     /* comments */
  --code-pun:  #C0C5D1;     /* punctuation */
  --code-fn:   #93C5FD;     /* functions / types */

  /* Spacing scale (density) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --section-py: 112px;

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(14,15,18,.04), 0 1px 1px rgba(14,15,18,.03);
  --shadow-md: 0 8px 24px rgba(14,15,18,.06), 0 2px 4px rgba(14,15,18,.04);
  --shadow-code: 0 30px 60px -20px rgba(14,15,18,.25), 0 12px 30px -12px rgba(14,15,18,.15);

  --maxw: 1200px;
}

/* Dark theme override */
[data-theme="dark"] {
  --bg:        #0B0D12;
  --bg-elev:  #11141B;
  --bg-soft:  #161A23;
  --ink:      #F5F4EF;
  --ink-2:    #D5D6DC;
  --muted:    #9498A4;
  --line:     #232834;
  --line-2:   #2D3340;
}

/* Density */
[data-density="compact"] {
  --section-py: 72px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 72px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding-block: var(--section-py); }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255,153,0,0.18);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
}
.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  margin-top: 18px;
  max-width: 22ch;
  text-wrap: balance;
}
.section-intro {
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px;
  height: 40px;
  object-fit: contain;
  display: block;
}
[data-theme="dark"] .brand-mark {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.08));
}
.brand-name { font-size: 15px; }
.brand-name b { font-weight: 600; }
.brand-name span { color: var(--muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
[data-theme="dark"] .btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { transform: translateY(-1px); }

.nav-burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 56px;
  padding-bottom: var(--section-py);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 70%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.status-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-chip .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #2EA043;
  box-shadow: 0 0 0 3px rgba(46,160,67,0.18);
  animation: pulse 2.2s infinite ease-out;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,160,67,.35); }
  70% { box-shadow: 0 0 0 6px rgba(46,160,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,160,67,0); }
}
.status-chip b { color: var(--ink); font-weight: 600; }

.hero h1 {
  font-size: clamp(40px, 6vw, 82px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-weight: 600;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-meta-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta-grid b {
  color: var(--ink);
  font-weight: 500;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cloudfront-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  max-width: 560px;
}
.hero-cloudfront-note img { width: 32px; height: 32px; flex-shrink: 0; }

/* Hero right column — portrait */
.hero-right {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}
.hero-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 30%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    var(--bg-soft);
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 72%, transparent 100%);
}
.hero-portrait::before {
  /* subtle warm-tint blend layer */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 35%, transparent) 0%, transparent 25%);
  pointer-events: none;
  z-index: 2;
}
[data-theme="dark"] .hero-portrait img {
  filter: brightness(0.92) contrast(1.05);
}

/* Floating annotation chips on portrait */
.portrait-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  box-shadow: 0 12px 28px -10px rgba(14,15,18,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.portrait-chip b { color: var(--ink); font-weight: 600; }
.portrait-chip .ico {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.portrait-chip.top-left { top: 28px; left: -14px; }
.portrait-chip.top-right {
  top: 64px; right: -18px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.portrait-chip.top-right b { color: var(--accent); }
.portrait-chip.bottom-left {
  bottom: 70px; left: -22px;
}
.portrait-chip.bottom-left .led {
  width: 8px; height: 8px; border-radius: 999px; background: #2EA043;
  box-shadow: 0 0 0 3px rgba(46,160,67,0.2);
}

/* ============================================================
   Credentials strip (under hero)
   ============================================================ */
.creds-strip {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding-block: 36px;
}
.creds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.creds-head .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.creds-head .label b { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; }
.creds-head .count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.creds-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
}
.creds-row .badge {
  max-width: 132px;
}
.creds-row .badge:nth-child(2),
.creds-row .badge:nth-child(4),
.creds-row .badge:nth-child(6) {
  transform: none;
}

/* Badge flip card */
.badge {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  max-width: 180px;
  perspective: 1100px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  display: block;
}

.badge-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: flip-y 7s infinite ease-in-out;
  transition: transform .25s ease;
}
.badge:nth-child(1) .badge-inner { animation-delay: 0s; }
.badge:nth-child(2) .badge-inner { animation-delay: -1s; }
.badge:nth-child(3) .badge-inner { animation-delay: -2s; }
.badge:nth-child(4) .badge-inner { animation-delay: -3s; }
.badge:nth-child(5) .badge-inner { animation-delay: -4s; }
.badge:nth-child(6) .badge-inner { animation-delay: -5s; }
.badge:hover .badge-inner,
.badge:focus-visible .badge-inner,
.badge.paused .badge-inner { animation-play-state: paused; }
.badge:hover { z-index: 2; }
.badge:hover .badge-inner { transform: scale(1.06); animation: flip-y 7s infinite ease-in-out paused; }

@keyframes flip-y {
  0%, 38%   { transform: rotateY(0deg); }
  50%, 88%  { transform: rotateY(180deg); }
  100%      { transform: rotateY(360deg); }
}

.badge-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.badge-face.front {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.badge-face.front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(14,15,18,0.18));
}
.badge-face.back {
  transform: rotateY(180deg);
  clip-path: polygon(50% 1%, 96% 26%, 96% 74%, 50% 99%, 4% 74%, 4% 26%);
  background: linear-gradient(155deg, #0E0F12 0%, #2A2C33 100%);
  color: var(--bg);
  padding: 18px 12px;
  gap: 8px;
}
.badge-face.back .b-verify {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.badge-face.back .b-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 16ch;
}
.badge-face.back .b-check {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.badge-face.back .b-issued {
  font-family: var(--font-mono);
  font-size: 10px;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}

/* Stats counter */
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
}
.stat-num .unit {
  color: var(--accent);
  font-weight: 500;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Generic IDE / Terminal Code Panel
   ============================================================ */
.code-panel {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 14px;
  box-shadow: var(--shadow-code);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  border: 1px solid color-mix(in oklab, var(--code-bg) 60%, var(--ink) 15%);
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--code-bg-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.traffic { display: inline-flex; gap: 8px; }
.traffic span {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #5A5F6B;
}
.traffic span:nth-child(1) { background: #FF5F57; }
.traffic span:nth-child(2) { background: #FEBC2E; }
.traffic span:nth-child(3) { background: #28C840; }
.code-tab {
  font-size: 12px;
  color: #C0C5D1;
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.code-tab .lang {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--code-mute);
}
.code-bar-spacer { flex: 1; }
.code-bar-tools {
  font-size: 11px;
  color: var(--code-mute);
  letter-spacing: 0.04em;
}

.code-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 18px 0 22px 0;
  white-space: pre;
  overflow-x: auto;
}
.code-gutter {
  text-align: right;
  padding-right: 14px;
  color: var(--code-mute);
  user-select: none;
  font-size: 12px;
}
.code-gutter > span { display: block; }
.code-lines {
  padding-right: 28px;
}
.code-lines > span { display: block; }

/* Syntax */
.tk-key { color: var(--code-key); }
.tk-str { color: var(--code-str); }
.tk-num { color: var(--code-num); }
.tk-com { color: var(--code-com); font-style: italic; }
.tk-pun { color: var(--code-pun); }
.tk-fn  { color: var(--code-fn); }
.tk-mute{ color: var(--code-mute); }

/* Terminal variant (single-pane, no gutter) */
.terminal {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow-code);
  overflow: hidden;
}
.terminal .code-body {
  display: block;
  padding: 22px 26px 24px;
  white-space: pre-wrap;
}
.terminal .prompt { color: var(--code-mute); }

/* ============================================================
   About section
   ============================================================ */
.about .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.about-copy { position: sticky; top: 90px; }
.about-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.about-status .led {
  width: 9px; height: 9px;
  background: #2EA043;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(46,160,67,0.2);
}
.about-s3 {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15.5px;
}
.about-s3 img { width: 44px; height: 44px; flex-shrink: 0; }
.about-s3 b { color: var(--ink); }
.about-trust {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 16px;
}
.about-trust b { color: var(--ink); }

/* ============================================================
   Consulting OS section
   ============================================================ */
.cos {
  position: relative;
  background:
    radial-gradient(60% 70% at 50% 0%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 60%),
    var(--bg);
}
.cos .container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 28px;
}
.cos .section-title { text-align: center; margin-inline: auto; }
.cos-terminal { width: 100%; max-width: 720px; text-align: left; margin-top: 24px; }
.cos-foot {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.cos-foot b {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   Services section
   ============================================================ */
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.services-cw {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  align-self: end;
  max-width: 420px;
  margin-left: auto;
}
.services-cw img { width: 40px; height: 40px; }
.services-cw .t {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.services-cw .v {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 2px;
}
.services-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .2s ease;
}
.service:hover { background: var(--bg-elev); }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.service h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.service p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  background: var(--bg-soft);
  border-radius: 6px;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials .section-header { max-width: 820px; }
.testimonials-cloudtrail {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
.testimonials-cloudtrail img { width: 28px; height: 28px; }

.t-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.t-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  position: relative;
}
.t-card .quote-mark {
  font-family: var(--font-mono);
  font-size: 36px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: -10px;
}
.t-card p {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}
.t-card p.full { display: none; }
.t-card.expanded p.short { display: none; }
.t-card.expanded p.full { display: block; }
.t-more {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0;
  letter-spacing: 0.04em;
}
.t-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.t-author { font-weight: 600; color: var(--ink); font-size: 14px; }
.t-role { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.testimonial-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}
.testimonial-cta .left {
  display: flex; align-items: center; gap: 16px;
}
.testimonial-cta .li-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #0A66C2;
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-sans);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.contact-vpn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  margin-top: 28px;
  max-width: 480px;
}
.contact-vpn img { width: 40px; height: 40px; }
.contact-vpn .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-vpn .val { color: var(--ink); font-size: 14.5px; margin-top: 2px; }

.contact-info {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-row .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-soft);
}
.contact-row .ico svg { width: 18px; height: 18px; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row .val {
  font-size: 16.5px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.contact-row .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
}
.contact-row .copy:hover { color: var(--ink); border-color: var(--ink); }
.contact-row .copy.copied { color: #2EA043; border-color: #2EA043; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-inner a { color: var(--ink-2); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 100;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-md);
}
.tweaks-fab.visible { display: inline-flex; }
.tweaks-fab svg { width: 22px; height: 22px; }

.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 80px;
  width: 320px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 101;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: none;
  font-size: 14px;
}
.tweaks-panel.open { display: block; }
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tweaks-head h4 {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tweaks-head button {
  background: none; border: none; color: var(--muted); font-size: 18px;
}
.tweak-group {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.tweak-group:first-of-type { border-top: none; padding-top: 0; }
.tweak-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tweak-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tweak-opt {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
}
.tweak-opt[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tweak-swatches {
  display: flex; gap: 8px;
}
.tweak-swatch {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--c);
  cursor: pointer;
  position: relative;
}
.tweak-swatch[aria-pressed="true"] {
  border-color: var(--ink);
  transform: scale(1.08);
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .badge-inner { animation: none !important; }
  .reveal { transition: none; transform: none; opacity: 1; }
  .status-chip .dot, .about-status .led { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --section-py: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-right { min-height: 480px; max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-portrait { min-height: 480px; }
  .portrait-chip.top-left { left: 8px; }
  .portrait-chip.top-right { right: 8px; }
  .portrait-chip.bottom-left { left: 8px; }
  .creds-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about .container { grid-template-columns: 1fr; gap: 36px; }
  .about-copy { position: static; }
  .services-header { grid-template-columns: 1fr; gap: 24px; }
  .services-cw { margin-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .service { padding: 28px 24px; }
  .testimonial-cta { flex-direction: column; align-items: flex-start; }
  .contact-row { grid-template-columns: 32px 1fr; }
  .contact-row .copy { grid-column: 2; justify-self: start; }
  .code-body { font-size: 12px; }
  .badge { max-width: 140px; }
  .creds-row { grid-template-columns: repeat(2, 1fr); }
  .portrait-chip { font-size: 10.5px; padding: 6px 10px; }
}
