﻿/* Teak & Terrazzo - Interior Design Agency */
@import url('/assets/fonts/brand-fonts.css');

:root {
  /* Teak & Terrazzo — teak wood brand system */
  --teak: #A67C52;
  --teak-deep: #8B6540;
  --teak-rich: #6B4F32;
  --teak-soft: #C4A882;
  --teak-mist: #E8DFD2;
  --ink: #6B4F32;
  --charcoal: #8B6540;
  --black: #3D2E1F;
  --text: #2F2418;
  --text-muted: rgba(47, 36, 24, 0.58);
  --cream: #F6F1E9;
  --cream-dark: #EBE3D6;
  --white: #ffffff;
  --stone: #DDD4C5;
  --gray-pill: #E0D6C8;
  --sage: #8B6540;
  --ink-rgb: 107, 79, 50;
  --text-rgb: 47, 36, 24;
  --radius-pill: 999px;
  --radius-card: 28px;
  --radius-img: 24px;
  --nav-h: 80px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --shadow-soft: 0 12px 40px rgba(var(--text-rgb), 0.07);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --section-y: clamp(72px, 9vw, 112px);
  --container-pad: 48px;

  /* Type scale */
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-md: 0.9375rem;   /* 15px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.0625rem;   /* 17px */
  --text-xl: 1.125rem;    /* 18px */
  --text-h3: clamp(1.35rem, 1.8vw, 1.65rem);
  --text-h2: clamp(1.85rem, 3vw, 2.5rem);
  --text-page: clamp(2.25rem, 4.5vw, 3.5rem);
  --text-display: clamp(2.6rem, 5.8vw, 5rem);
  --leading-tight: 1.1;
  --leading-snug: 1.35;
  --leading-body: 1.6;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--cream);
  color: var(--text);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Soft page transitions (MPA View Transitions — React-like feel) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}

::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

::view-transition-group(site-header) {
  animation-duration: 0.28s;
}

.page-fade {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .page-fade {
  opacity: 1;
  transform: none;
}

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

img,
video {
  -webkit-user-drag: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1120px, calc(100% - var(--container-pad)));
  margin-inline: auto;
}

.container-wide {
  width: min(1240px, calc(100% - var(--container-pad)));
  margin-inline: auto;
}

