:root {
  /* Text */
  --ink: #1a1a1a;
  --ink-soft: #444444;         /* secondary body copy */
  --muted: #6b6b6b;            /* AA-compliant muted text on --bg */

  /* Brand */
  --accent: #d1e3b9;
  --accent-strong: #7aa84f;    /* decorative / hover accent */
  --accent-text: #4d6b2c;      /* AA-compliant accent text */
  --ok: #2faf5a;
  --status: #7bd13f;

  /* Surfaces */
  --bg: #f1f2f6;
  --card: #ffffff;
  --card-stack: #e8e9ee;
  --frame-bg: #d6d8de;
  --surface-subtle: rgba(0, 0, 0, .03);
  --border-soft: rgba(0, 0, 0, .18);

  /* Elevation */
  --shadow-sm: 1px 1px 6px rgba(0, 0, 0, .1);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .12);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Crimson Text", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-pixel: "Micro 5", monospace;

  /* Layout */
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Lenis momentum scrolling — active only while the library is running */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
  padding: 0 0 80px;
}

/* --- Badge --- */
.badge {
  --accent: #e2c2c2;           /* rose accent scoped to the badge */
  width: 380px;
  aspect-ratio: 790 / 1250;
  background: url("assets/images/Badge.png") no-repeat top center / contain;
  display: flex;
}

