/* ========================================
   SEGMENT — Bold Tech-Organic Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg: #070B0A;
  --bg-card: #0F1513;
  --bg-card-hover: #141E1A;
  --bg-elevated: #1A2420;
  --green: #3DDC84;
  --green-dim: #2AA366;
  --green-glow: rgba(61, 220, 132, 0.15);
  --gold: #F6D764;
  --gold-dim: #D4B84E;
  --gold-glow: rgba(246, 215, 100, 0.15);
  --lavender: #B8A9E8;
  --lavender-dim: #8B7BBF;
  --lavender-glow: rgba(184, 169, 232, 0.1);
  --text: #E8E6E1;
  --text-secondary: #9A9890;
  --text-faint: #5A5850;
  --white: #F5F4F0;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;

  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p {
  font-size: 1.05rem;
  max-width: 600px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-xl) 0; }
.section--lg { padding: var(--space-xxl) 0; }

/* --- Gradient Orb Decorations --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb--green {
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
}

.orb--lavender {
  background: radial-gradient(circle, var(--lavender-glow), transparent 70%);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  background: rgba(7, 11, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
}

.nav.scrolled .nav__inner {
  background: rgba(7, 11, 10, 0.9);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--bg);
  background: var(--gold);
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--white);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--gold-glow);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero (Editorial style) --- */
.hero--editorial {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

#heroPixelOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero__textbox {
  position: relative;
  z-index: 2;
  background: rgba(7, 11, 10, 0.88);
  backdrop-filter: blur(8px);
  padding: var(--space-lg);
  max-width: 480px;
  margin-left: clamp(var(--space-md), 8vw, 120px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.hero__textbox .hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__textbox .hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}

.hero__textbox .hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.hero__textbox .hero__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.hero__textbox .hero__actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero__textbox {
    margin: 0 var(--space-sm);
    max-width: calc(100% - var(--space-md));
    padding: var(--space-md);
  }

  .hero__textbox .hero__title {
    font-size: 1.5rem;
  }
}

/* Hero orb positions kept for other pages */

/* Hero content styles moved to .hero__textbox above */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text-faint);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--link {
  background: none;
  padding: 0;
  color: var(--gold);
  font-weight: 500;
  border-radius: 0;
}

.btn--link:hover {
  color: var(--white);
}

.btn--link::after {
  content: ' →';
}

.btn--linkedin {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-faint);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--linkedin:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.1);
  transform: translateY(-2px);
}

/* --- Clients --- */
.clients {
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-lg) 0;
}

.clients__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--space-md);
  text-align: center;
}

.clients__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .clients__grid {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

.clients__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: color var(--transition);
}

.clients__logo:hover {
  color: var(--text-secondary);
}

.clients__logo-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.clients__logo-img:hover {
  opacity: 0.8;
}

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
}

#aboutCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#aboutPhoto {
  transition: opacity 0.5s ease;
}

.about__image.pixelating #aboutPhoto {
  opacity: 0.3;
}

.about__image.dissolved #aboutPhoto {
  opacity: 0;
}

.about__linkedin {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  text-decoration: none;
}

.about__linkedin svg {
  filter: drop-shadow(0 0 12px var(--gold-glow));
  transition: transform var(--transition);
}

.about__linkedin span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about__linkedin:hover svg {
  transform: scale(1.15);
}

.about__image.dissolved .about__linkedin {
  opacity: 1;
  pointer-events: auto;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-style: italic;
}

.about__text h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.about__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.about__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
}

.about__stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* --- Services --- */
.services__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.services__header h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.services__header p {
  margin: 0 auto;
  color: var(--text-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

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

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Work / Projects --- */
.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.work__header h2 { color: var(--white); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.project-card__image {
  position: relative;
  overflow: hidden;
  padding-bottom: 62.5%; /* 16:10 ratio */
}

.project-card__image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.project-card:hover .project-card__image-bg {
  transform: scale(1.04);
}

.project-card__body {
  padding: var(--space-md);
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lavender-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--text-secondary);
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* --- Tools --- */
.tools {
  text-align: center;
}

.tools h3 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.tools__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 auto var(--space-md);
}

.tools__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.tools__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
  transition: all var(--transition);
}

.tools__item:hover {
  color: var(--text-secondary);
}

.tools__logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.tools__item:hover .tools__logo {
  opacity: 0.9;
}

/* --- Status Board --- */
.status-board {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.04);
}

.status-board__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.status-board__header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.status-board__live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.status-board__pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
}

.status-board__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.status-board__card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) calc(var(--space-sm) * 1.2);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
}

