/* =========================================================
   Māju Remonts — design system
   Palette: warm paper + deep ink + forest green + warm timber
   ========================================================= */

:root {
  /* Colors */
  --paper: #f1ede4;
  --paper-2: #e8e2d4;
  --paper-3: #ddd5c2;
  --ink: #14110d;
  --ink-soft: #2b2620;
  --ink-mute: #6b655b;
  --line: #1411101a;
  --sage: #2f5233;       /* deep forest green */
  --sage-deep: #1f3a23;
  --terra: #8a5a2b;      /* warm timber / umber */
  --terra-soft: #b07a44;
  --gold: #c89b50;
  --white: #fbfaf6;

  /* Typography */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h-display {
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.035em;
}

.h-1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.h-2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.h-3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sage);
}

.italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--container-narrow);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin: 0 auto;
}

section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--sage-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--accent {
  background: var(--terra);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn .arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .arrow {
  transform: translate(3px, -3px);
}

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition: color 0.3s;
}

.link-arrow:hover {
  color: var(--terra);
}

.link-arrow svg {
  transition: transform 0.3s var(--ease-out);
}

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

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(241, 237, 228, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text strong {
  display: block;
  font-weight: 400;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(20, 17, 13, 0.05);
  border-radius: var(--radius-pill);
  padding: 0.35rem;
}

.main-nav a {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: var(--sage);
}

.main-nav a.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.header-cta .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}

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

@media (max-width: 980px) {
  .main-nav,
  .header-cta .btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ========== Mobile menu ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 90vw);
  background: var(--ink);
  color: var(--paper);
  z-index: 99;
  padding: 7rem 2.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(241, 237, 228, 0.1);
  transition: padding 0.3s, color 0.3s;
}

.mobile-menu a:hover {
  color: var(--terra-soft);
  padding-left: 0.5rem;
}

.mobile-menu .mm-footer {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.5);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 9rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  width: 100%;
}

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

.hero-headline {
  font-size: clamp(3rem, 9vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  position: relative;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease-out) forwards;
}

.hero-headline .line:nth-child(2) span { animation-delay: 0.1s; }
.hero-headline .line:nth-child(3) span { animation-delay: 0.2s; }
.hero-headline .line:nth-child(4) span { animation-delay: 0.3s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-headline .ital {
  font-style: italic;
  color: var(--sage);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-aside p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.hero-cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

@media (max-width: 700px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats > div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .hero-stats > div:nth-child(1),
  .hero-stats > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

.hero-stats > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child {
  border-right: none;
}

.hero-stats .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.hero-stats .num small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-style: normal;
}

.hero-stats .lbl {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* Decorative blob */
.hero-blob {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79, 99, 70, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

/* ========== Marquee ========== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee-track span::after {
  content: "✦";
  color: var(--terra-soft);
  font-size: 1.4rem;
}

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

/* ========== Services ========== */
.services {
  background: var(--paper);
  position: relative;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease-out);
  cursor: pointer;
}

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 50px 1fr;
    grid-template-areas:
      "num title"
      "desc desc"
      "cta cta";
    gap: 0.6rem 1rem;
    padding: 1.5rem 0;
  }
  .service-row .s-num { grid-area: num; }
  .service-row .s-title { grid-area: title; font-size: 1.5rem; }
  .service-row .s-desc { grid-area: desc; }
  .service-row .s-cta { grid-area: cta; justify-self: start; }
}

.service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.service-row:hover {
  padding-left: 1.5rem;
}

.service-row:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.service-row:hover,
.service-row:hover .s-num,
.service-row:hover .s-title,
.service-row:hover .s-desc {
  color: var(--paper);
}

.service-row:hover .s-num {
  color: var(--terra-soft);
}

.s-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  transition: color 0.4s;
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.s-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 50ch;
  transition: color 0.4s;
}

.s-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: all 0.4s;
}

.service-row:hover .s-cta {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--paper);
  transform: rotate(45deg);
}

/* ========== Featured / Articles ========== */
.articles {
  background: var(--paper-2);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 17, 13, 0.25);
}

.article-card--feature {
  grid-column: span 7;
}

.article-card--standard {
  grid-column: span 5;
}

.article-card--small {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .article-card--feature,
  .article-card--standard,
  .article-card--small {
    grid-column: span 12;
  }
}

.article-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.article-card--feature .article-thumb {
  aspect-ratio: 16 / 11;
}

.article-thumb-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.8s var(--ease-out);
}

.article-card:hover .article-thumb-art {
  transform: scale(1.06);
}

