/* ==========================================================================
   MATANEL STUDIO — Editorial Design System
   Single accent, hairline rules, large type, no gradients.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — soft graphite, slightly warm */
  --ink: #17171a;
  --ink-raised: #212125;
  --ink-deep: #101013;

  /* Text */
  --text: #f2f1ee;
  --text-dim: #afaca7;
  --text-faint: #94908a;

  /* Single accent — fills carry ink text, never white (white fails AA) */
  --accent: #19c3bb;
  --accent-dim: #108a84;
  --on-accent: #101013;

  /* WhatsApp brand green — dark text, white fails AA on it */
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5a;

  /* Hairlines */
  --rule: rgba(236, 235, 232, 0.16);
  --rule-strong: rgba(236, 235, 232, 0.3);

  /* Type */
  --font-sans: "Heebo", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Rubik", "Heebo", sans-serif;
  --font-mono: "IBM Plex Mono", "Heebo", ui-monospace, monospace;

  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.8rem + 3vw, 4.5rem);
  --step-4: clamp(3.2rem, 2rem + 6.5vw, 9rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vh, 10rem);
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 599px) {
  :root {
    --section-y: clamp(3rem, 9vh, 4.5rem);
  }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  direction: rtl;
  overflow-x: hidden;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

strong {
  font-weight: 700;
  color: #fff;
}

em {
  font-style: normal;
  color: var(--accent);
}

/* Small label on inner pages. Hebrew has no capitals, and tracking breaks
   the letterforms apart, so this stays in the text face at normal spacing. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-y);
}

/* Section header: eyebrow + display heading, offset to the grid */
.section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.section-head p {
  color: var(--text-dim);
  font-weight: 300;
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr minmax(0, 32ch);
    align-items: end;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   5. TOP BAR
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 1.5rem;
  padding: 0.5rem var(--gutter);
  background: #000;
  border-bottom: 1px solid var(--rule);
}

.topnav {
  grid-column: 1;
  grid-row: 1;
}

.topnav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 599px) {
  .topbar {
    grid-template-columns: 1fr;
    padding-block: 0.65rem 0;
  }

  .wordmark {
    grid-column: 1;
    justify-self: center;
  }

  .topnav {
    grid-row: 2;
  }
}

.wordmark {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .wordmark {
    grid-column: 1;
  }
}

.wordmark span {
  color: var(--accent);
}

/* Persistent WhatsApp action. On phones it moves to .wa-float (thumb zone). */
.topbar__wa {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  transition: background 0.3s var(--ease);
}

.topbar__wa:hover {
  background: var(--text);
}

@media (max-width: 599px) {
  .topbar__wa {
    display: none;
  }
}

.topbar__wa,
.wa-float,
.btn--solid[href*="wa.me"] {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--on-accent);
}

.topbar__wa:hover,
.wa-float:hover {
  background: var(--whatsapp-hover);
}

.btn--solid[href*="wa.me"]::after {
  background: var(--whatsapp-hover);
}

.btn--solid[href*="wa.me"]:hover {
  border-color: var(--whatsapp-hover);
}

/* Plain text links and footer icon */
a[href*="wa.me"]:not(.btn):not(.topbar__wa):not(.wa-float) {
  color: var(--whatsapp);
}

.wa-float {
  display: none;
}