.status-board__card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.status-board__card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.status-board__dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-glow);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-board__card:nth-child(2) .status-board__dot {
  animation-delay: 0.6s;
}

.status-board__card:nth-child(3) .status-board__dot {
  animation-delay: 1.2s;
}

.status-board__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.status-board__card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.status-board__card-client {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.status-board__card-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .status-board__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--text); }

.footer__copy {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.04);
}
  gap: 0;
}

  5% { opacity: 1; }
  10% { backdrop-filter: blur(0px); }
  15% { backdrop-filter: blur(1px); }
  50% { backdrop-filter: blur(2px); }
  85% { backdrop-filter: blur(1px); }
  95% { opacity: 1; }
  100% { backdrop-filter: none; opacity: 0; }
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: 140px;
  padding-bottom: var(--space-xl);
}

.contact-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__form {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

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

.contact__info {
  padding-top: var(--space-md);
}

.contact__info h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact__info > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.04);
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact__detail-text strong {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.contact__detail-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact__faq {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
}

.contact__faq-q {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 0.3rem;
  font-style: italic;
}

.contact__faq-a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 100%;
}

/* --- Projects Page --- */
.projects-hero {
  padding-top: 140px;
  padding-bottom: var(--space-lg);
}

.projects-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.projects-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.project-card--full {
  grid-column: 1 / -1;
}

.project-card--full .project-card__image {
  padding-bottom: 42.8%; /* 21:9 ratio */
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.hero .animate-in:nth-child(1) { animation-delay: 0.15s; }
.hero .animate-in:nth-child(2) { animation-delay: 0.3s; }
.hero .animate-in:nth-child(3) { animation-delay: 0.45s; }
.hero .animate-in:nth-child(4) { animation-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about__image { max-height: 400px; }
  .services__grid { grid-template-columns: 1fr; }
  .work__grid, .projects__grid { grid-template-columns: 1fr; }
  .project-card--full .project-card__image { padding-bottom: 62.5%; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-section { padding: var(--space-lg) var(--space-md); }
}

@media (max-width: 640px) {
  .nav__inner { padding-right: 1.2rem; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 11, 10, 0.95);
    backdrop-filter: blur(16px);
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links.open .nav__cta { margin-left: 0; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: var(--space-xl); }
  .about__stats { flex-direction: column; gap: var(--space-sm); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; }
  .work__header { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
}

/* --- Project Detail Page --- */
.project-hero {
  padding-top: 100px;
  padding-bottom: var(--space-lg);
}

.project-hero__image {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.project-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.project-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-hero__meta-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.project-hero__meta-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.project-detail {
  padding: var(--space-lg) 0;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
}

.project-detail__sidebar h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.project-detail__sidebar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-detail__content h2 {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.project-detail__content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.project-detail__gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.04);
}

.project-detail__gallery--full {
  grid-template-columns: 1fr;
}

.project-detail__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
}

.project-detail__result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.project-detail__result-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.project-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.project-nav a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .project-detail__grid {
    grid-template-columns: 1fr;
  }

  .project-detail__gallery {
    grid-template-columns: 1fr;
  }

  .project-detail__results {
    grid-template-columns: 1fr;
  }

  .project-hero__image {
    padding-bottom: 62.5%;
  }
}


/* Team page */
.team-hero { padding-top: 170px; padding-bottom: var(--space-lg); }
.team-hero h1 { color: var(--white); margin-bottom: var(--space-sm); }
.team-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 52ch; }

.team { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-xl); }
.team__member { display: grid; grid-template-columns: 230px 1fr; gap: var(--space-lg); align-items: center; }
.team__photo { position: relative; width: 230px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.6s ease; }
.team__photo::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); pointer-events: none; }
@media (hover: hover) {
  .team__photo img { filter: grayscale(0.45) brightness(0.92); }
  .team__member:hover .team__photo img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
}
.team__info { min-width: 0; }
.team__name { margin-bottom: 0.2rem; }
.team__role { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: var(--space-sm); }
.team__bio { color: var(--text-secondary); line-height: 1.75; margin-bottom: var(--space-md); }
.team__linkedin { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); transition: color var(--transition); }
.team__linkedin svg { width: 17px; height: 17px; }
.team__linkedin:hover { color: var(--white); }
@media (max-width: 720px) {
  .team__member { grid-template-columns: 1fr; gap: var(--space-md); justify-items: start; }
  .team__photo { width: 100%; max-width: 260px; }
}

/* Footer group line (renders across every page) */
.footer .container::after {
  content: "Segment is part of a group of businesses, PA (1993) Limited.";
  display: block;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}
@media (max-width: 640px) { .footer .container::after { text-align: center; } }
