:root {
  --bg: #0b0d10;

  --bg-alt: #10131a;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf2;
  --muted: #b9c0cd;
  --accent: #ff8f3f;
  --accent-2: #4be0c3;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1100px;
  color-scheme: dark;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(75, 224, 195, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(255, 143, 63, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 255, 255, 0.05),
      transparent 40%
    ),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Sora", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

.about-h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 100;
}

.container {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
}

.hero-container,
.about-container {
  width: min(92vw, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 143, 63, 0.07),
    rgba(75, 224, 195, 0.07)
  );
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: -2;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: 0.25;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 16, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  transform: translateY(0);
  transition: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  gap: 1.6rem;
  width: min(96vw, 1200px);
}

.brand {
  display: grid;
  grid-auto-flow: column;
  gap: 0.8rem;
  align-items: center;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d10;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

.logo img {
  width: 68%;
  height: 68%;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  font-size: 35px;
  padding-left: 30px;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 30px;
}

.nav {
  position: relative;
  margin-left: 3.2rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  margin-bottom: 6px;
  border-radius: 999px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.05rem;
  background: linear-gradient(
      135deg,
      rgba(255, 143, 63, 0.22),
      rgba(75, 224, 195, 0.18)
    ),
    rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 140ms ease, box-shadow 140ms ease,
    border-color 140ms ease, background 140ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 143, 63, 0.65);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
      135deg,
      rgba(255, 143, 63, 0.28),
      rgba(75, 224, 195, 0.24)
    ),
    rgba(255, 255, 255, 0.08);
}

.nav-links .pill {
  font-size: 20px;
  line-height: 1;
}

.video-hero {
  position: relative;
  width: 100%;
  margin: 0;
  transform: none;
  height: 80svh;
  min-height: 80vh;
  min-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero::after {
  content: none;
}

.video-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  background: #0b0d10;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.video-hero > .container {
  position: relative;
  z-index: 2;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrapper .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-width: 177.78vh; /* cover when viewport is taller */
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.video-overlay.texture {
  background: url("video/video-overlay-1080.png") repeat;
  opacity: 0.25;
  mix-blend-mode: screen;
  background-size: 180px 180px;
}

.video-overlay.shade {
  background: linear-gradient(
    180deg,
    rgba(11, 13, 16, 0.35),
    rgba(11, 13, 16, 0.65)
  );
}

.video-text {
  position: absolute;
  inset: 0;
  max-width: min(96vw, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0 1.2rem;
  z-index: 2;
  color: var(--text);
  pointer-events: none;
  transform: translateY(-6vh);
}

.video-text h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.video-text h2 span {
  display: block;
}

.video-text .video-line {
  width: 510px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  border-radius: 999px;
  margin: 0.2rem 0;
}

@media (max-width: 1100px) {
  .video-text h2 {
    font-size: clamp(20px, 4vw, 32px);
  }

  .video-text .video-line {
    width: min(70vw, 360px);
  }
}

.about-me {
  padding: 8rem 0 8rem;
  background: linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.8),
      rgba(11, 13, 16, 0.95)
    ),
    url("img/bg-experience/experience-xl.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* border-bottom: 1px solid var(--border); */
}

.hero {
  padding: 8rem 0 8rem;
  background: linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.7),
      rgba(11, 13, 16, 0.9)
    ),
    url("img/bg-services/services-xl.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.services-wrapper {
  display: grid;
  gap: 1.5rem;
  width: 85%;
  margin: 0 auto;
}

.services-header {
  display: grid;
  gap: 0.4rem;
  align-items: start;
}

.services-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0;
}

.services-underline {
  width: 250px;
  height: 3px;
  background: var(--accent-2);
  border-radius: 999px;
}

.services-list {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 1rem 0;
}

.services-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-row:last-of-type {
  border-bottom: none;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.service-item h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-item .lead {
  margin: 0.4rem 0 0;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  margin-right: 4rem;
}

.service-icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: brightness(1.1);
}

.media-portfolio {
  background: var(--bg-alt);
}

.media-wrapper {
  display: grid;
  gap: 1.5rem;
}

.media-portfolio-heading {
  display: grid;
  gap: 0.4rem;
}

.media-line {
  width: 340px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  border-radius: 999px;
  justify-self: center;
}

