/* JED Systems — Premium Studio Design System */

:root {
  --navy-deep: #07111f;
  --navy: #0d1117;
  --slate: #1e293b;
  --blue: #00a8ff;
  --cyan: #00d1ff;
  --off-white: #f7fafc;
  --page: #f3f7fb;
  --surface: #ffffff;
  --ink: #0b1726;
  --muted: #526377;
  --line: #dce8f2;
  --line-strong: #c5d8ea;
  --shadow-xs: 0 1px 2px rgba(7, 17, 31, 0.04);
  --shadow-sm: 0 4px 18px rgba(7, 17, 31, 0.06);
  --shadow-md: 0 14px 40px rgba(7, 17, 31, 0.08);
  --shadow-lg: 0 24px 56px rgba(7, 17, 31, 0.1);
  --shadow-blue: 0 10px 24px -12px rgba(0, 168, 255, 0.45);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --container: 74rem;
  --container-wide: 78rem;
  --header-h: 4.25rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --prose: 40rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #0077b8; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue); }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.125rem, 4.6vw, 3.875rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); line-height: 1.12; }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: var(--prose);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: fixed; top: -3rem; left: 1rem; z-index: 2000;
  padding: 0.45rem 0.75rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600;
}
.skip-link:focus { top: 0.65rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, var(--container-wide)); margin-inline: auto; }

/* Buttons — compact premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.625rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: var(--navy-deep);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: 0 16px 34px -16px rgba(0, 168, 255, 0.55); color: var(--navy-deep); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: rgba(0, 168, 255, 0.35); background: var(--off-white); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }

.btn-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f0f6fc;
}
.btn-dark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-sm {
  min-height: 2.375rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
}

.btn-hero {
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  font-size: 0.90625rem;
}

.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.16);
  color: #0077b8;
}
.badge-live { background: rgba(0, 168, 255, 0.1); border-color: rgba(0, 168, 255, 0.28); color: #006699; }
.badge-example { background: var(--off-white); border-color: var(--line); color: var(--muted); }
.pill {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--off-white);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Header — dark glass so transparent logo reads clearly */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.logo-link { display: flex; align-items: center; line-height: 0; }
.logo-link img { height: 2.125rem; width: auto; max-width: 11rem; object-fit: contain; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: clamp(0.65rem, 1.4vw, 1.35rem); }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8c5d6;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active, .main-nav a[aria-current="page"] { color: var(--cyan); }