/* ========== NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  view-transition-name: site-header;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition), color var(--transition);
}

.site-header.on-hero {
  background: transparent;
  color: var(--white);
}

.site-header.scrolled {
  background: rgba(246, 241, 233, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(var(--text-rgb), 0.06);
}

.site-header.on-dark {
  background: var(--ink);
  color: var(--white);
}

.site-header.menu-open {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  width: min(1240px, calc(100% - var(--container-pad)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
  z-index: 2;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.logo-mark img,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.site-header.scrolled .logo-mark {
  background: transparent;
}

.site-header.on-hero .logo,
.site-header.on-dark .logo,
.site-header.menu-open .logo,
.site-header.menu-open.scrolled .logo {
  color: #fff;
}

.site-header.scrolled .logo {
  color: var(--charcoal);
}

.site-header.menu-open.scrolled .logo {
  color: #fff;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(26, 23, 20, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled .nav-pill {
  background: rgba(26, 23, 20, 0.06);
}

.nav-pill a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: background var(--transition);
}

.site-header.scrolled .nav-pill a { color: var(--text); }

.nav-pill a:hover { background: rgba(255,255,255,0.12); }
.site-header.scrolled .nav-pill a:hover { background: rgba(0,0,0,0.05); }

.nav-cta {
  margin-left: 8px;
  padding: 12px 22px !important;
  background: var(--white) !important;
  color: #000 !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #f5f5f5 !important; }

.site-header.scrolled .nav-cta {
  background: var(--teak-deep) !important;
  color: var(--white) !important;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;
  transition: background var(--transition);
  color: inherit;
  z-index: 2;
}

.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.site-header.scrolled .menu-toggle:hover { background: rgba(0,0,0,0.05); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.on-hero .menu-toggle span,
.site-header.on-dark .menu-toggle span,
.site-header.menu-open .menu-toggle span {
  background: #fff;
}

.site-header.scrolled .menu-toggle span { background: var(--text); }

.site-header.menu-open.scrolled .menu-toggle span,
.site-header.menu-open .menu-toggle span {
  background: #fff;
}

.site-header.menu-open .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
    font-size: 1.55rem;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
  }

  .desktop-nav {
    display: contents;
  }

  .nav-pill {
    grid-column: 2;
    justify-self: center;
  }

  .nav-cta {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }

  .menu-toggle { display: none; }
}

/* Overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  margin: auto 0;
}

.nav-overlay a {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: padding-left var(--transition), opacity var(--transition);
}

.nav-overlay a:hover {
  padding-left: 16px;
  opacity: 0.85;
}

.nav-overlay .nav-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0.7;
  font-size: 0.95rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, color 0.35s ease, gap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); gap: 12px; }

.btn-white {
  background: var(--white);
  color: #000;
}

.btn-white:hover { background: #f5f5f5; }

.btn-dark {
  background: var(--teak-deep);
  color: var(--white);
}

.btn-dark:hover { background: var(--teak-rich); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-arrow {
  width: 24px;
  height: 24px;
  display: inline-flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-arrow img { width: 100%; height: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow img {
  width: 18px;
  height: 18px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow:hover { gap: 14px; }
.link-arrow:hover img { transform: translateX(4px); }

.link-arrow img { width: 20px; height: 20px; }

/* ========== PILLS / BADGES ========== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--gray-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.pill-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--ink-rgb), 0.18) 0%,
    rgba(var(--ink-rgb), 0.28) 42%,
    rgba(var(--ink-rgb), 0.66) 78%,
    rgb(var(--ink-rgb)) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 48px) 24px 11vh;
  max-width: 880px;
  width: 100%;
}

.hero-content .hero-title .line,
.hero-content .btn {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content.hero-in .hero-title .line:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.hero-content.hero-in .hero-title .line:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}

.hero-content.hero-in .btn {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.hero-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 500;
  opacity: 0.88;
  margin: 0 auto var(--space-5);
  max-width: none;
  width: max-content;
  max-width: min(100%, 36em);
  letter-spacing: 0.01em;
  line-height: var(--leading-body);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .hero-sub {
    white-space: normal;
    width: auto;
    max-width: 18em;
  }
}

.hero-kicker {
  font-size: var(--text-md);
  opacity: 0.75;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.hero-content .hero-sub,
.hero-content .hero-kicker {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content.hero-in .hero-sub {
  opacity: 0.9;
  transform: none;
  transition-delay: 0.4s;
}

.hero-content.hero-in .hero-kicker {
  opacity: 0.75;
  transform: none;
  transition-delay: 0.48s;
}

.hero-content.hero-in .btn {
  transition-delay: 0.58s;
}

.hero-title .line { display: block; }

/* ========== LOGO MARQUEE ========== */
.marquee-section {
  background: var(--cream);
  padding: var(--space-6) 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 23, 20, 0.05);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.marquee-track img {
  height: 28px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity var(--transition);
}

.marquee-track img:hover { opacity: 0.8; }

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

/* ========== ABOUT ========== */
.about {
  padding: var(--section-y) 0;
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.about-brand {
  position: relative;
}

.about-brand img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--cream-dark);
  box-shadow: var(--shadow-soft);
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 38rem;
}

.about-copy .pill {
  margin-bottom: var(--space-4);
  background: var(--teak-mist);
  color: var(--teak-rich);
}

.designer-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teak-deep);
  margin-bottom: var(--space-3);
}

.about-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.018em;
  max-width: none;
  margin: 0 0 var(--space-4);
  color: var(--text);
}

.about-support {
  max-width: none;
  margin: 0 0 var(--space-5);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 450;
  line-height: var(--leading-body);
}

@media (max-width: 900px) {
  .about {
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .about-brand img {
    max-width: 360px;
  }

  .about-copy {
    align-items: center;
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
  }
}

/* ========== STATS ========== */
.stats {
  padding: 0 0 var(--section-y);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--cream-dark);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-4);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), background var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  background: #e2dfda;
}

.stat-icon {
  width: 30px;
  height: 30px;
  opacity: 1;
}

.stat-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.stat-value {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: var(--space-4);
}

.stat-label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== SERVICES ========== */
.services {
  padding: var(--section-y) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.section-head.center {
  align-items: center;
  text-align: center;
}

.section-head.row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

#works .section-head.row,
#process .section-head.row,
#blog .section-head.row {
  align-items: flex-end;
}