.media-player {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.software-section {
  position: relative;
  background: linear-gradient(rgba(11, 13, 16, 0.75), rgba(11, 13, 16, 0.75)),
    url("img/the-beast-awakens.jpg?v=2") center/cover fixed no-repeat;
}

.software-section .container {
  width: min(80vw, 1400px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.software-list {
  display: grid;
  gap: 2.4rem;
}

.software-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: center;
}

.software-item.reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.software-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0a0c0f;
  object-fit: cover;
}

.software-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.software-chips {
  display: flex;
  gap: 0.5rem;
  margin: 0.2rem 0 0.6rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.software-copy p {
  margin: 0;
  color: var(--muted);
}

.tech-skills-section {
  margin-top: 3.5rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-align: center;
}

.tech-skills-heading {
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  position: relative;
  width: fit-content;
}

.tech-skills-heading::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  border-radius: 999px;
}

.tech-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.tech-skills-grid .chip {
  transition: transform 120ms ease, background 120ms ease,
    border-color 120ms ease;
}

.tech-skills-grid .chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 143, 63, 0.4);
}

@media (max-width: 900px) {
  .tech-skills-section {
    padding: 1.5rem 1.5rem;
    margin-top: 2.5rem;
  }

  .tech-skills-heading {
    font-size: 1.3rem;
  }
}

@media (max-width: 720px) {
  .tech-skills-section {
    padding: 1.5rem 1rem;
  }

  .tech-skills-heading {
    font-size: 1.2rem;
  }

  .tech-skills-grid {
    gap: 0.5rem;
  }
}

.other-services {
  position: relative;
  background: linear-gradient(rgba(11, 13, 16, 0.35), rgba(11, 13, 16, 0.35)),
    url("img/family2.jpg?v=2") center/cover fixed no-repeat;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.other-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.other-card h3 {
  margin: 0 0 0.4rem;
}

.other-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .software-item,
  .software-item.reverse {
    grid-template-columns: 1fr;
  }

  .software-item.reverse .software-media {
    order: 0;
  }
}

.media-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}

.media-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: none;
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease,
    border-color 140ms ease;
  z-index: 2;
}

.media-play-overlay:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--accent);
}