@media (max-width: 599px) {
  .wa-float {
    position: fixed;
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    inset-inline: var(--gutter);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    font-weight: 700;
    color: var(--on-accent);
    background: var(--whatsapp);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
      visibility 0.4s;
  }

  .wa-float .icon {
    width: 1.25em;
    height: 1.25em;
  }

  body.show-wa:not(.hide-wa) .wa-float {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  color: var(--btn-fg);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Accent wipe from the inline start */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.btn:hover {
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn__arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(-0.35rem);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--solid::after {
  background: var(--text);
}

.btn--solid:hover {
  color: var(--on-accent);
  border-color: var(--text);
}

.btn .icon {
  width: 1.2em;
  height: 1.2em;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* Quiet inline text link */
.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.3em;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 7rem clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 30%;
  filter: saturate(0.9) brightness(0.82);
}

@media (max-width: 599px) {
  .hero__media img {
    object-position: 55% 12%;
  }
}

/* Vignette so the type always reads; heavier on the text side (inline start) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      var(--ink) 2%,
      rgba(23, 23, 26, 0.7) 40%,
      rgba(23, 23, 26, 0.1) 100%
    ),
    linear-gradient(to left, rgba(23, 23, 26, 0.55), transparent 60%);
}

.hero__title {
  /* Height-aware so three lines always fit the first screen */
  font-size: clamp(2.75rem, min(8vw, 13vh), 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-block: 0 clamp(1.5rem, 4vh, 2.5rem);
}

.hero__meta {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid var(--rule);
}

.hero__meta p {
  font-weight: 400;
  color: var(--text);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

@media (min-width: 900px) {
  .hero__meta {
    grid-template-columns: minmax(0, 46ch) auto;
    justify-content: start;
    align-items: center;
    gap: 3.5rem;
  }
}

/* Tighten the hero so the CTA still lands above the fold on phones */
@media (max-width: 599px) {
  .hero {
    padding-block: 7.5rem 2rem;
  }

  .hero__title {
    margin-block: 0 1.25rem;
  }

  .hero__meta {
    gap: 1.25rem;
    padding-top: 1.25rem;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. SERVICES — full-bleed accent band, round icon badges
   -------------------------------------------------------------------------- */
#services {
  background: var(--accent);
  color: var(--on-accent);
}

#services h2,
#services h3 {
  color: var(--on-accent);
}

#services .section-head {
  border-bottom-color: rgba(16, 16, 19, 0.3);
}

#services .section-head p,
.service__desc {
  color: var(--on-accent);
  font-weight: 400;
}

#services .link {
  color: var(--on-accent);
  text-decoration-color: currentColor;
}

#services .link:hover {
  color: var(--on-accent);
  text-decoration-thickness: 2px;
}

#services :focus-visible {
  outline-color: var(--on-accent);
}

.service-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.75rem;
  text-align: center;
}

.service__badge {
  display: grid;
  place-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--on-accent);
  color: var(--accent);
}

.service__badge .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.service__title {
  font-size: var(--step-1);
}

.service__desc {
  max-width: 32ch;
}

/* --------------------------------------------------------------------------
   9b. HOW IT WORKS — the numbers are the sequence, so they earn their size
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3rem);
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.step {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 0.9;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: var(--step-2);
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
}

.step__desc {
  color: var(--text-dim);
  font-weight: 300;
  max-width: 38ch;
}

/* The steps carry their own top rules; skip the heading's to avoid a double line */
#process .section-head {
  padding-bottom: 0;
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   9c. INLINE CTA — the ask right after the proof
   -------------------------------------------------------------------------- */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.inline-cta p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (max-width: 599px) {
  .inline-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   10. PORTFOLIO / AUDIO PLAYER
   -------------------------------------------------------------------------- */
.track {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.4s var(--ease);
}

.track:first-child {
  border-top: none;
}

.play-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(236, 235, 232, 0.5);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  /* Optical centering for the play triangle */
  transform: translateX(1px);
}

.play-btn.is-playing svg {
  transform: none;
}

.icon-pause,
.play-btn.is-playing .icon-play {
  display: none;
}

.play-btn.is-playing .icon-pause {
  display: block;
}

.play-btn:hover,
.play-btn.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Buffering after the first press: the ring breathes until audio starts */
.track.is-loading .play-btn {
  animation: buffering 1.1s ease-in-out infinite;
}

@keyframes buffering {
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(25, 195, 187, 0.18);
  }
}