#works .section-head.row .btn,
#process .section-head.row .btn,
#blog .section-head.row .btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 6px;
  white-space: nowrap;
}

#works .section-head.row .btn-arrow,
#process .section-head.row .btn-arrow,
#blog .section-head.row .btn-arrow {
  width: 16px;
  height: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.section-head .pill + .section-title,
.section-head > div .pill + .section-title {
  margin-top: var(--space-2);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  color: inherit;
  box-shadow: none;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Homepage: sticky heading + card stack */
.services-stack {
  /* Do not set overflow clip/hidden here — it kills position:sticky */
  isolation: isolate;
  padding-bottom: var(--space-4);
}

.services-stack .container-wide {
  position: relative;
}

.services-stack .section-head {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  margin-bottom: 12px;
  padding: 18px 0 22px;
  background: transparent;
  box-shadow: none;
  will-change: transform, opacity;
  /* Scroll-linked motion is driven in JS — no CSS transition fights */
  transition: none;
}

.services-stack .services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.services-stack .service-stack-item {
  position: sticky;
  top: calc(var(--nav-h) + var(--services-head-h, 110px) + (min(var(--stack-i, 0), 4) * 14px));
  z-index: calc(10 + var(--stack-i, 0));
  margin: 0 0 28px;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.services-stack .service-stack-item:last-child {
  margin-bottom: 8px;
}

.services-stack .service-card {
  position: relative;
  top: auto;
  z-index: auto;
  margin: 0;
  align-items: stretch;
  min-height: 0;
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(var(--text-rgb), 0.04),
    0 18px 50px rgba(var(--text-rgb), 0.1);
  transform: none !important;
  will-change: auto;
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-stack .service-card:hover {
  transform: none !important;
  box-shadow:
    0 1px 0 rgba(var(--text-rgb), 0.04),
    0 22px 56px rgba(var(--text-rgb), 0.12);
}

.services-stack .service-stack-item.is-stacked .service-card {
  box-shadow:
    0 1px 0 rgba(var(--text-rgb), 0.03),
    0 8px 24px rgba(var(--text-rgb), 0.08);
}

.services-stack .service-card.reveal,
.services-stack .service-card.reveal.visible {
  transform: none !important;
}

@media (max-width: 768px) {
  .services-stack .section-head {
    padding: 12px 0 16px;
    margin-bottom: 8px;
  }

  .services-stack .service-stack-item {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-stack .section-head,
  .services-stack .service-stack-item,
  .services-stack .service-card {
    position: relative;
    top: auto !important;
    transform: none !important;
  }

  .services-stack .service-stack-item {
    min-height: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
  }

  .services-stack .services-list {
    gap: 20px;
  }
}

.service-card .service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 28px 20px;
  min-height: 0;
}

.service-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.service-card p {
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: 450;
  line-height: var(--leading-body);
  margin-bottom: var(--space-4);
  max-width: 34em;
}

.service-card .link-arrow {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.service-card .thumb {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius-img) - 4px);
  overflow: hidden;
  align-self: stretch;
  min-height: 320px;
  height: 100%;
  max-height: 380px;
  aspect-ratio: 5 / 4;
}

.service-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.visible .thumb img,
.service-card:hover .thumb img {
  transform: scale(1);
}

.service-card:hover .thumb img { transform: scale(1.04); }

@media (max-width: 900px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card .service-copy {
    min-height: 0;
    padding: 4px 4px 0;
  }

  .service-card .thumb {
    min-height: 220px;
    max-height: none;
    height: auto;
    aspect-ratio: 16 / 10;
    align-self: auto;
  }
}

/* ========== WORKS ========== */
.works {
  padding: var(--section-y) 0;
}

.works-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  display: block;
}

.work-card.tall { min-height: 560px; grid-row: span 2; }

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card.visible img { transform: scale(1); }
.work-card:hover img { transform: scale(1.06); }

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,23,20,0.82) 0%, rgba(26,23,20,0.22) 50%, transparent 100%);
}

.work-meta {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
  color: var(--white);
}

.work-meta .pill-light {
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.work-meta h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.works-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.works-side .work-card { min-height: 270px; flex: 1; }

/* ========== PROCESS ========== */
.process {
  padding: var(--section-y) 0;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  padding: 22px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--transition);
}