/* CSS-only illustrations */
.art-blueprint { background:
  repeating-linear-gradient(0deg, transparent 0 24px, rgba(20,17,13,0.06) 24px 25px),
  repeating-linear-gradient(90deg, transparent 0 24px, rgba(20,17,13,0.06) 24px 25px),
  linear-gradient(135deg, #d8d0b8, #b9b196);
}
.art-tile {
  background:
    linear-gradient(135deg, #cb9c75, #9d6e4a);
}
.art-tile::before {
  content: "";
  position: absolute; inset: 12%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 40px);
  border: 1px solid rgba(255,255,255,0.2);
}
.art-paint {
  background: linear-gradient(120deg, #4f6346 0 50%, #d27a52 50% 100%);
}
.art-paint::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 75%, rgba(255,255,255,0.35), transparent 35%),
              radial-gradient(circle at 75% 25%, rgba(20,17,13,0.2), transparent 40%);
}
.art-floor {
  background: repeating-linear-gradient(110deg,
    #8a623e 0, #8a623e 30px,
    #6f4e30 30px, #6f4e30 32px,
    #a0764e 32px, #a0764e 60px,
    #6f4e30 60px, #6f4e30 62px);
}
.art-bath {
  background: linear-gradient(160deg, #c2c8cf 0 60%, #4f6346 60% 100%);
}
.art-bath::before {
  content: "";
  position: absolute;
  left: 15%; bottom: 18%; width: 40%; height: 22%;
  background: var(--paper);
  border-radius: 60px 60px 14px 14px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.1);
}
.art-kitchen {
  background: linear-gradient(180deg, #2b2620 0 55%, #c89b50 55% 100%);
}
.art-kitchen::before {
  content: "";
  position: absolute; inset: 22% 14% 50% 14%;
  background: repeating-linear-gradient(90deg, #1a1816 0 30%, #14110d 30% 33%, #1a1816 33% 63%, #14110d 63% 66%, #1a1816 66% 100%);
}

.article-meta-row {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(241, 237, 228, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-weight: 500;
}

.tag--ink   { background: var(--ink); color: var(--paper); }
.tag--sage  { background: var(--sage); color: var(--paper); }
.tag--terra { background: var(--terra); color: var(--paper); }

.article-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.article-card--feature .article-body {
  padding: 2.5rem;
}

.article-body h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.article-card--feature .article-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.article-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ========== Process / Approach ========== */
.approach {
  background: var(--ink);
  color: var(--paper);
}

.approach .eyebrow {
  color: var(--terra-soft);
}

.approach .eyebrow::before {
  background: var(--terra-soft);
}

.approach h2 {
  color: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(241, 237, 228, 0.15);
}

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

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  padding: 2.5rem 1.5rem 2rem 0;
  border-right: 1px solid rgba(241, 237, 228, 0.15);
  padding-left: 1.5rem;
  position: relative;
  transition: background 0.4s;
}

.process-step:last-child {
  border-right: none;
}

.process-step:hover {
  background: rgba(241, 237, 228, 0.04);
}

.ps-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--terra-soft);
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.ps-title {
  font-size: 1.35rem;
  font-family: var(--font-display);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.ps-desc {
  font-size: 0.95rem;
  color: rgba(241, 237, 228, 0.7);
  line-height: 1.55;
}

/* ========== Quote / testimonial block ========== */
.quote-block {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-block blockquote::before {
  content: "“";
  font-size: clamp(6rem, 10vw, 9rem);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  color: var(--sage);
  line-height: 1;
  font-style: italic;
  opacity: 0.7;
}

.quote-cite {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ========== Newsletter / CTA ========== */
.cta-strip {
  background: var(--sage);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 237, 228, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 800px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

.cta-inner h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.cta-inner p {
  color: rgba(241, 237, 228, 0.85);
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 50ch;
}

.cta-form {
  display: flex;
  gap: 0.6rem;
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.5rem;
  align-items: center;
  border: 1px solid rgba(20, 17, 13, 0.1);
}

.cta-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.8rem 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.cta-form input::placeholder {
  color: var(--ink-mute);
}

.cta-form .btn {
  padding: 0.85rem 1.4rem;
  font-size: 0.9rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(241, 237, 228, 0.1);
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(241, 237, 228, 0.65);
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.5);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(241, 237, 228, 0.8);
  font-size: 0.95rem;
  transition: color 0.3s, padding 0.3s;
}

.footer-col a:hover {
  color: var(--terra-soft);
  padding-left: 0.3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(241, 237, 228, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a:hover {
  color: var(--paper);
}

/* ========== Reveal animations ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* split-text words */
.word-rise {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word-rise > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}

.word-rise.is-visible > span {
  transform: translateY(0);
}

/* ========== Page header (inner pages) ========== */
.page-head {
  padding: 11rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-head h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.page-head .lead {
  margin-top: 1.5rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb a:hover {
  color: var(--terra);
}

/* ========== Article single ========== */
.article-hero {
  padding: 9rem 0 3rem;
}

.article-hero .container-narrow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
  overflow: hidden;
  position: relative;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.article-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 3rem 0 1rem;
  color: var(--ink);
}

.article-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.25rem 0.6rem 0 0;
  color: var(--sage);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  border-left: 3px solid var(--terra);
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.article-content .callout {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-left: 3px solid var(--sage);
}

.article-content .callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.article-content figure {
  margin: 2.5rem 0;
}

.article-content figure .ph {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.article-content figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.author-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--paper-2);
  border-radius: var(--radius);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--terra));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-block .author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.author-block .author-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Articles index */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-bar button {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.3s;
}

.filter-bar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-bar button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.articles-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

/* Services page detailed */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

.service-detail-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.service-detail h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.service-detail .price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.5rem;
}

.service-detail ul {
  list-style: none;
  margin: 1.5rem 0;
}

.service-detail ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.97rem;
}

.service-detail ul li::before {
  content: "→";
  color: var(--terra);
  font-family: var(--font-display);
}

/* Contact form / page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--sage);
}

.contact-card h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact-form {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form h3 {
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.contact-form p.subtitle {
  color: rgba(241, 237, 228, 0.7);
  margin-bottom: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.5);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(241, 237, 228, 0.25);
  padding: 0.8rem 0;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--terra-soft);
}

.contact-form .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

@media (max-width: 800px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform 0.4s, border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
}

.value-card .v-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--sage);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Toggle / Scroll-to-top etc */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--terra);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Selection */
::selection {
  background: var(--sage);
  color: var(--paper);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
