/* ================================================
   KODEHUB — Refined Editorial Aesthetic
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@300;400&display=swap');

/* -----------------------------------------------
   CSS VARIABLES
------------------------------------------------ */
:root {
  --ink: #1a1a18;
  --ink-soft: #3a3a36;
  --ink-muted: #787870;
  --ink-faint: #b8b8b0;
  --paper: #f5f4f0;
  --paper-warm: #eeede8;
  --paper-cool: #fafaf8;
  --white: #ffffff;
  --accent: #b87333;
  --accent-light: #d4956a;
  --accent-dark: #8a5525;
  --accent-pale: #f0e4d6;
  --rule: rgba(26,26,24,0.1);
  --rule-strong: rgba(26,26,24,0.2);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --max-w: 1200px;
  --max-w-narrow: 860px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--paper-cool);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* -----------------------------------------------
   TYPOGRAPHY
------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.display-1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-lg {
  font-size: 1.1875rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink-soft);
}

.body-sm {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.caption {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* -----------------------------------------------
   LAYOUT UTILITIES
------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section--sm {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--rule);
}

/* -----------------------------------------------
   HEADER / NAV
------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(245, 244, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}

.site-header--dark {
  background: transparent;
}

.site-header--dark.scrolled {
  background: rgba(20, 20, 18, 0.95);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo--light { color: var(--white); }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { width: 100%; }

.nav-link--light { color: rgba(255,255,255,0.75); }
.nav-link--light:hover { color: white; }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 0.625rem 1.25rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.nav-cta--light {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.nav-cta--light:hover {
  background: white;
  color: var(--ink);
  border-color: white;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

.nav-toggle--light span { background: white; }

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 6rem var(--gutter) var(--gutter);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-drawer .nav-link:hover { color: white; }
.nav-drawer .nav-link::after { background: var(--accent); }

/* -----------------------------------------------
   HERO
------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

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

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroReveal 1.6s var(--ease-out) forwards;
}

@keyframes heroReveal {
  from { transform: scale(1.1); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 13, 0.88) 0%,
    rgba(15, 15, 13, 0.55) 50%,
    rgba(15, 15, 13, 0.2) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s var(--ease-out) forwards;
}

.hero__eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  color: var(--white);
  max-width: 900px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s var(--ease-out) forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-light);
}

.hero__subtitle {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease-out) forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.85s var(--ease-out) forwards;
}

.hero__stats {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  animation: fadeUp 0.9s 1s var(--ease-out) forwards;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  font-weight: 400;
  text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fadeIn 1.2s 1.4s forwards;
  opacity: 0;
}

.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s 1.6s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -----------------------------------------------
   SECTION HEADERS
------------------------------------------------ */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 640px;
}

.section-header--center .section-lead {
  margin: 0 auto;
}

/* -----------------------------------------------
   BUTTONS
------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.875rem 1.75rem;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 0.875rem 1.75rem;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.btn-outline--light {
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.875rem 1.75rem;
}

.btn-outline--light:hover {
  border-color: white;
  color: white;
}

.btn-ghost {
  color: var(--accent);
  padding: 0;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.btn-ghost:hover { gap: 0.875rem; }

.btn-ghost i { font-size: 0.75rem; transition: transform 0.2s; }
.btn-ghost:hover i { transform: translateX(3px); }

.btn-white {
  background: var(--white);
  color: var(--ink);
  padding: 0.875rem 1.75rem;
}

.btn-white:hover {
  background: var(--paper);
  transform: translateY(-1px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -----------------------------------------------
   SERVICES SECTION
------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--paper-cool);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
}

.service-card:hover { background: var(--paper-warm); }
.service-card:hover::before { height: 100%; }

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card__icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
  font-weight: 500;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* -----------------------------------------------
   PORTFOLIO / WORK
------------------------------------------------ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  display: block;
}

.work-card--large { grid-column: span 7; }
.work-card--small { grid-column: span 5; }
.work-card--full { grid-column: span 12; }
.work-card--third { grid-column: span 4; }

.work-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
  display: block;
}

.work-card--large .work-card__img { aspect-ratio: 4/3; }

.work-card:hover .work-card__img {
  opacity: 0.55;
  transform: scale(1.04);
}

.work-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(10,10,8,0.85));
}

.work-card__category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.work-card__title {
  color: white;
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0;
  transition: color 0.2s;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out);
}

.work-card:hover .work-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------
   PORTFOLIO PAGE GRID
------------------------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: block;
}

.portfolio-item:nth-child(1) { grid-column: span 8; }
.portfolio-item:nth-child(2) { grid-column: span 4; }
.portfolio-item:nth-child(3) { grid-column: span 4; }
.portfolio-item:nth-child(4) { grid-column: span 8; }
.portfolio-item:nth-child(5),
.portfolio-item:nth-child(6) { grid-column: span 6; }

.portfolio-item__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
  display: block;
}

.portfolio-item:nth-child(2) .portfolio-item__img,
.portfolio-item:nth-child(3) .portfolio-item__img { height: 320px; }

.portfolio-item:hover .portfolio-item__img {
  opacity: 0.6;
  transform: scale(1.04);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10,10,8,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  pointer-events: none;
}

.portfolio-item__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.portfolio-item__title {
  color: white;
  font-size: 1.25rem;
}

/* -----------------------------------------------
   ABOUT / VALUES
------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.value-card {
  background: var(--paper-cool);
  padding: clamp(2rem, 4vw, 2.75rem);
  transition: background 0.3s;
}

.value-card:hover { background: var(--paper-warm); }

.value-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--accent);
  border: 1px solid var(--accent-pale);
  margin-bottom: 1.5rem;
}

.value-card__title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.value-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* -----------------------------------------------
   PROCESS
------------------------------------------------ */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.process-step {
  background: var(--paper-cool);
  padding: 2.5rem 2rem;
  position: relative;
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--rule-strong);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.process-step__title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.process-step__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* -----------------------------------------------
   TEXT + IMAGE SPLIT
