/* ============================================================
   MAIN PAGE STYLES — index.html + about.html
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 4rem 4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--ochre-light);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--highlight);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ochre);
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero-headline em {
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero-headline em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 6px;
  background: var(--highlight);
  z-index: -1;
  opacity: 0.85;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
}

.hero-tagline strong { color: var(--ink); font-weight: 500; }

.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; }

.btn-ghost {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }

.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--highlight);
}

/* ── INTRO STRIP ──────────────────────────────────────────── */

.intro-strip {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
  background: var(--warm-wash);
}

.strip-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  padding-top: 0.25rem;
}

.strip-body {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}

.strip-body strong { font-weight: 500; }

/* ── SECTION SHARED ───────────────────────────────────────── */

.services { padding: 5rem 4rem; border-bottom: 1px solid var(--border); }

.services-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.section-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 340px;
  text-align: right;
  line-height: 1.75;
}

/* ── SERVICE CARDS ────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.svc-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  cursor: default;
  background-color: var(--paper);
  -webkit-tap-highlight-color: transparent;
}

.svc-card:nth-child(2n) { border-right: none; }
.svc-card:nth-child(3),
.svc-card:nth-child(4) { border-bottom: none; }

.svc-front,
.svc-back {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.svc-front {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
}

.svc-back {
  opacity: 0;
  transform: translateY(12px);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  will-change: transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(250,248,242,0.2) transparent;
}

.svc-back::-webkit-scrollbar { width: 4px; }
.svc-back::-webkit-scrollbar-track { background: transparent; }
.svc-back::-webkit-scrollbar-thumb { background: rgba(250,248,242,0.2); border-radius: 2px; }

.svc-back-inner {
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.svc-card:hover .svc-front {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.svc-card:hover .svc-back {
  opacity: 1;
  transform: translateY(0);
}

.svc-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.svc-back .svc-num { color: rgba(245,243,238,0.3); margin-bottom: 0.75rem; }

.svc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.2s;
}

.svc-back .svc-name { color: var(--paper); font-size: 1.35rem; margin-bottom: 1rem; }

.svc-angle {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.svc-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.svc-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.svc-hint {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45,40,32,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.svc-hint::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
}

.svc-card:hover .svc-hint { color: transparent; }

.svc-back .svc-detail {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250,248,242,0.8);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.svc-back .svc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(250,248,242,0.12);
  padding-top: 1rem;
}

.svc-back .svc-bullets li {
  font-size: 0.82rem;
  color: rgba(250,248,242,0.65);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.55;
}

.svc-back .svc-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--highlight);
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */

.how {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--warm-wash);
  position: relative;
  overflow: hidden;
}

.how::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--ochre-light);
  opacity: 0.3;
  pointer-events: none;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.how-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--ochre-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.how-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.how-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA BLOCK ────────────────────────────────────────────── */

.cta-block {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--highlight);
  opacity: 0.05;
  pointer-events: none;
}

.cta-block .section-title { color: var(--paper); margin-bottom: 1rem; font-size: clamp(2.5rem, 5.5vw, 5rem); font-weight: 900; line-height: 1.05; }
.cta-block p { color: rgba(250,248,242,0.6); font-size: 1rem; font-weight: 300; margin-bottom: 2.5rem; max-width: 420px; line-height: 1.7; }

.btn-light {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--highlight);
  color: var(--ink);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-light:hover { opacity: 0.85; }

/* ── ANIMATIONS ───────────────────────────────────────────── */

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

/* ── ABOUT PAGE ───────────────────────────────────────────── */

.about-intro {
  padding: 8rem 4rem 4rem;
}

.about-intro-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 860px;
}

.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid var(--ochre);
  opacity: 0.5;
  pointer-events: none;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  top: -14px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ochre);
}

.about-photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.about-linkedin {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ochre);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.about-linkedin:hover {
  text-decoration: underline;
}

.about-bio {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 560px;
}

.about-background { display: block; }

.about-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about-case {
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-case--placeholder {
  opacity: 0.4;
}

.about-case-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
}

.about-case-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.about-case-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

.about-case-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.about-case-link:hover {
  color: var(--ochre);
}

.about-earlier {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 640px;
}

.about-approach { padding-top: 4rem; }

@media (max-width: 768px) {
  .about-intro { padding: 6rem 1.5rem 3rem; }
  .about-intro-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo-wrap { width: 140px; height: 140px; }
  .about-photo-wrap::before { width: 160px; height: 160px; }
  .about-photo-circle { width: 140px; height: 140px; }
  .about-cases { grid-template-columns: 1fr; }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-headline { animation: fadeUp 0.6s 0.1s ease both; }
.hero-bottom   { animation: fadeUp 0.6s 0.2s ease both; }
.hero-trust    { animation: fadeUp 0.6s 0.3s ease both; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-headline { font-size: 2.8rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { align-items: flex-start; }
  .intro-strip { padding: 2.5rem 1.5rem; grid-template-columns: 1fr; gap: 1rem; }
  .services { padding: 3rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(2n) { border-right: none; }
  .svc-card:nth-child(3) { border-bottom: 1px solid var(--border); }
  .svc-card:nth-child(4) { border-bottom: none; }
  .how { padding: 3rem 1.5rem; }
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  #pricing > div { grid-template-columns: 1fr !important; }
  #pricing > div > div { border-right: none !important; border-bottom: 1px solid var(--border); }
  #pricing > div > div:last-child { border-bottom: none; }
  .cta-block { padding: 4rem 1.5rem; }
  .cta-block .section-title { font-size: 2rem; }
  .section-sub { text-align: left; }
}

/* ── TOUCH DEVICES — tap to flip cards ───────────────────── */

@media (hover: none) {
  .svc-card {
    cursor: pointer;
    min-height: auto;
    overflow: visible;
  }

  .svc-front,
  .svc-back {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    transition: none;
    padding: 2rem;
  }

  .svc-back {
    display: none;
    overflow-y: auto;
    max-height: 70vh;
    border-top: 1px solid rgba(250,248,242,0.1);
  }

  .svc-card.is-open .svc-front { display: none; }
  .svc-card.is-open .svc-back  { display: flex; }

  .svc-hint { display: block; }
  .svc-card.is-open .svc-hint  { color: transparent; }

  /* swap hint text to tap on touch devices */
  .svc-hint { font-size: 0; }
  .svc-hint::after {
    content: 'Tap to learn more';
    font-size: 0.72rem;
  }
  .svc-card.is-open .svc-back::before {
    content: 'Tap to close';
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250,248,242,0.35);
    margin-bottom: 1rem;
  }
}
