/* =========================================================
   Lamplight.gr — Portfolio
   Design system: monochrome / high-contrast, amber as a small accent
   Fredoka (display) + Manrope (body)
   ========================================================= */

:root {
  /* Monochrome palette */
  --bg-deep: #050506;
  --bg-base: #0a0a0c;
  --bg-raised: #131316;
  --bg-raised-2: #1b1b1f;
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Amber — used only as a small accent */
  --amber: #f5a623;
  --amber-bright: #ffc266;
  --amber-dim: #c9821c;
  --amber-glow: rgba(245, 166, 35, 0.25);

  /* Magenta + yellow — secondary accents for kickers, badges & doodles */
  --magenta: #ff2fa0;
  --magenta-bright: #ff6cc4;
  --magenta-glow: rgba(255, 47, 160, 0.25);
  --yellow: #ffe14d;
  --yellow-glow: rgba(255, 225, 77, 0.22);

  /* Text */
  --text-primary: #f7f7f8;
  --text-secondary: #a3a3ab;
  --text-muted: #6c6c74;

  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--bg-deep);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #241705;
  box-shadow: 0 8px 24px var(--amber-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--amber-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Nav (embedded in hero) ----------
   A small circular lamp button anchors the group. Hovering (or
   focusing) it reveals the section links as a flyout card; the
   language switch sits below as plain vertical text, with no pill
   chrome of its own. */
.pill-nav-group {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.lamp-nav {
  position: relative;
}

.lamp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lamp-nav:hover .lamp-btn,
.lamp-nav:focus-within .lamp-btn {
  transform: scale(1.08);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-glow), var(--shadow-soft);
}

.lamp-menu {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  padding: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lamp-nav:hover .lamp-menu,
.lamp-nav:focus-within .lamp-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.lamp-menu a {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lamp-menu a:hover {
  background: var(--bg-raised-2);
  color: var(--text-primary);
}

.lang-switch-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ---------- Menu toggle + overlay nav ---------- */
.menu-toggle {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 6px 2px;
}

.menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 18px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  padding: 0 40px;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.overlay-nav a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.overlay-nav a:hover {
  color: var(--amber-bright);
}

body.menu-open {
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--amber);
  color: #241705;
}

.lang-btn:not([aria-pressed="true"]):hover {
  color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 13rem);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--magenta-glow);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* A solid-black duplicate of the watermark, revealed only inside a
   circle that script.js keeps synced to the blob's live position/size
   — so the letters read as a dark "cutout" specifically where the blob
   passes behind them, while the ghost outline above stays untouched
   everywhere else. */
.hero-watermark-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  --blob-x: 50%;
  --blob-y: 50%;
  --blob-r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--blob-r) at var(--blob-x) var(--blob-y), #000 0%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--blob-r) at var(--blob-x) var(--blob-y), #000 0%, #000 55%, transparent 100%);
}

.hero-watermark-fill span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 13rem);
  letter-spacing: 0.02em;
  color: var(--bg-deep, #050506);
  white-space: nowrap;
}

/* ---------- Decorative doodles ---------- */
.doodles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.doodle {
  position: absolute;
  opacity: 0.55;
}

.doodle-ring {
  width: 46px;
  height: 46px;
  border: 2px dashed var(--magenta);
  border-radius: 50%;
}

.doodle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.doodle-plus {
  width: 22px;
  height: 22px;
}

.doodle-plus::before,
.doodle-plus::after {
  content: "";
  position: absolute;
  background: var(--yellow);
}

.doodle-plus::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.doodle-plus::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.doodle-scribble {
  width: 60px;
  height: 30px;
  border: 2px solid var(--magenta-bright);
  border-radius: 50%;
  transform: rotate(-12deg);
  opacity: 0.35;
}

.doodle-1 { top: 14%; left: 6%; }
.doodle-2 { top: 68%; left: 12%; }
.doodle-3 { top: 24%; left: 46%; }
.doodle-4 { top: 78%; left: 52%; }
.doodle-5 { top: 10%; right: 8%; }
.doodle-6 { top: 55%; right: 4%; }

.doodle {
  animation: doodleFloat 7s ease-in-out infinite;
}

.doodle-1 { animation-duration: 6.5s; animation-delay: 0s; }
.doodle-2 { animation-duration: 8s; animation-delay: 0.6s; }
.doodle-3 { animation-duration: 7.2s; animation-delay: 1.2s; }
.doodle-4 { animation-duration: 9s; animation-delay: 0.3s; }
.doodle-5 { animation-duration: 6.8s; animation-delay: 0.9s; }
.doodle-6 { animation-duration: 7.6s; animation-delay: 1.5s; }

@keyframes doodleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -14px) rotate(6deg); }
}

.doodle-scribble {
  animation-name: doodleFloatScribble;
}

@keyframes doodleFloatScribble {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-10px); }
}

