/* ============================================================
   HERO — mobile first
============================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    justify-content: flex-start;
    min-height: auto;
  }

  .hero-inner {
    padding-top: 1.35rem;
    padding-bottom: 1.75rem;
  }

  .scroll-hint {
    display: none !important;
  }
}

/* Circuit-trace schematic — draws in once on load, then sits still.
   Faint PCB-style traces with vias (circles) and pads (squares),
   masked so they fade out near the hero content. */
.hero-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--accent) 74%, var(--text-2));
  opacity: 0.34;
  pointer-events: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 22%, transparent));
  -webkit-mask-image: radial-gradient(120% 92% at 35% 50%, transparent 12%, #000 46%);
  mask-image: radial-gradient(120% 92% at 35% 50%, transparent 12%, #000 46%);
}

[data-theme="dark"] .hero-circuit {
  opacity: 0.42;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 36%, transparent));
}

.hero-circuit path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: traceDraw 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--td, 0) * 1s);
}

.hero-circuit circle,
.hero-circuit rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0;
  animation: traceNodeIn 0.45s ease forwards, traceNodePulse 1.8s ease-in-out 1.05s 2;
  animation-delay: calc(var(--td, 0) * 1s + 1s), calc(var(--td, 0) * 1s + 1.05s);
}

@keyframes traceDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes traceNodeIn {
  to { opacity: 1; }
}

@keyframes traceNodePulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px currentColor); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-circuit path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .hero-circuit circle,
  .hero-circuit rect {
    animation: none;
    opacity: 1;
  }
}

.hero-circuit {
  height: 145%;
  opacity: 0.31;
  transform: translateY(calc(var(--circuit-scroll-y, 0) * -72px));
  transition: opacity 0.4s ease, filter 0.4s ease;
}

[data-theme="dark"] .hero-circuit {
  opacity: 0.38;
}

.hero-circuit .circuit-traces path {
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: none;
}

.hero-circuit .circuit-traces circle,
.hero-circuit .circuit-traces rect {
  animation: none;
  transition: opacity 0.35s ease;
}

.hero-circuit .signal-pulse {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  animation: none;
  filter: drop-shadow(0 0 8px currentColor);
  transition: opacity 0.2s ease;
}

.infra-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease;
}

.infra-node circle,
.infra-node rect {
  fill: color-mix(in srgb, var(--bg-card) 78%, transparent);
  stroke: currentColor;
  stroke-width: 1.8;
  opacity: 1;
  animation: none;
}

.infra-node text {
  fill: var(--text-2);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--bg) 82%, transparent);
  stroke-width: 5px;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .hero-circuit {
    height: 100%;
    transform: none;
  }

  .hero-circuit .circuit-traces path {
    stroke-dashoffset: 0;
  }

  .hero-circuit .circuit-traces circle,
  .hero-circuit .circuit-traces rect,
  .infra-node {
    opacity: 1;
  }

  .hero-circuit .signal-pulse {
    display: none;
  }
}

#hero-click-scripts {
  font-family: var(--font-mono);
}

.hero-script-run {
  position: absolute;
  width: min(190px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  box-shadow: 0 12px 30px rgba(17,17,16,0.06);
  color: var(--text-2);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  backdrop-filter: blur(8px);
}

.hero-script-run.is-visible {
  opacity: 0.72;
  transform: translateY(0) scale(1);
}

.hero-script-run.is-done {
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
}

.hero-script-top {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.55rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-surface) 64%, transparent);
}

.hero-script-top span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 52%, transparent);
}

.hero-script-top strong {
  margin-left: 0.2rem;
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.5rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-script-run pre {
  min-height: 82px;
  padding: 0.45rem 0.55rem 0.55rem;
  margin: 0;
  overflow: hidden;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Mobile: single column, text first */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  order: 1;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  order: 2;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 1.25rem;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-height: 1.1em;
}

.eyebrow-cursor {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
}

/* Name */
.hero-name {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.8rem, 14vw, 9.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin-bottom: 1.5rem;
}

.name-first { display: block; }

.name-last {
  display: block;
  -webkit-text-stroke: 2px var(--text-1);
  color: transparent;
  transition: -webkit-text-stroke-color 0.4s ease;
}

/* Per-letter rise — no overflow masks, so the tight letter-spacing
   never clips glyph edges. Triggered by the boot intro hand-off. */
.hero-name .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.32em);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: calc(var(--li, 0) * 42ms + 0.05s);
}