.process-step:first-child {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.process-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.process-step h5 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.process-toggle {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.process-toggle::before,
.process-toggle::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.process-toggle::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.process-toggle::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.process-step.active .process-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.process-step p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin 0.4s ease;
}

.process-step.active p {
  max-height: 160px;
  opacity: 1;
  margin-top: 12px;
}

.process-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  position: relative;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.12);
}

.process-visual img,
.process-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-visual .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-visual .slide.active {
  opacity: 1;
  transform: scale(1);
}

.process-visual .slide img,
.process-visual .slide video {
  transform: scale(1.02);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-visual .slide.active img,
.process-visual .slide.active video {
  transform: scale(1);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: var(--section-y) 0;
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  margin-top: var(--space-5);
}

.testimonial-viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.testimonial-viewport.is-dragging {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.testimonial-card {
  flex: 0 0 480px;
  width: 480px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  user-select: none;
  border: 1px solid rgba(47, 36, 24, 0.06);
}

.testimonial-card blockquote {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-author strong {
  display: block;
  font-size: var(--text-sm);
}

.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.slider-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  border: 1px solid rgba(var(--text-rgb), 0.18);
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--teak-mist);
  border-color: var(--teak);
  transform: translateY(-1px);
}

.slider-btn:active { transform: translateY(0); }
.slider-btn img { width: 18px; height: 18px; }
.slider-btn.prev img { transform: scaleX(-1); }

/* ========== BLOG ========== */
.blog {
  padding: var(--section-y) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: 0;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.blog-card .thumb {
  aspect-ratio: 5 / 5.4;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .thumb img { transform: scale(1.05); }

.blog-card .body {
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.blog-card .date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.blog-card h5 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--leading-snug);
}

/* ========== CTA + FOOTER BAND ========== */
.cta-footer {
  background: var(--ink);
  color: var(--white);
}

.cta {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: min(800px, 90vh);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--ink);
}

.cta-media {
  position: absolute;
  inset: 0;
}

.cta-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(0.9);
  transform: scale(1.02);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(var(--ink-rgb), 0.2) 0%,
      rgba(var(--ink-rgb), 0.32) 38%,
      rgba(var(--ink-rgb), 0.58) 72%,
      rgba(var(--ink-rgb), 0.78) 100%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 100%,
      rgba(var(--ink-rgb), 0.4) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: var(--space-7) 24px var(--space-7);
  max-width: 960px;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 28px rgba(26, 23, 20, 0.35);
}

.cta-content h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  display: block;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
  margin-top: 0;
}

.cta-footer .site-footer {
  background: transparent;
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 0.9fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand .logo {
  margin-bottom: 28px;
}

.footer-contact {
  margin-bottom: 8px;
}

.footer-block + .footer-block {
  margin-top: 4px;
}

.footer-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.58);
  margin: 20px 0 10px;
  font-weight: 600;
}

.footer-contact .footer-block:first-child .footer-label {
  margin-top: 0;
}

.footer-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
}

.footer-ico svg {
  width: 14px;
  height: 14px;
  display: block;
}

.footer-brand h3 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 420px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.footer-brand a.phone {
  font-size: var(--text-base);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: opacity var(--transition);
}

.footer-brand a.phone:hover { opacity: 0.75; }

.footer-brand a.footer-maps {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

.footer-brand p,
.footer-hours {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.newsletter-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}

.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter input {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.newsletter input::placeholder {
  color: rgba(26, 23, 20, 0.45);
}

.newsletter input:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.newsletter button {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--teak-deep);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.newsletter button:hover {
  background: var(--teak-rich);
  transform: translateY(-1px);
}

.footer-connect .newsletter-label {
  margin-bottom: 12px;
  opacity: 0.9;
}

.newsletter-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.newsletter-stack input {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.newsletter-stack button {
  width: 100%;
}

.newsletter-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
  min-height: 1.2em;
}

.footer-col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.footer-col a,
.footer-link {
  display: block;
  padding: 6px 0;
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--white);
  transition: opacity var(--transition), transform var(--transition);
}

.footer-col a:hover,
.footer-link:hover {
  opacity: 0.7;
  color: var(--white);
}

.footer-mini-block {
  margin-bottom: 16px;
}

.footer-mini-block:last-child {
  margin-bottom: 0;
}

.footer-mini-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.footer-contact-col .footer-link {
  padding: 2px 0;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
  font-weight: 700;
}

.footer-credit a:hover {
  color: var(--white);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 var(--space-7);
  text-align: center;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-living-room-modern.jpg') center/cover;
  opacity: 0.22;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-hero.hero-in::before { transform: scale(1); }

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

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: var(--space-3);
}

.breadcrumb a { opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: 0.5; }

.page-hero .pill,
.page-hero .breadcrumb,
.page-hero h1 {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-hero.hero-in .pill,
.page-hero.hero-in .breadcrumb {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

.page-hero.hero-in h1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--text-page);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: var(--space-1);
  line-height: var(--leading-tight);
}

.page-intro {
  max-width: 640px;
  margin: var(--space-3) auto 0;
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: rgba(255,255,255,0.88);
}

.page-hero.hero-in .page-intro {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}

.page-intro {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-content {
  padding: var(--section-y) 0;
}

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

.portfolio-grid .work-card {
  min-height: 380px;
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
}

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid .work-card { min-height: 320px; }
}

.error-page {
  padding: 180px 0 var(--section-y);
  text-align: center;
}

.error-page .code {
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
}

.error-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* About page extras */
.mission-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-top: 80px;
}