.hero-glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 46%;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, var(--amber-glow), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--text-primary);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.glow-text {
  color: var(--amber-bright);
  text-shadow: 0 0 14px var(--amber-glow);
  animation: glowPulse 3.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 12px var(--amber-glow); }
  50% { text-shadow: 0 0 26px var(--amber-glow), 0 0 10px var(--amber-bright); }
}

.hero-scroll {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll-mouse {
  position: relative;
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.hero-scroll:hover .hero-scroll-mouse {
  border-color: var(--amber);
}

.hero-scroll-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 6px 1px var(--amber-glow);
  transform: translateX(-50%);
  animation: heroScrollDot 1.8s ease-in-out infinite;
}

@keyframes heroScrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 14px); opacity: 0; }
  61% { transform: translate(-50%, 0); opacity: 0; }
  85% { opacity: 1; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.hero-status {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px var(--amber-glow);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}

/* Soft zoom as sections scroll through the viewport — progressive
   enhancement only; browsers without scroll-driven animation support
   just see the sections at normal scale (native scroll unaffected). */
@supports (animation-timeline: view()) {
  .section {
    animation: sectionZoom linear both;
    animation-timeline: view();
  }
}

@keyframes sectionZoom {
  0%   { transform: scale(0.92); opacity: 0.55; }
  50%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.55; }
}

/* ---------- Pinned scrollytelling mode ----------
   Enabled by JS (html.pin-mode, set synchronously in <head> when the
   browser supports position: sticky). The hero + sections stay pinned
   in one fixed viewport; scrolling crossfades between them instead of
   moving the page. Crossfade opacity is driven by script.js reading
   real scroll position (not CSS scroll-timeline — a view-timeline
   anchored to #pinWrap can't reach a true 0% when there isn't a full
   viewport of scrollable space above it, which is the case here right
   below the header). Native scroll itself is never intercepted. */
html.pin-mode .section {
  animation: none;
}

html.pin-mode #pinWrap {
  position: relative;
  height: 500vh;
}

html.pin-mode .pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

html.pin-mode .pin-bg-blob {
  position: absolute;
  top: 46%;
  left: 78%;
  width: 900px;
  height: 900px;
  z-index: 0;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--amber) 55%, var(--yellow) 100%);
  filter: blur(90px);
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.15);
  will-change: transform, opacity, left, top;
}

html.pin-mode .panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
  /* Only the outer page scrollbar (driving the pinned-scroll progress)
     should ever be visible. Each panel can still scroll internally as a
     fallback when its content doesn't fit one viewport, but its own
     scrollbar would sit flush against the outer one and read as a
     duplicate. */
  scrollbar-width: none;
}

html.pin-mode .panel::-webkit-scrollbar {
  display: none;
}

html.pin-mode .panel.is-active {
  pointer-events: auto;
}

html.pin-mode #top {
  opacity: 1;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 80%, transparent);
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--magenta-bright);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-sub {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--amber-bright);
  margin-bottom: 4px;
}

.stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Work / Case studies ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.work-card.is-placeholder {
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-base);
  box-shadow: none;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-raised-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-media img {
  transition: transform 0.5s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.07);
}

.work-card.is-placeholder .work-media {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
}

.work-media-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.work-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 47, 160, 0.15);
  color: var(--magenta-bright);
  border: 1px solid rgba(255, 47, 160, 0.3);
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.work-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.work-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-list li {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-raised-2);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.work-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.work-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-bright);
}

.work-link.is-disabled {
  color: var(--text-muted);
  cursor: default;
}

/* ---------- Contact ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  max-width: 760px;
  margin-bottom: 36px;
}

.form-field {
  position: relative;
  margin-bottom: 26px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 2px 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--magenta);
}

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

.contact-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 760px;
  margin-bottom: 28px;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-soft);
}

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

/* ---------- Footer (embedded at the bottom of the contact panel) ---------- */
.embedded-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    padding: 120px 0 100px;
    min-height: unset;
  }

  .hero-scroll {
    left: 24px;
    bottom: 24px;
  }

  .hero-status {
    right: 24px;
    bottom: 24px;
    font-size: 0.72rem;
    padding: 8px 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll,
  .hero-status {
    position: static;
    margin-top: 24px;
  }

  .hero-status {
    display: inline-flex;
  }

  .nav-overlay {
    padding: 0 24px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 20px;
  }

  .pill-nav-group {
    left: 14px;
    top: 16px;
    transform: none;
  }

  .menu-toggle {
    top: 14px;
    right: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section {
    animation: none;
  }

  html.pin-mode #pinWrap {
    height: auto;
  }

  html.pin-mode .pin-stage {
    position: static;
    height: auto;
    overflow: visible;
  }

  html.pin-mode .pin-bg-blob {
    display: none;
  }

  html.pin-mode .panel {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    animation: none;
    overflow: visible;
  }

  .btn,
  .service-card {
    transition: none;
  }

  .doodle {
    animation: none;
  }

  .hero-scroll-dot {
    animation: none;
  }

  .glow-text {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .work-media img {
    transition: none;
  }
}