.hero-name.letters-in .ltr {
  opacity: 1;
  transform: translateY(0);
}

/* Statement */
.hero-statement {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

/* Domain tags */
.hero-domain-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dtag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  color: var(--text-3);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
  cursor: default;
}

.dtag:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.dtag:active {
  transform: translateY(0) scale(0.98);
}

/* Photo frame */
.photo-frame {
  position: relative;
  width: 180px;
  height: 216px;
  overflow: visible;
  border-radius: var(--radius);
  border: 1px solid var(--border-str);
  background: var(--bg-surface);
  cursor: default;
}

.photo-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  filter: var(--photo-filter);
  transform: scale(1);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--photo-overlay);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.photo-frame:hover .photo-media,
.photo-frame:active .photo-media {
  filter: none;
  transform: scale(1.01);
}

.photo-frame:hover .photo-overlay,
.photo-frame:active .photo-overlay {
  opacity: 0;
}

.photo-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  z-index: 3;
  background: var(--bg-card);
  border: 1px solid var(--border-str);
  border-radius: 100px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.4s ease;
}

.photo-badge-tag {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid var(--border-md);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* Side stats */
.hero-side-stats {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hstat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 8px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.4s ease;
}

.hstat-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hstat-val {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
  color: var(--text-1);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 1;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-track {
  width: 1px;
  height: 42px;
  background: var(--border-md);
  overflow: hidden;
}

.scroll-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollFill 2.2s ease-in-out infinite;
}

/* ============================================================
   INTRO SECTION
============================================================ */
.intro-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.intro-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.intro-text,
.intro-cards {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.intro-heading {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.intro-body {
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  transition: opacity var(--t);
}
.intro-link:hover { opacity: 0.7; }

.intro-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.icard {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform 0.25s var(--ease-out), background 0.4s ease, box-shadow var(--t);
}

.icard::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--t), transform 0.32s cubic-bezier(0.16,1,0.3,1);
}

.icard:hover {
  border-color: var(--border-str);
  transform: translateX(4px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text-1) 5%, transparent);
}

.icard:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.icard-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icard-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icard:hover .icard-icon {
  color: var(--accent);
}

.icard-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.icard-text p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   DOMAIN BANNER
============================================================ */
.domain-banner {
  padding: 0 0 4.5rem;
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
  position: relative;
  z-index: 1;
}

.domain-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: background 0.4s ease;
}

.domain-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.domain-sub {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.82;
}

.domain-areas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.da-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), background 0.4s ease, transform var(--t);
}

.da-item:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
}

.da-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.da-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.da-item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1px;
}

.da-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ============================================================
   PROJECT TEASER
============================================================ */
.teaser-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.teaser-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.teaser-grid {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  perspective: 1200px;
  perspective-origin: center;
}

.teaser-card {
  --tilt-glow-x: 50%;
  --tilt-glow-y: 30%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  gap: 0.78rem;
  cursor: pointer;
  transition: border-color var(--t), box-shadow 0.36s var(--ease-out), background 0.4s ease, transform 0.36s var(--ease-out);
  position: relative;
  overflow: hidden;
  color: var(--text-1);
  transform-style: preserve-3d;
  isolation: isolate;
  will-change: transform;
}

.teaser-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.teaser-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--tilt-glow-x) var(--tilt-glow-y), color-mix(in srgb, var(--accent) 24%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.teaser-card > * {
  position: relative;
  z-index: 2;
}

.teaser-card:hover::before { transform: scaleX(1); }
.teaser-card:hover::after { opacity: 1; }
.teaser-card:hover {
  border-color: var(--border-str);
  box-shadow:
    0 22px 52px rgba(0,0,0,0.12),
    0 2px 0 color-mix(in srgb, var(--accent) 28%, transparent) inset;
  transform: perspective(900px) translateY(-6px) rotateX(2deg);
}

.teaser-card:active {
  transform: translateY(-1px) scale(0.995);
}

.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tc-num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.tc-badge {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--bg-card) 82%, var(--bg-surface));
  border: 1px solid var(--border-md);
  color: var(--text-2);
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: background 0.4s ease;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.tc-visual {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 8px 11px;
  position: relative;
  overflow: hidden;
  transform: translateZ(22px);
  transition: transform 0.42s var(--ease-out), border-color 0.3s ease;
}