.track__body {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.track__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.track__title {
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.track__artist {
  font-size: var(--step--1);
  color: var(--text-faint);
}

.waveform {
  width: 100%;
  min-height: 56px;
  cursor: pointer;
}

/* No WaveSurfer (CDN blocked): a plain progress rule still shows position */
.track.no-wave .waveform {
  min-height: 0;
  height: 2px;
  margin-block: 27px;
  cursor: default;
  background: linear-gradient(
    to right,
    var(--accent) var(--progress, 0%),
    var(--rule-strong) 0
  );
}

.track__status {
  font-size: var(--step--1);
  color: var(--text-dim);
}

.track.has-error .track__status {
  color: var(--accent);
}

.track__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  direction: ltr;
  text-align: right;
}

@media (max-width: 599px) {
  .track {
    gap: 1rem;
  }

  .play-btn {
    width: 46px;
    height: 46px;
  }
}

/* --------------------------------------------------------------------------
   11. GALLERY — deliberately asymmetric
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  grid-column: span 3;
  aspect-ratio: 4 / 3;
  background: var(--ink-raised);
}

.gallery-item:nth-child(1) {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}
.gallery-item:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}
.gallery-item:nth-child(3) {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}
.gallery-item:nth-child(4) {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  grid-column: span 3;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery-open:focus-visible {
  outline-offset: -3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  /* Wide first and last tiles so the two-column grid never leaves an orphan */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

/* --------------------------------------------------------------------------
   13. PAGE HEADER (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(8rem, 18vh, 12rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: var(--step-3);
  margin-block: 1.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   14. ABOUT
   -------------------------------------------------------------------------- */
.prose {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 900px) {
  .prose {
    grid-template-columns: minmax(0, 22ch) minmax(0, 1fr);
    gap: 4rem clamp(3rem, 6vw, 6rem);
  }
}

.prose__block {
  display: contents;
}

.prose__label {
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.5rem;
}

.prose__body {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.prose__body p {
  font-size: var(--step-0);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: var(--measure);
}

.prose__body p:first-child {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

.checklist {
  display: grid;
  gap: 0;
}

.checklist li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 300;
  color: var(--text-dim);
}

.checklist li:first-child {
  border-top: 1px solid var(--rule);
}

.checklist li::before {
  content: counter(list-item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   15. KARAOKE
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-item {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.video-title {
  font-size: var(--step-0);
  font-weight: 700;
}

.video-desc {
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   16. FORM
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28ch);
    gap: clamp(3rem, 8vw, 7rem);
  }
}

form {
  display: grid;
  gap: 2.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-dim);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

/* Phone digits read LTR but stay aligned to the RTL flow */
input[type="tel"] {
  direction: ltr;
  text-align: right;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}

.contact-aside {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.contact-aside dt {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.contact-aside dd {
  font-size: var(--step-0);
  font-weight: 300;
}

.contact-aside a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
footer {
  padding-block: clamp(4rem, 9vw, 7rem) 2rem;
  border-top: 1px solid var(--rule);
  background: var(--ink-deep);
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-cta {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.footer-cta a {
  position: relative;
  display: inline-block;
}

.footer-cta a::after {
  content: "";
  position: absolute;
  inset-block-end: 0.1em;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.footer-cta a:hover::after {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links a[href*="instagram.com"] {
  color: #e1306c;
}

.social-links a[href*="tiktok.com"] {
  color: #fff;
}

/* TikTok's cyan/red offset glyph */
.social-links a[href*="tiktok.com"] .social-icon {
  filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55);
}

.social-links a[href*="instagram.com"]:hover,
.social-links a[href*="tiktok.com"]:hover,
.social-links a[href*="wa.me"]:hover {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   18. LIGHTBOX
   -------------------------------------------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(13, 13, 16, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

#lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}

#lightbox.active img {
  transform: scale(1);
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

#lightbox-close .icon {
  width: 22px;
  height: 22px;
}

#lightbox-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   19. TOAST
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline: var(--gutter);
  z-index: 300;
  margin-inline: auto;
  width: fit-content;
  max-width: min(36rem, 90vw);
  padding: 1rem 1.5rem;
  font-size: var(--step--1);
  background: var(--ink-raised);
  border: 1px solid var(--rule-strong);
  border-inline-start: 2px solid var(--accent);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  border-inline-start-color: #4ca97a;
}

/* --------------------------------------------------------------------------
   20. TOUCH DEVICES — nothing important may hide behind :hover
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .btn:active::after,
  .footer-cta a:active::after {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   21. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* Hidden only once JS has announced itself, so content never stays blank */
.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