.media-play-overlay.hidden {
  display: none;
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.media-controls label {
  color: var(--muted);
  font-weight: 600;
}

.media-controls select {
  background: rgba(11, 13, 16, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.media-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.media-thumb {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  display: grid;
  gap: 0.4rem;
  transition: transform 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
}

.media-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.media-thumb.active {
  border-color: var(--accent);
}

.thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 140ms ease;
  pointer-events: none;
}

.media-thumb.active .thumb-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.media-thumb:hover .thumb-overlay {
  opacity: 1;
}

.thumb-label {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.thumb-play {
  font-size: 1.1rem;
  opacity: 0.9;
}

.media-thumb:not(.active) .thumb-label {
  display: none;
}

.media-thumb:not(.active) .thumb-play {
  display: inline-block;
}

.thumb-title {
  display: block;
  padding: 0 0.6rem 0.8rem;
  color: var(--text);
  font-weight: 600;
}

.about-grid {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-headshot {
  width: min(380px, 70vw);
  max-width: 380px;
  flex: 0 0 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: url("img/Nance%20Headshot.JPEG") center/cover no-repeat;
  background-position: center calc(50% + 60px);
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
}

.about-grid .hero-copy {
  flex: 1 1 320px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

/* .hero-grid {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
} */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ffb763);
  color: #0b0d10;
  border: none;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric-number {
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
}

.metric-label {
  margin: 0;
  color: var(--muted);
}

.hero-card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 1.8rem;
  /* border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow); */
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: rgba(75, 224, 195, 0.12);
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.card-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--text);
  padding-left: 20px;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.other-services {
  position: relative;
  background: linear-gradient(rgba(11, 13, 16, 0.85), rgba(11, 13, 16, 0.85)),
    url("img/family2.jpg?v=2") center/cover fixed no-repeat !important;
}

.contact-section {
  position: relative;
  background: linear-gradient(rgba(11, 13, 16, 0.85), rgba(11, 13, 16, 0.85)),
    url("img/family2.jpg?v=2") center/cover fixed no-repeat !important;
}

.section-heading {
  text-align: left;
  margin-bottom: 2rem;
}

.other-services .section-heading {
  text-align: center;
  padding-top: 0.5rem;
  /* padding-bottom: 0.5rem; */
}
.other-services .section-heading h2 {
  padding-top: 1rem;
}

.media-portfolio-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 143, 63, 0.12);
  color: #ffd3b0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.process-card {
  padding: 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 143, 63, 0.12),
    rgba(75, 224, 195, 0.12)
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.process-card:hover::before {
  opacity: 1;
}

.process-card > * {
  position: relative;
  z-index: 1;
}

.process-step {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.contact-section {
  position: relative;
  background: linear-gradient(rgba(11, 13, 16, 0.35), rgba(11, 13, 16, 0.35)),
    url("img/family2.jpg?v=2") center/cover fixed no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-card {
  padding: 0.5rem 0.5rem;
  padding-left: 2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.contact-card:not(.family-photo) {
  height: 4.5rem;
}

.contact-card.family-photo {
  width: min(420px, 90vw);
  aspect-ratio: 1;
  height: auto;
  background: url("img/family.jpg") center/cover no-repeat;
  background-position: center 82%;
  border-radius: 32px;
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  padding: 0;
  margin: 0.5rem auto 0;
}

@media (max-width: 720px) {
  .contact-card.family-photo {
    width: min(320px, 88vw);
    border-radius: 28px;
  }
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.contact-form {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  align-self: center;
}

/* Anchor offset for sticky header */
#about-me,
#services-section,
#media-portfolio,
#software,
#other-services,
#top {
  scroll-margin-top: 100px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.7);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(255, 143, 63, 0.5);
}

.contact-form .field-error {
  border-color: rgba(255, 143, 63, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 143, 63, 0.25);
}

.contact-form .field-error:focus {
  outline-color: rgba(255, 143, 63, 0.75);
}

.form-status {
  display: none;
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.form-status.show {
  display: block;
}

.form-status.success {
  border-color: rgba(75, 224, 195, 0.75);
  background: linear-gradient(
      135deg,
      rgba(75, 224, 195, 0.2),
      rgba(75, 224, 195, 0.14)
    ),
    rgba(75, 224, 195, 0.08);
  color: #e9fff9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.form-status.error {
  border-color: rgba(255, 143, 63, 0.7);
  background: rgba(255, 143, 63, 0.08);
  color: #ffd9bf;
}

.contact-form.is-sending {
  opacity: 0.7;
}

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

.footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  background: #0a0c0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-cta {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.footer-simple {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social img {
  width: 84px;
  height: 84px;
  display: block;
  filter: grayscale(0.2) brightness(0.95);
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
  opacity: 0.9;
}

.footer-social img:hover {
  transform: translateY(-2px);
  filter: none;
  opacity: 1;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-header .container {
    width: min(96vw, 1100px);
    padding: 0.6rem 1rem;
    gap: 1rem;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .logo img {
    width: 70%;
    height: 70%;
  }

  .brand-name {
    font-size: 1.4rem;
    padding-left: 14px;
  }

  .brand-tagline {
    padding-left: 14px;
    font-size: 0.9rem;
  }

  .video-hero {
    height: 55vh;
    min-height: 400px;
  }

  .video-text {
    transform: translateY(-4vh);
    padding: 0 1rem;
  }

  .video-text .video-line {
    width: min(80vw, 320px);
  }

  .hero-container,
  .about-container {
    width: min(94vw, 1100px);
    padding: 0 1rem;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .services-list::before {
    display: none;
  }

  .media-thumbs {
    grid-auto-columns: 34%;
    gap: 0.4rem;
  }

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

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

  .software-item {
    gap: 1.2rem;
  }

  .software-item.reverse .software-copy {
    order: 0;
  }

  .software-item.reverse .software-media {
    order: 1;
  }
}

@media (max-width: 720px) {
  /* Fix background positioning on mobile - fixed doesn't work on iOS */
  .software-section,
  .about-me {
    background-attachment: local !important;
    background-size: cover;
    background-position: center center;
  }

  /* Make family2 background span both other-services and contact sections */
  .other-services {
    background: linear-gradient(rgba(11, 13, 16, 0.85), rgba(11, 13, 16, 0.85)),
      url("img/family2.jpg?v=2") center top / cover local no-repeat !important;
  }

  .contact-section {
    background: linear-gradient(rgba(11, 13, 16, 0.85), rgba(11, 13, 16, 0.85)),
      var(--bg) !important;
    background-attachment: local !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 110%;
    flex-direction: column;
    background: rgba(11, 13, 16, 0.95);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: min(240px, 90vw);
    box-shadow: var(--shadow);
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0.4rem;
  }

  .video-text {
    transform: translateY(-14vh);
    gap: 0.35rem;
  }

  .video-text h2 {
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .video-text .video-line {
    width: min(74vw, 180px);
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about-headshot {
    display: block;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .hero-container,
  .about-container {
    width: 94vw;
    padding: 0 0.5rem;
  }

  .media-thumbs {
    grid-auto-columns: 35%;
    gap: 0.35rem;
  }

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

  .media-thumbs {
    grid-auto-columns: 62%;
    gap: 0.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .video-text {
    transform: translateY(-12vh);
    padding: 0 0.75rem;
    gap: 0.25rem;
  }

  .video-text h2 {
    font-size: clamp(16px, 5.5vw, 22px);
    letter-spacing: 0;
  }

  .video-text .video-line {
    width: min(70vw, 140px);
  }
}

@media (max-height: 600px) {
  .video-text {
    transform: translateY(0);
  }

  .video-text h2 {
    font-size: clamp(1.2rem, 3.6vw, 1.8rem);
    line-height: 1.05;
  }

  .video-text .video-line {
    width: min(64vw, 160px);
  }
}