.tc-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24) 48%, transparent 76%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%);
  opacity: 0.86;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.tc-visual.tc-visual-empty::after {
  content: 'Image coming soon';
  position: absolute;
  top: 8px;
  right: 9px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 1;
}

.tc-visual-aws  { background: linear-gradient(135deg, #e8f4ed 0%, #c8e8d8 100%); }
.tc-visual-net  { background: linear-gradient(135deg, #edf0f4 0%, #d0d8e4 100%); }
.tc-visual-linux{ background: linear-gradient(135deg, #f4f0e8 0%, #e4dcc8 100%); }
.tc-visual-iot  { background: linear-gradient(135deg, #f0edf4 0%, #dcd0e4 100%); }
.tc-visual-web  { background: linear-gradient(135deg, #f4eef0 0%, #e4d0d8 100%); }

[data-theme="dark"] .tc-visual-aws  { background: linear-gradient(135deg, #13231a 0%, #1a3525 100%); }
[data-theme="dark"] .tc-visual-net  { background: linear-gradient(135deg, #161820 0%, #222530 100%); }
[data-theme="dark"] .tc-visual-linux{ background: linear-gradient(135deg, #1f1c14 0%, #2e2818 100%); }
[data-theme="dark"] .tc-visual-iot  { background: linear-gradient(135deg, #1a1520 0%, #251a30 100%); }
[data-theme="dark"] .tc-visual-web  { background: linear-gradient(135deg, #1e1418 0%, #2c1820 100%); }

.tc-visual-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  opacity: 0.62;
  z-index: 0;
  transform: scale(1.05);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.tc-visual-image[src=""] {
  display: none;
}

.tc-visual:hover .tc-visual-image {
  opacity: 0.86;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.08);
}

.teaser-card:hover .tc-visual {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border-md));
  transform: translateZ(38px) translateY(-2px);
}

.teaser-card:hover .tc-title,
.teaser-card:hover .tc-desc,
.teaser-card:hover .tc-arrow {
  transform: translateZ(18px);
}

.tc-visual:hover::before {
  opacity: 0.95;
}

.tc-visual-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #fff;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
}

.tc-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  transition: transform 0.42s var(--ease-out), color 0.25s ease;
}

.tc-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.72;
  flex: 1;
  transition: transform 0.42s var(--ease-out);
}

.tc-arrow {
  font-size: 0.95rem;
  color: var(--accent);
  align-self: flex-end;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.teaser-card:hover .tc-arrow { transform: translateZ(18px) translateX(5px); }

/* ============================================================
   CONTACT NUDGE
============================================================ */
.contact-nudge {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.contact-nudge-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: background 0.4s ease;
}

.cn-text h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  margin-top: 0.3rem;
}

.cn-text p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.82;
}

.cn-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — PROGRESSIVE ENHANCEMENT
============================================================ */
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cn-actions { flex-direction: row; flex-wrap: wrap; }

  .domain-inner { padding: 2.5rem; }

  .teaser-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

@media (min-width: 768px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
  }
  .hero-left { order: 1; }
  .hero-right { order: 2; align-items: center; }

  .photo-frame { width: 220px; height: 264px; }
  .hero-side-stats { max-width: 220px; }

  .teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .intro-grid {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    justify-content: center;
  }
  .intro-text,
  .intro-cards {
    flex: 0 1 520px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .hero-statement { font-size: 1.04rem; max-width: 480px; }

  .photo-frame { width: 280px; height: 330px; }
  .hero-side-stats { max-width: 280px; }

  .domain-inner { flex-direction: row; gap: 4rem; padding: 3.5rem; }
  .domain-left { flex: 1; }
  .domain-right { flex: 1.1; }

  .teaser-grid { grid-template-columns: repeat(3, 1fr); }

  .intro-section { padding: 7rem 0; }
  .tc-visual { height: 110px; }

  .contact-nudge-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    gap: 3rem;
  }
  .cn-text { flex: 1; }
  .cn-actions { flex-direction: column; min-width: 170px; }
}

@media (max-width: 767px) {
  .hero-statement {
    line-height: 1.9;
    margin-bottom: 2.2rem;
  }

  .teaser-grid {
    gap: 1.2rem;
  }

  .teaser-card {
    padding: 1.45rem 1.2rem;
  }

  .photo-badge {
    left: 8px;
    right: 8px;
    bottom: 8px;
    white-space: normal;
  }

  .photo-badge > span {
    line-height: 1.3;
  }
}
