/*
 * North House Tech - Stylesheet
 * "Warm atelier lookbook" design system:
 * off-white / beige paper, serif typography, hairline rules,
 * matted image plates and a long editorial flow.
 */

/* --- DESIGN TOKENS --- */
:root {
  --paper: #f3ede1;         /* warm off-white base */
  --paper-2: #ece3d4;       /* beige panel */
  --card: #fbf8f1;          /* lifted cream card */
  --ink: #26221c;           /* warm near-black text / headings */
  --ink-soft: #6a6156;      /* muted body text */
  --ink-faint: #938878;     /* captions, meta */
  --line: #d9ceba;          /* warm hairline */
  --line-strong: #c3b6a0;
  --accent: #9c5a3c;        /* muted terracotta */
  --accent-hover: #834630;
  --accent-tint: rgba(156, 90, 60, 0.08);

  --shadow-plate: 0 18px 40px -24px rgba(38, 34, 28, 0.4);
  --shadow-card: 0 1px 2px rgba(38, 34, 28, 0.04);
  --shadow-lift: 0 24px 50px -30px rgba(38, 34, 28, 0.5);

  --radius-sm: 2px;
  --radius-md: 4px;

  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1180px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { color: var(--ink-soft); }

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

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

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

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

/* --- ACCESSIBILITY --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 80px 0;
}

.section + .section,
.section-alt + .section {
  border-top: 1px solid var(--line);
}

.section-alt {
  background-color: var(--paper-2);
  padding: 80px 0;
}

/* --- SHARED TYPE ELEMENTS --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.section-header {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(34px, 4.5vw, 50px);
  color: var(--ink);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 21px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent);
  color: #f6efe3;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #f6efe3;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(131, 70, 48, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Understated inline "read more" text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover svg { transform: translateX(4px); }

/* --- IMAGE PLATE (solid, frameless) --- */
.plate {
  position: relative;
}

.plate-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #efe6d6 0%, #e4d8c3 100%);
  box-shadow: var(--shadow-plate);
  aspect-ratio: 4 / 3;
}

.plate-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.plate-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.55;
}

.plate-fallback svg { width: 54px; height: 54px; }

.plate-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plate-caption .plate-index { color: var(--accent); }

/* --- STICKY HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(243, 237, 225, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  user-select: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* white artwork -> solid ink on the light header */
  filter: brightness(0) saturate(100%);
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img { opacity: 1; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.header .nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: var(--transition-fast);
}

.header .nav-link:hover,
.header .nav-link.active { color: var(--ink); }

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Services dropdown */
.nav-item--dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-dropdown-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.nav-item--dropdown:hover .nav-dropdown-toggle,
.nav-item--dropdown:focus-within .nav-dropdown-toggle { color: var(--ink); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background-color: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 1200;
}

/* Bridge the gap so hover doesn't drop */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.nav-item--dropdown:hover .nav-dropdown-toggle svg,
.nav-item--dropdown:focus-within .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-dropdown-link:hover {
  background-color: var(--paper-2);
  color: var(--ink);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--ink);
  color: var(--paper);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  transition: var(--transition-smooth);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover { border-color: var(--accent); }

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--ink);
  margin: 2.5px 0;
  transition: var(--transition-smooth);
}

/* --- HERO (full-viewport fade carousel) --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease, visibility 0s;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2a2620 0%, #14110d 100%);
  overflow: hidden;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* Slow Ken Burns drift on the active slide */
.hero-slide.is-active .hero-slide-media img {
  animation: heroDrift 14s ease-out forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.13); }
}

/* Warm scrim keeps serif text legible over the photo */
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 17, 13, 0.78) 0%, rgba(20, 17, 13, 0.5) 45%, rgba(20, 17, 13, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0) 45%);
}

.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .hero-eyebrow {
  color: #e6b79c;
  margin-bottom: 22px;
}