.mission-block h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.mission-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.mission-visual {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card .body {
  padding: 22px 24px 28px;
}

.team-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Detail pages */
.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.detail-meta {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.detail-meta .item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.detail-meta .item span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail-copy h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  letter-spacing: -0.015em;
}

.detail-copy h5:first-child { margin-top: 0; }

.detail-copy p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.detail-hero-img {
  border-radius: var(--radius-img);
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16/9;
}

.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.feature-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: 20px;
}

.feature-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teak);
}

.feature-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.blog-article .meta-row img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-article .meta-row strong { display: block; font-weight: 700; }
.blog-article .meta-row span { color: var(--text-muted); font-size: 0.9rem; }

.blog-article h5 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.blog-article p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.blog-quote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--white);
  border-radius: 20px;
  border-left: 4px solid var(--teak);
}

.blog-quote h5 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
}

.related-blogs { margin-top: 72px; }

@media (max-width: 900px) {
  .mission-block,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.contact-page {
  padding-top: clamp(48px, 7vw, 80px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.contact-info .pill {
  margin-bottom: var(--space-3);
  background: var(--teak-mist);
  color: var(--teak-rich);
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.contact-info-lead {
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.contact-list-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-list-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
}

.contact-list-value a {
  color: inherit;
  transition: color var(--transition);
}

.contact-list-value a:hover {
  color: var(--teak-deep);
}

.contact-inline-link {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teak-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-whatsapp {
  margin-top: 4px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(var(--text-rgb), 0.06);
  box-shadow: var(--shadow-soft);
}

.contact-form-head {
  margin-bottom: 4px;
}

.contact-form-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-form-head p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--text-rgb), 0.12);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--teak);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.14);
  background: var(--white);
}

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