.badge__card {
  position: relative;
  width: 100%;
  /* hold content inside the transparent card, below the lanyard */
  padding: 44% 24% 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge__title {
  margin: 0 0 20px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
}
.badge__title strong { font-weight: 800; }

.badge__avatar {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.badge__avatar img {
  width: auto;
  height: 90px;
  display: block;
}

.badge__name {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.56px;
}
.badge__meta {
  margin: 10px 0 26px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.badge__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.badge__status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 209, 63, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(123, 209, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 209, 63, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .badge__status .dot { animation: none; box-shadow: 0 0 0 3px rgba(123, 209, 63, .25); }
}

/* --- Badge reveal --- */
@keyframes badgeReveal {
  from { opacity: 0; filter: blur(12px); }
  to   { opacity: 1; filter: blur(0); }
}
.badge__card > * {
  animation: badgeReveal .9s cubic-bezier(.2, .7, .3, 1) both;
}
.badge__title  { animation-delay: .15s; }
.badge__avatar { animation-delay: .35s; }
.badge__name   { animation-delay: .55s; }
.badge__meta   { animation-delay: .70s; }
.badge__status { animation-delay: .85s; }
@media (prefers-reduced-motion: reduce) {
  .badge__card > * { animation: none; }
}

/* --- Intro --- */
.intro { align-self: center; }
.intro__lead {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  max-width: 560px;
}
.intro__lead em { font-style: italic; }
.intro__lead--gap { margin-top: 1.4em; }

.cta {
  display: flex;
  gap: 14px;
  margin: 26px 0 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--solid {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.btn--ghost {
  background: var(--surface-subtle);
  box-shadow: 1px 1px 6px rgba(0, 0, 0, .07);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.socials {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  gap: 10px;
}
.social {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  transition: transform .15s ease;
}
.social img { width: 100%; height: 100%; object-fit: contain; display: block; filter: grayscale(1); }
.social:hover { transform: translateY(-2px) scale(1.05); }

/* ===================== SERVICES ===================== */
.services { padding: 40px 0 60px; }

.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 48px;
  padding: 6px;
  background: #efeff1;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1), inset 0 8px 8px rgba(255, 255, 255, .25);
}
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .32s cubic-bezier(.4, .8, .3, 1), width .32s cubic-bezier(.4, .8, .3, 1);
  pointer-events: none;
  z-index: 0;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  transition: font-weight .2s ease;
}
.tab.is-active { font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .tab-indicator { transition: none; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 2px;
  row-gap: 0;
  background: var(--accent);
  border: 2px solid var(--accent);
}
.cards[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  padding: 24px 30px 22px;
  background: var(--bg);
  min-height: 200px;
}

.card__price {
  display: block;
  font-family: var(--font-pixel);
  font-size: 56px;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 10px;
}
.card__unit {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.card__duration {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.card__body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ===================== SHARED SECTIONS ===================== */
.section { padding: 70px 0; }
.section__label {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
/* --- How I work --- */
.how__intro {
  max-width: 620px;
  margin: -8px auto 36px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.steps {
  list-style: none;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0;
}
.step {
  position: relative;
  padding: 0 0 30px 54px;
}
.step:last-child { padding-bottom: 0; }
/* vertical connector linking the step nodes */
.step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.step__title { margin: 2px 0 6px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.values li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, .03);
  border-radius: 999px;
  font-size: 14px;
}
.values li svg { flex-shrink: 0; color: var(--accent-strong); }

/* --- Recent work carousel --- */
.carousel { position: relative; }

.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.carousel__counter {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}
.carousel__counter #workCounter { color: var(--ink); }
.carousel__nav { display: flex; gap: 10px; }
.carousel__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.carousel__arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Stacked deck: all slides share one grid cell, so the deck sizes to the
   tallest card and every slide stretches to match it — no JS height sync. */
.carousel__deck {
  display: grid;
  align-items: stretch;
  padding-bottom: 36px; /* room for the peeking cards */
}

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--card-stack);
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 44px;
  transform-origin: center center;
  transition: transform .55s cubic-bezier(.45, .05, .2, 1), opacity .45s ease;
  will-change: transform, opacity;
}
/* stack position relative to the active card (set by JS via data-pos) */
.slide[data-pos="0"] { transform: translateY(0) scale(1);     opacity: 1; z-index: 40; }
.slide[data-pos="1"] { transform: translateY(22px) scale(.96); opacity: 1; z-index: 30; }
.slide[data-pos="2"] { transform: translateY(40px) scale(.93); opacity: 1; z-index: 20; }
.slide[data-pos="3"] { transform: translateY(40px) scale(.93); opacity: 0; z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .2s ease; }
}

/* media — screenshot in a floating frame, grey placeholder behind it */
.slide__media { display: flex; align-items: center; justify-content: center; }
.slide__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(0, 0, 0, .18);
  background: var(--frame-bg);
}
.slide__watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-pixel);
  font-size: 150px;
  line-height: 1;
  color: rgba(0, 0, 0, .10);
  z-index: 2;
  pointer-events: none;
}
.slide__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

.slide__info { display: flex; flex-direction: column; align-items: flex-start; }
.slide__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--accent-text);
  margin: 0 0 14px;
}
.slide__name {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.slide__desc {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  max-width: 460px;
}
.slide__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
}
.slide__tags li {
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.slide__cta svg { transition: transform .2s ease; }
.slide__cta:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
.slide__cta:hover svg { transform: translate(2px, -2px); }

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.cdot {
  height: 6px; width: 12px;
  border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: width .25s ease, background .2s ease;
}
.cdot:hover { background: rgba(0, 0, 0, .32); }
.cdot.is-active { width: 28px; background: var(--ink); }

/* --- Background --- */
.background { text-align: center; }
.background__tagline {
  margin: 52px 0 24px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.background__tagline span { color: var(--accent-strong); font-weight: 700; }

/* --- CTA section --- */
.cta-section { text-align: center; padding: 90px 0 70px; }
.cta-section__title {
  margin: 18px 0 24px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.cta-section .btn { margin-top: 26px; }

/* ===================== CONTACT ===================== */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0 60px;
}
.mail-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px 0 22px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  font-weight: 400;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mail-field:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mail-field a {
  color: var(--ink);
  text-decoration: none;
}
.copy {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink); display: grid; place-items: center; padding: 4px;
  border-radius: 6px; transition: background .15s ease;
}
.copy:hover { background: rgba(0, 0, 0, .06); }
.copy.copied { color: var(--ok); }

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  margin-top: 40px;
  padding: 60px 0 90px;
  text-align: center;
}
.footer__bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}
.footer__item { display: inline-flex; align-items: center; gap: 6px; }
.footer__item time, #weather { font-variant-numeric: tabular-nums; }
#weatherIcon { display: inline-flex; align-items: center; }
.footer__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.footer__credit { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .badge { width: min(320px, 100%); }
  .badge__title { text-align: left; font-size: 22px; }
  .badge__avatar { width: 90px; height: 90px; flex-shrink: 0; margin: 0 auto 10px; }
  .badge__avatar img { height: 70px; }
  .badge__meta { margin: 8px 0 20px; }
  .badge__status { font-size: 11px; }
  .intro__lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .cards, .cards[data-count="3"] { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 2px; }
  .card { display: block; grid-row: auto; }
  .slide { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .slide__watermark { font-size: 110px; }
  .carousel__arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .page { padding: 0 16px; }
  .tabs { width: 100%; flex-wrap: wrap; padding: 4px; gap: 2px; }
  .tab { flex: 1 1 auto; padding: 7px 6px; font-size: 11px; white-space: nowrap; }
  .footer__bar { flex-wrap: wrap; justify-content: center; }
}
