/* ═══════════════════════════════════════
   OCTAVINE — DESIGN SYSTEM
   Digital Agency · Minimal · Refined
   ═══════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ── */
:root {
  --paper: #ebeee7;
  --paper-warm: #e3e6de;
  --ink: #2b3a30;
  --ink-soft: #3d4a41;
  --muted: #6b746c;
  --muted-light: #969e97;
  --accent: #5a7a62;
  --accent-soft: rgba(90, 122, 98, 0.12);
  --white: #fafcf8;
  --border: rgba(43, 58, 48, 0.12);
  --border-strong: rgba(43, 58, 48, 0.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --section-py: clamp(80px, 10vw, 140px);
  --container: 1200px;
  --container-narrow: 800px;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ── 3. TYPOGRAPHY ── */
.t-display {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: clamp(42px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.t-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.t-subheading {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.t-body {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.t-body-lg {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.t-caption {
  font-size: clamp(12px, 0.9vw, 13px);
  line-height: 1.5;
  color: var(--muted);
}

/* ── 4. LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

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

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── 5. SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

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

/* ── 6. HEADER / NAV ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(235, 238, 231, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo-mark {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.header__logo-text {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 36px);
}

.header__nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.header__nav a:hover {
  color: var(--ink);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(90, 122, 98, 0.32);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
  white-space: nowrap;
}

.header__cta svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.header__cta:hover,
.header__cta:focus,
.header__cta:visited {
  text-decoration: none;
  background: #243529;
  transform: translateY(-1px);
}

.header__cta:hover svg {
  transform: translateX(3px);
}

/* Mobile menu toggle */
.header__menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  position: relative;
  z-index: 102;
}

.header__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.header__menu-btn span:nth-child(1) {
  transform: translateY(-4px);
}

.header__menu-btn span:nth-child(3) {
  transform: translateY(4px);
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

/* ── 7. ORIGINAL HERO ── */
.og-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.og-hero__video {
  order: 2;
  flex: 1 1 0;
  min-height: 0;
  display: block;
  width: 100%;
  height: auto;
  margin-top: -12vh;
  margin-top: -12svh;
  object-fit: cover;
  object-position: 50% 35%;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.og-hero__content {
  order: 1;
  flex: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 2.8vw, 36px) 16px 0;
  padding-top: calc(var(--header-h) + clamp(12px, 1.5vw, 24px));
}

.og-hero__mark {
  width: clamp(44px, 4.1vw, 54px);
  height: auto;
  color: var(--ink);
  display: block;
}

.og-hero__brand {
  margin: clamp(6px, .9vw, 12px) 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: clamp(40px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.og-hero__tagline {
  margin: clamp(14px, 1.4vw, 18px) 0 0;
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44em;
}

.og-hero__nav {
  margin-top: clamp(28px, 3.2vw, 40px);
}

.og-hero__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 10px;
}

.og-hero__nav li {
  display: flex;
  align-items: center;
}

.og-hero__nav li+li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin: 0 clamp(16px, 1.8vw, 24px);
  flex: none;
}

.og-hero__nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 400;
  padding: 4px 0;
  transition: color .2s ease;
}

.og-hero__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.og-hero__nav a:hover::after,
.og-hero__nav a:focus-visible::after {
  transform: scaleX(1);
}

.og-hero__nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.og-hero__copy {
  margin: clamp(22px, 2.4vw, 30px) 0 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 58, 48, 0.18);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(43, 58, 48, 0.04);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ── 8. SERVICES ── */
.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(48px, 5vw, 72px);
}

.services__header .t-subheading {
  margin-bottom: 16px;
}

.services__header .t-heading {
  margin-bottom: 16px;
}

.service-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(43, 58, 48, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  margin-bottom: 10px;
  color: var(--ink);
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out);
}

.service-card__link:hover {
  gap: 10px;
}

/* ── Services bento grid ── */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Row 1: Software Dev (2), UI/UX (1), AI (1) */
.services-bento .service-card:nth-child(1) { grid-column: span 2; }

/* Row 2: Cloud (1), Mobile App (1), Consulting (2) */
.services-bento .service-card:nth-child(6) { grid-column: span 2; }

/* Row 3: AI Automation (2), QA Testing (2) */
.services-bento .service-card:nth-child(7) { grid-column: span 2; }
.services-bento .service-card:nth-child(8) { grid-column: span 2; }

/* Row 3: Blockchain full width, horizontal */
.services-bento .service-card--wide {
  grid-column: span 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.services-bento .service-card--wide .service-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

.services-bento .service-card--wide__body {
  flex: 1;
}

.services-bento .service-card--wide .service-card__title {
  margin-bottom: 6px;
}

.services-bento .service-card--wide .service-card__desc {
  margin: 0;
}

.services-bento .service-card--wide .service-card__link {
  flex-shrink: 0;
  margin-top: 0;
}

@media (max-width: 900px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-bento .service-card:nth-child(1),
  .services-bento .service-card:nth-child(6),
  .services-bento .service-card:nth-child(7),
  .services-bento .service-card:nth-child(8) { grid-column: span 2; }
  .services-bento .service-card--wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .services-bento .service-card--wide .service-card__icon { margin-bottom: 4px; }
  .services-bento .service-card--wide .service-card__link { margin-top: 12px; }
}

@media (max-width: 560px) {
  .services-bento { grid-template-columns: 1fr; }
  .services-bento .service-card:nth-child(1),
  .services-bento .service-card:nth-child(6),
  .services-bento .service-card:nth-child(7),
  .services-bento .service-card:nth-child(8),
  .services-bento .service-card--wide { grid-column: span 1; }
}

/* ── 9. ABOUT / PROCESS ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.about__image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  position: relative;
}

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

.about__content .t-subheading {
  margin-bottom: 16px;
}

.about__content .t-heading {
  margin-bottom: 20px;
}

.about__content .t-body {
  margin-bottom: 32px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat__number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 2.5vw, 38px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── 10. PROCESS ── */
.process__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(48px, 5vw, 72px);
}

.process__header .t-subheading { margin-bottom: 16px; }
.process__header .t-heading { margin-bottom: 16px; }

.process-step {
  text-align: center;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  position: relative;
}

.process-step__number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 4vw, 64px);
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(90, 122, 98, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.3vw, 22px);
  margin-bottom: 10px;
  color: var(--ink);
}

.process-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 260px;
  margin: 0 auto;
}

/* ── 11. WORK / PORTFOLIO ── */
.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.work__header-text .t-subheading {
  margin-bottom: 12px;
}

.work-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-warm);
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 58, 48, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.5vw, 32px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 24px);
  color: var(--paper);
  margin-bottom: 4px;
}