.contact-form-msg {
  min-height: 1.2em;
  font-size: 0.92rem;
  margin: 0;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

.blog-card .thumb img {
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card.visible .thumb img { transform: scale(1); }
.blog-card:hover .thumb img { transform: scale(1.05); }

.cta.reveal { transform: translate3d(0, 32px, 0); }
.cta.reveal.visible { transform: none; }

html.lenis, html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

body.is-ready .marquee {
  animation-play-state: running;
}

.marquee {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html { scroll-behavior: auto; }
  .page-fade,
  body.is-ready .page-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal,
  .hero-content .hero-title .line,
  .hero-content .btn,
  .page-hero .pill,
  .page-hero h1,
  .btn,
  .btn-arrow,
  .link-arrow,
  .work-card img,
  .service-card .thumb img,
  .blog-card .thumb img,
  .process-visual .slide,
  .page-hero::before {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee { animation: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .process-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-visual {
    order: -1;
    max-width: none;
    margin-inline: 0;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .process-steps {
    order: 1;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
  }

  .footer-top .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { min-height: min(620px, 80vh); }
  .cta-content { padding: 80px 20px 70px; }

  /* Selected Projects — horizontal scroll on tablet/mobile */
  .works .container-wide {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .works .section-head {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin-inline: auto;
  }

  .works-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 4px 24px 12px;
    margin: 0;
  }

  .works-grid::-webkit-scrollbar {
    display: none;
  }

  .works-side {
    display: contents;
  }

  .works-grid > .work-card,
  .works-side .work-card {
    flex: 0 0 min(78vw, 420px);
    width: min(78vw, 420px);
    min-height: 420px;
    scroll-snap-align: start;
  }

  .work-card.tall {
    min-height: 420px;
    grid-row: auto;
  }

  .works-side .work-card {
    min-height: 420px;
  }

  /* Design Notes & Insights — single-row horizontal scroll */
  #blog .container-wide {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  #blog .section-head {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin-inline: auto;
  }

  #blog .blog-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 4px 24px 12px;
    margin: 0;
  }

  #blog .blog-grid::-webkit-scrollbar {
    display: none;
  }

  #blog .blog-card {
    flex: 0 0 min(72vw, 340px);
    width: min(72vw, 340px);
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 32px;
    --nav-h: 72px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer-top .footer-brand { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .cta { min-height: 480px; }
  .cta-content { padding: var(--space-6) 16px var(--space-5); }
  .cta-content h2 { margin-bottom: var(--space-4); }
  .stat-card { min-height: 150px; padding: var(--space-4); }
  .testimonial-viewport {
    mask-image: linear-gradient(90deg, transparent 0%, #000 28px, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .testimonial-card {
    flex: 0 0 min(420px, calc(100vw - var(--container-pad) * 2 - 28px));
    width: min(420px, calc(100vw - var(--container-pad) * 2 - 28px));
    padding: var(--space-4);
  }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  #works .section-head.row,
  #process .section-head.row,
  #blog .section-head.row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
  #works .section-head.row .btn,
  #process .section-head.row .btn,
  #blog .section-head.row .btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 4px;
  }
  #works .section-head.row .btn-arrow,
  #process .section-head.row .btn-arrow,
  #blog .section-head.row .btn-arrow {
    width: 14px;
    height: 14px;
  }
  #works .section-title,
  #process .section-title,
  #blog .section-title {
    font-size: clamp(1.65rem, 6vw, 2.4rem);
  }
  .newsletter { flex-direction: column; align-items: stretch; }
  .newsletter input { max-width: none; }
  .footer-brand h3,
  .footer-brand a.phone { font-size: var(--text-base); }
  .footer-col a,
  .footer-link { letter-spacing: 0.01em; font-size: var(--text-md); }
}

@media (max-width: 560px) {
  :root { --container-pad: 28px; }

  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .container,
  .container-wide { width: calc(100% - var(--container-pad)); }
  .works .container-wide { width: 100%; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .cta { min-height: 420px; }
  .process-step h5 { font-size: var(--text-base); }

  .works .section-head,
  #blog .section-head {
    width: calc(100% - var(--container-pad));
  }

  .works-grid,
  #blog .blog-grid {
    gap: 14px;
    scroll-padding-inline: 16px;
    padding: 4px 16px 12px;
  }

  .works-grid > .work-card,
  .works-side .work-card,
  .work-card.tall {
    flex: 0 0 82vw;
    width: 82vw;
    min-height: 380px;
  }

  #blog .blog-card {
    flex: 0 0 78vw;
    width: 78vw;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { min-height: 140px; padding: var(--space-3); }
  .stat-value { font-size: clamp(1.35rem, 5vw, 1.75rem); }
}

/* ========== BRIEF CONTENT BLOCKS ========== */
.hero-scope {
  display: block;
  margin-top: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.brief-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  border: 1px solid rgba(26, 23, 20, 0.06);
}

.brief-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.brief-card ul,
.brief-check {
  list-style: none;
  display: grid;
  gap: 10px;
}

.brief-card li,
.brief-check li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.5;
}

.brief-card li::before,
.brief-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teak);
}

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

.brief-lead {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  margin: var(--space-3) 0 var(--space-4);
  max-width: 40em;
}

.brief-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-tags li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--cream-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: var(--space-5);
}

.process-grid li {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(26, 23, 20, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}

.process-grid strong {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--teak);
}

.process-grid span {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.gallery-provision {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(26, 23, 20, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--space-5);
}

.gallery-slot {
  margin: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--cream-dark);
}

.gallery-slot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-slot figcaption {
  padding: 10px 12px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .brief-grid,
  .process-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-split { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 640px) {
  .brief-grid,
  .process-grid,
  .gallery-grid { grid-template-columns: 1fr; }
}

.portfolio-grid .work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