------------------------------------------------ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split-section__content {
  padding: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-section__media {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

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

/* -----------------------------------------------
   SERVICE DETAIL (services page)
------------------------------------------------ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }

.service-detail__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.service-detail__title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.service-detail__desc {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 2rem;
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.service-detail__list i {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.service-detail__ideal {
  background: var(--paper-warm);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
}

.service-detail__ideal-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-detail__ideal p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.service-detail__visual {
  position: sticky;
  top: 100px;
  background: var(--paper-warm);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__visual-icon {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.4;
}

/* -----------------------------------------------
   CONTACT PAGE
------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-info__item:first-child { border-top: 1px solid var(--rule); }

.contact-info__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 300;
}

.contact-info__value a {
  color: var(--accent);
  transition: color 0.2s;
}

.contact-info__value a:hover { color: var(--accent-dark); }

/* Form */
.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
  outline: none;
}

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

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

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787870' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 0.375rem;
}

.form-success {
  background: rgba(34, 110, 69, 0.08);
  border: 1px solid rgba(34, 110, 69, 0.2);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #226e45;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* -----------------------------------------------
   TECH STACK
------------------------------------------------ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-card {
  border: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.tech-card:hover {
  border-color: var(--accent-pale);
  background: var(--paper-warm);
}

.tech-card__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tech-card__name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tech-card__desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* -----------------------------------------------
   CTA BANNER
------------------------------------------------ */
.cta-banner {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white);
  max-width: 600px;
  line-height: 1.2;
}

.cta-banner__title em { font-style: italic; color: var(--accent-light); }

/* -----------------------------------------------
   FOOTER
------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand__desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
  margin-bottom: 1.5rem;
}

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

.footer-social__link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.footer-social__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col__heading {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.footer-col__link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col__link:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom__links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer-bottom__links a:hover { color: rgba(255,255,255,0.6); }

/* -----------------------------------------------
   PAGE HERO (inner pages)
------------------------------------------------ */
.page-hero {
  position: relative;
  padding: clamp(7rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.page-hero--dark {
  background: var(--ink);
}

.page-hero--dark .page-hero__title { color: white; }
.page-hero--dark .page-hero__lead { color: rgba(255,255,255,0.6); }
.page-hero--dark .eyebrow { color: var(--accent-light); }
.page-hero--dark::after { background: rgba(255,255,255,0.08); }

.page-hero--light {
  background: var(--paper-warm);
}

.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 860px;
}

.page-hero__lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
}

/* -----------------------------------------------
   MAP
------------------------------------------------ */
.map-embed {
  width: 100%;
  height: 400px;
  border: 1px solid var(--rule);
  display: block;
  filter: grayscale(0.3);
}

/* -----------------------------------------------
   STATS ROW
------------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-block {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat-block:nth-child(4n) { border-right: none; }

.stat-block__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-block__label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* Dark version */
.stats-row--dark .stat-block {
  border-color: rgba(255,255,255,0.08);
}

.stats-row--dark .stat-block__num { color: white; }
.stats-row--dark .stat-block__label { color: rgba(255,255,255,0.5); }

/* -----------------------------------------------
   MARQUEE / TAG LINE STRIP
------------------------------------------------ */
.marquee-strip {
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--accent);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.marquee-item .sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -----------------------------------------------
   ABOUT PAGE
------------------------------------------------ */
.about-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem var(--gutter) 5rem;
  background: var(--ink);
  position: relative;
}

.about-hero__content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(184,115,51,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.about-hero__media {
  position: relative;
  overflow: hidden;
}

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

.about-text-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--rule);
}

.about-text-section:last-child { border-bottom: none; }

.about-text-section__heading {
  font-size: 1.25rem;
  font-weight: 500;
}

.about-text-section__body p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.about-text-section__body p:last-child { margin-bottom: 0; }

/* -----------------------------------------------
   MISC
------------------------------------------------ */
.text-accent { color: var(--accent); }
.text-white { color: white; }
.text-muted { color: var(--ink-muted); }

.bg-ink { background-color: var(--ink); }
.bg-paper { background-color: var(--paper); }
.bg-paper-warm { background-color: var(--paper-warm); }
.bg-paper-cool { background-color: var(--paper-cool); }

.border-top { border-top: 1px solid var(--rule); }
.border-bottom { border-bottom: 1px solid var(--rule); }

.text-center { text-align: center; }

/* -----------------------------------------------
   RESPONSIVE
------------------------------------------------ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail__visual { display: none; }
  .about-text-section { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2n) { border-right: none; }
  .about-hero-split { grid-template-columns: 1fr; }
  .about-hero__media { height: 40vh; min-height: 300px; }
  .about-hero__media img { position: static; height: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--large,
  .work-card--small,
  .work-card--third { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(n) { grid-column: span 1; }
  .portfolio-item__img { height: 280px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .split-section { grid-template-columns: 1fr; }
  .split-section__media { min-height: 320px; }
  .footer-main { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { border-right: none; }
}

/* -----------------------------------------------
   ADMIN (preserved Tailwind compatibility note)
   Admin pages use layouts/admin.blade.php which
   uses Tailwind utility classes — no changes needed
------------------------------------------------ */