.header-actions { display: none; }
.header-actions .btn {
  min-height: 2.375rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.84375rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.menu-toggle span { width: 1rem; height: 1.5px; border-radius: 999px; background: #e2e8f0; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  padding: 0.85rem;
  background: rgba(7, 17, 31, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: grid; gap: 0.4rem; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #e2e8f0;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--cyan); border-color: rgba(0, 209, 255, 0.25); }
.mobile-nav .btn { width: 100%; margin-top: 0.4rem; }
body.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .main-nav, .header-actions { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .logo-link img { height: 2.25rem; }
}

/* Sections */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--off-white); }
.section--white { background: var(--surface); }
.section--dark {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: #e2e8f0;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f8fafc; }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: var(--prose); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head h2 { margin-bottom: 0.65rem; }
.section-head p { color: var(--muted); line-height: 1.7; }

/* Hero */
.hero {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(0, 168, 255, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }

.hero-copy { max-width: 32rem; }
.hero-copy .eyebrow { margin-bottom: 0.85rem; }
.hero-copy h1 { margin-bottom: 1rem; max-width: 18ch; }
.hero-copy .lead { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.35rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Hero mockup */
.hero-visual {
  position: relative;
  min-height: clamp(16rem, 34vw, 22rem);
  animation: fade-up 0.9s var(--ease) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.mockup-stage { position: relative; width: min(100%, 26rem); margin-inline: auto; }

.mockup-browser {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}
.mockup-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; }
.mockup-dot--r { background: #f87171; }
.mockup-dot--y { background: #fbbf24; }
.mockup-dot--g { background: #4ade80; }
.mockup-url {
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.625rem;
  color: var(--muted);
}
.mockup-body { padding: 1rem; }
.mockup-shimmer {
  height: 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.mockup-line { height: 0.35rem; border-radius: 999px; background: var(--line); margin-bottom: 0.4rem; }
.mockup-line--sm { width: 68%; }
.mockup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-top: 0.75rem; }
.mockup-tile {
  aspect-ratio: 1.15;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(0, 168, 255, 0.1), rgba(0, 209, 255, 0.05));
  border: 1px solid rgba(0, 168, 255, 0.12);
}

.mockup-float {
  position: absolute;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
  animation: float-y 5.5s ease-in-out infinite;
}
.mockup-float::before {
  content: '';
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  vertical-align: middle;
}
.mockup-float--quote { top: 6%; right: -2%; animation-delay: -1s; }
.mockup-float--portal { bottom: 10%; left: -4%; animation-delay: -2.5s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mockup-progress {
  margin-top: 0.65rem;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.mockup-progress span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  animation: progress 4s ease-in-out infinite;
}
@keyframes progress {
  0%, 100% { width: 48%; }
  50% { width: 78%; }
}

/* Capability panels */
.panel-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (min-width: 900px) { .panel-grid { grid-template-columns: repeat(2, 1fr); } }

.panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 168, 255, 0.22);
}
.panel__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: #0077b8;
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.14);
}
.panel h3 { margin-bottom: 0.45rem; }
.panel > p { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.panel__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.panel__tag {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--line);
}

/* Work cards */
.work-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 768px) { .work-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card--live { border-color: rgba(0, 168, 255, 0.22); }
.work-card__media { aspect-ratio: 16/10; background: var(--off-white); border-bottom: 1px solid var(--line); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.work-card__body p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; flex: 1; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.work-card__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }

/* Process */
.process {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(6, 1fr); } }

.process__step {
  padding: 1rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.process__step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  margin-bottom: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.process__step h3 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.process__step p { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.process__step.is-visible { border-color: rgba(0, 168, 255, 0.25); box-shadow: var(--shadow-xs); }

/* Values */
.values { display: grid; gap: 1rem; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values--3 { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.value h3 { font-size: 0.9375rem; margin-bottom: 0.35rem; }
.value p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* CTA */
.cta-band {
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(0, 168, 255, 0.12), transparent 55%),
    linear-gradient(145deg, #0a1525, var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}
.cta-band h2 { color: #f8fafc; margin-bottom: 0.6rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.cta-band p { max-width: 34rem; margin-inline: auto; margin-bottom: 1.25rem; line-height: 1.65; font-size: 0.9375rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* Page hero */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
  background: linear-gradient(180deg, #fff, var(--page));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.65rem; max-width: 16ch; }
.page-hero .lead { max-width: 36rem; }

/* Services */
.service-block {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-xs);
}
.service-block__head { margin-bottom: 1.25rem; max-width: 38rem; }
.service-block__head .eyebrow { margin-bottom: 0.5rem; }
.service-block__head p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; margin-top: 0.4rem; }
.service-list {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-list li {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--off-white);
}
.service-list h3 { font-size: 0.875rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.2rem; }
.service-list p { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1.75rem; }
.filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-btn:hover { border-color: rgba(0, 168, 255, 0.3); color: #0077b8; }
.filter-btn.active {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent;
  color: var(--navy-deep);
}
.project-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.project-card__img { aspect-ratio: 16/10; background: var(--off-white); border-bottom: 1px solid var(--line); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.project-card__body p { font-size: 0.875rem; color: var(--muted); line-height: 1.55; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.cap-strip {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  padding: 1.15rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.cap-strip span {
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--off-white); border: 1px solid var(--line); color: #0077b8;
}
.portfolio-empty, .portfolio-error {
  grid-column: 1 / -1; padding: 1.5rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: var(--surface);
}

/* Forms */
.form-wrap {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.form-notice {
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(0, 168, 255, 0.07);
  border: 1px solid rgba(0, 168, 255, 0.16);
  font-size: 0.875rem;
  color: #006699;
  line-height: 1.55;
}
.form-notice a { text-decoration: underline; }
.form-group { margin-bottom: 0.85rem; }
.form-group label, .form-group legend {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
.form-control {
  width: 100%; min-height: 2.625rem; padding: 0.625rem 0.8rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--off-white); font: inherit; font-size: 0.9375rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: rgba(0, 168, 255, 0.45); box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1); background: var(--surface); }
textarea.form-control { min-height: 7rem; resize: vertical; }
.form-row { display: grid; gap: 0.85rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.check-grid { display: grid; gap: 0.4rem; }
@media (min-width: 560px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-item {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.6rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--off-white);
  font-size: 0.8125rem;
}
.contact-split { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .contact-split { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.info-box {
  padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  margin-bottom: 0.65rem;
}
.info-box h3 { font-size: 0.875rem; margin-bottom: 0.3rem; }
.info-box p { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

/* About / legal */
.prose { max-width: 40rem; }
.prose p { color: var(--muted); margin-bottom: 0.85rem; line-height: 1.7; }
.prose h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.prose ul { margin: 0.5rem 0 1rem; padding-left: 1.15rem; }
.prose li { list-style: disc; color: var(--muted); margin-bottom: 0.35rem; line-height: 1.6; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand img { height: 1.75rem; width: auto; margin-bottom: 0.65rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 24rem; }
.footer-col h4 {
  font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #e2e8f0; margin-bottom: 0.5rem;
}
.footer-col ul { display: grid; gap: 0.35rem; }
.footer-col a { color: #cbd5e1; font-size: 0.875rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-legal { display: flex; gap: 0.85rem; }

/* Utils */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.panel, .work-card, .project-card { position: relative; overflow: hidden; }
.panel::after, .work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 168, 255, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.panel:hover::after, .work-card:hover::after { opacity: 1; }

.error-page {
  min-height: 55vh; display: grid; place-items: center; text-align: center;
  padding-block: var(--section-y);
}
.error-page h1 { font-size: clamp(3.5rem, 10vw, 6rem); color: var(--blue); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }

@media (max-width: 430px) {
  .hero-actions, .cta-band__actions, .error-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-band__actions .btn { width: 100%; }
  .mockup-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-visual { animation: none; }
  .mockup-float, .mockup-shimmer, .mockup-progress span { animation: none; }
}