.hero .hero-eyebrow::before { background-color: #e6b79c; }

.hero-title {
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.02;
  color: #f6efe3;
  margin-bottom: 26px;
  font-weight: 400;
  max-width: 16ch;
}

.hero-title em { color: #e6b79c; }

.hero-subtitle {
  font-size: clamp(18px, 1.5vw, 21px);
  color: rgba(246, 239, 227, 0.82);
  line-height: 1.6;
  margin-bottom: 38px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust reassurance line under the hero CTAs (campaign pages) */
.hero-trust-line {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(246, 239, 227, 0.72);
}

/* Ghost button tuned for the dark hero */
.btn-secondary--on-dark {
  color: #f6efe3;
  border-color: rgba(246, 239, 227, 0.45);
}

.btn-secondary--on-dark:hover {
  background-color: #f6efe3;
  border-color: #f6efe3;
  color: var(--ink);
}

/* Carousel dots (hidden by JS when a single slide) */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dots[hidden] { display: none; }

.hero-dot {
  width: 30px;
  height: 3px;
  border: none;
  padding: 0;
  background-color: rgba(246, 239, 227, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-dot.is-active { background-color: #e6b79c; }

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 239, 227, 0.8);
}

.hero-scroll-cue:hover { color: #f6efe3; }

.hero-scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: scrollBob 1.8s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- SERVICES (editorial alternating rows) --- */
.services-intro { margin-bottom: 24px; }

/* Quick-jump pills */
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.service-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.service-pill:hover {
  color: var(--paper);
  background-color: var(--ink);
  border-color: var(--ink);
}

.service-pill.is-active {
  color: var(--paper);
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Icon card grid (replaces the per-service photo rows) */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  padding: 34px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-plate);
  transform: translateY(-4px);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #f6efe3;
}

.service-card-icon svg { width: 26px; height: 26px; }

.service-card-index {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.service-card-title {
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child { padding-bottom: 8px; }

.service-figure { position: relative; }

.service-row--reverse .service-figure { order: 2; }

.service-figure .plate-frame { aspect-ratio: 4 / 3; }

.service-figure:hover .plate-frame img { transform: scale(1.04); }

.service-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-title {
  font-size: clamp(30px, 3.4vw, 40px);
  color: var(--ink);
  margin-bottom: 20px;
}

.service-desc {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.service-bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1px;
  background-color: var(--accent);
}

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

.portfolio-card {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: var(--transition-smooth);
}

.portfolio-img-container {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #efe6d6 0%, #e4d8c3 100%);
  box-shadow: var(--shadow-plate);
  transition: var(--transition-smooth);
}

.portfolio-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-fallback-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.5;
}

.portfolio-fallback-bg svg { width: 48px; height: 48px; }

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

.portfolio-card:hover .portfolio-img-container {
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(38, 34, 28, 0.32);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-btn {
  background-color: var(--paper);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-btn { transform: translateY(0); }

.portfolio-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.portfolio-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

.portfolio-card-title {
  font-size: 24px;
  color: var(--ink);
  margin: 6px 0 0;
}

.portfolio-card-desc { display: none; } /* description reserved for modal */

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.about-intro-text {
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 40px;
  font-weight: 400;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-pillar {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.about-pillar:last-child { border-bottom: 1px solid var(--line); }

.about-pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-pillar-icon svg { width: 26px; height: 26px; }

.about-pillar-title {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 6px;
}

.about-pillar-desc { font-size: 17px; color: var(--ink-soft); }

.about-founder-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.founder-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.founder-avatar-placeholder {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--line) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.founder-avatar-placeholder svg { width: 32px; height: 32px; }

.founder-info-name {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 2px;
}

.founder-info-role {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-faint);
}

.founder-quote {
  font-size: 20px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

/* --- CONTACT --- */
.contact-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  padding: 72px 56px;
  text-align: center;
  box-shadow: var(--shadow-plate);
  max-width: 860px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--ink);
  margin-bottom: 18px;
}

.contact-desc {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group { display: flex; flex-direction: column; }

.form-group.full-width { grid-column: span 2; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  transition: var(--transition-smooth);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2326221c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.contact-submit-btn {
  align-self: center;
  margin-top: 6px;
}

.form-status {
  text-align: center;
  font-size: 16px;
  font-style: italic;
  margin-top: 4px;
  min-height: 1.2em;
}

.form-status.is-success { color: #4d7c4a; font-style: normal; }
.form-status.is-error { color: #b0472f; font-style: normal; }

.contact-email-text {
  display: block;
  margin-top: 26px;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-faint);
}

.contact-email-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  font-style: normal;
}

.contact-email-text a:hover { color: var(--accent); }

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 16px;
  color: var(--ink-faint);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-serving {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
}

.footer-serving svg { color: var(--accent); }

/* --- FLOATING ACTION BUTTON --- */
.fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  background-color: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.fab svg { width: 18px; height: 18px; }

.fab:hover {
  background-color: var(--accent);
  color: var(--paper);
  transform: translateY(-3px);
}

/* --- PORTFOLIO MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(38, 34, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--card);
  border: 1px solid var(--line);
  max-width: 780px;
  width: 100%;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal.active .modal-content { transform: scale(1); }

.modal-header-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #efe6d6 0%, #e4d8c3 100%);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(38, 34, 28, 0.75);
  border: none;
  color: var(--paper);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--ink);
  transform: scale(1.05);
}

.modal-close-btn svg { width: 20px; height: 20px; }

.modal-body { padding: 36px; overflow-y: auto; }

.modal-tag-wrapper { margin-bottom: 10px; }

.modal-title {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --- SCROLL REVEAL (fade + rise) --- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- LANDING: TRUST BAR --- */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--card);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- LANDING: FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 52px;
  background-color: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  background-color: var(--card);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.feature-card:hover { background-color: var(--paper); }

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-bottom: 22px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- LANDING: NUMBERED STEPS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 52px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--accent);
}

.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.step-title {
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- LANDING: FAQ --- */
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--ink);
  transition: var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background-color: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }

.faq-answer {
  padding: 0 4px 28px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
}

.faq-cta {
  text-align: center;
  margin-top: 44px;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-faint);
}

.faq-cta a {
  font-style: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.faq-cta a:hover { color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero-title { max-width: 18ch; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .service-row { gap: 44px; }
  .about-grid { gap: 52px; }
}

@media (max-width: 768px) {
  :root { --header-height: 66px; }

  body { font-size: 18px; }

  .container { padding: 0 22px; }

  .section,
  .section-alt { padding: 72px 0; }

  .section-header { margin-bottom: 44px; }

  /* Hamburger nav */
  .mobile-menu-btn { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    /* The header's backdrop-filter is the containing block for this fixed
       panel, so size it with viewport units instead of bottom:0. */
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 28px;
    gap: 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid var(--line);
  }

  .nav-menu.active { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 22px;
  }

  .header .nav-menu .nav-link { font-size: 22px; }

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

  /* Services dropdown collapses inline within the mobile panel */
  .nav-item--dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-dropdown-toggle {
    margin-left: auto;
    color: var(--ink);
  }

  .nav-dropdown-toggle svg { width: 20px; height: 20px; }

  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--line);
    background: none;
    padding: 6px 0 6px 14px;
    margin-top: 8px;
    display: none;
  }

  /* On touch, the panel opens only via the explicit toggle (.is-open),
     never on hover/focus — the base mobile rule keeps it display:none. */
  .nav-item--dropdown .nav-dropdown.is-open {
    display: flex;
    transform: none;
  }

  .nav-dropdown-link { font-size: 18px; padding: 8px 6px; }

  /* Hero */
  .hero { min-height: 520px; }
  .hero-title { max-width: 100%; }
  .hero-scroll-cue { display: none; }
  .service-pills { gap: 8px; }
  .service-pill { font-size: 12px; padding: 8px 14px; }

  /* Service cards stack to a single column */
  .service-cards { grid-template-columns: 1fr; }
  .service-card { padding: 30px 26px 32px; }

  /* Services stack, image always on top */
  .service-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 52px 0;
  }
  .service-row--reverse .service-figure { order: 0; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-founder-card { position: static; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Contact */
  .contact-card { padding: 44px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-group.full-width { grid-column: span 1; }

  .footer .container { flex-direction: column; text-align: center; }

  .fab { bottom: 16px; right: 16px; padding: 11px 18px; }

  /* Landing components stack */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 32px 26px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .trust-bar .container { gap: 14px 28px; }
  .trust-item { font-size: 13px; letter-spacing: 0.03em; }
}