.work-card__tag {
  font-size: 12px;
  color: rgba(235, 238, 231, 0.7);
  letter-spacing: 0.04em;
}

/* ── 12. TESTIMONIALS ── */
.testimonials__header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.testimonials__header .t-subheading { margin-bottom: 16px; }

.testimonial-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow 0.4s var(--ease-out);
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(43, 58, 48, 0.06);
}

.testimonial-card__quote {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 28px;
  position: relative;
}

.testimonial-card__quote::before {
  content: """;
  font-family: var(--serif);
  font-size: 4em;
  color: var(--accent-soft);
  position: absolute;
  top: -0.35em;
  left: -0.05em;
  line-height: 1;
  pointer-events: none;
  opacity: 0.5;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── 13. CTA ── */
.cta {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
}

.cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta .t-heading {
  margin-bottom: 16px;
}

.cta .t-body {
  margin-bottom: 36px;
}

.cta .btn {
  margin: 0 auto;
}

/* ── 14. FOOTER ── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 7vw, 96px) 0 clamp(28px, 3vw, 40px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.footer__brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(235, 238, 231, 0.6);
  max-width: 280px;
}

.footer__col-title {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 238, 231, 0.45);
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(235, 238, 231, 0.7);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(235, 238, 231, 0.1);
}

.footer__copy {
  font-size: 12px;
  color: rgba(235, 238, 231, 0.4);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(235, 238, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 238, 231, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__socials a:hover {
  border-color: rgba(235, 238, 231, 0.4);
  color: var(--paper);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
}

/* ── 15. PAGE HERO (for inner pages) ── */
.page-hero {
  padding: calc(var(--header-h) + clamp(60px, 7vw, 100px)) 0 clamp(60px, 7vw, 100px);
  text-align: center;
}

.page-hero .t-display {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-bottom: 16px;
}

.page-hero .t-body-lg {
  max-width: 560px;
  margin: 0 auto;
}

/* ── 16. SERVICES PAGE ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-warm);
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__content .t-subheading {
  margin-bottom: 12px;
}

.service-detail__content .t-heading {
  font-size: clamp(26px, 2.5vw, 38px);
  margin-bottom: 16px;
}

.service-detail__features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-detail__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.service-detail__feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── 17. ABOUT PAGE ── */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.value-card {
  text-align: center;
  padding: clamp(32px, 3vw, 48px) clamp(20px, 2vw, 28px);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.3vw, 22px);
  margin-bottom: 10px;
  color: var(--ink);
}

.value-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Team */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

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

.team-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--paper-warm);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.team-card__name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}

.team-card__role {
  font-size: 13px;
  color: var(--muted);
}

/* ── 18. CONTACT PAGE ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}

.contact__info h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 16px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact__detail-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact__detail-text span {
  font-size: 14px;
  color: var(--muted);
}

.contact__detail-text a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Contact form */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--muted-light);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__submit {
  align-self: flex-start;
}

/* ── 19. DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ── 20. MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(235, 238, 231, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 36px);
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

/* ── 21. RESPONSIVE ── */

/* Always show work-card overlay on touch devices */
@media (hover: none) {
  .work-card__overlay { opacity: 1; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  /* prevent grid blowout */
  .grid--2 > *, .grid--3 > *, .grid--4 > * { min-width: 0; }
}

@media (max-width: 900px) {
  .header__nav,
  .header__cta { display: none; }
  .header__menu-btn { display: flex; align-items: center; justify-content: center; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; }
  .about__image { order: -1; }

  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .service-detail__visual { max-height: 340px; }

  .work__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  /* Always show overlay on tablets/mobile since no hover */
  .work-card__overlay { opacity: 1; }

  .contact__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  /* Bento wide card: stack vertically, align to start */
  .services-bento .service-card--wide { align-items: flex-start; }

  .og-hero__nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 4px;
    max-width: 480px;
    margin: 0 auto;
  }
  .og-hero__nav li { justify-content: center; }
  .og-hero__nav li+li::before { display: none; }
  .og-hero__nav a { padding: 8px 4px; font-size: 14px; }
}

@media (max-width: 600px) {
  :root {
    --header-h: 60px;
    --section-py: clamp(48px, 7vw, 72px);
  }

  /* Grid collapses */
  .footer__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: 1fr; }

  /* Stats stay 3-col but tighten */
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat__number { font-size: clamp(22px, 6vw, 32px); }

  /* Process steps single column */
  .process-step { padding: 20px 16px; }
  .process-step__desc { max-width: none; }

  /* Hero */
  .og-hero__content { padding: 0 16px; padding-top: calc(var(--header-h) + 12px); }
  .og-hero__nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 380px;
  }

  /* Service detail image cap on small screens */
  .service-detail__visual { max-height: 260px; }

  /* Page hero */
  .page-hero { padding-left: 0; padding-right: 0; }

  /* Footer */
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* CTA */
  .cta__inner { padding: 0 4px; }
  .cta .t-heading { font-size: clamp(28px, 7vw, 40px); }

  /* Testimonials */
  .testimonial-card__quote { font-size: clamp(20px, 5vw, 26px); }

  /* Contact */
  .contact__info h3 { font-size: clamp(20px, 5vw, 24px); }

  /* Buttons full-width on tiny screens */
  .btn { width: 100%; justify-content: center; }
  .form__submit { width: auto; }
}

@media (max-width: 400px) {
  .about__stats { grid-template-columns: 1fr; gap: 16px; }
  .team__grid { grid-template-columns: 1fr; }
  .og-hero__brand { font-size: clamp(32px, 8vw, 44px); }
  .og-hero__nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 340px; }
  .og-hero__nav a { font-size: 12px; padding: 6px 2px; }
  .og-hero__nav li { justify-content: center; }
}

/* ── 22. PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(43, 58, 48, 0.1);
  border-color: var(--border-strong);
}

.project-card__body {
  flex: 1;
  padding: 28px 28px 20px;
}

.project-card__meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.project-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.project-card__footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.project-card:hover .project-card__link {
  color: var(--accent);
}

.project-card__link svg {
  transition: transform 0.2s var(--ease-out);
}

.project-card:hover .project-card__link svg {
  transform: translate(2px, -2px);
}

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

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card__body { padding: 22px 20px 16px; }
  .project-card__footer { padding: 14px 20px 18px; }
}

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