/* ============================================================
   TROYA YAPIM — 2026 redesign
   Monochrome film-set aesthetic. Single accent: the red tally light.
   Type: Bricolage Grotesque (display) / Instrument Sans (body) /
         IBM Plex Mono (slate labels, timecodes)
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --coal: #121214;
  --smoke: #1a1a1d;
  --line: rgba(244, 244, 242, 0.12);
  --line-soft: rgba(244, 244, 242, 0.07);
  --bone: #f4f4f2;
  --gray: #9c9c98;
  --gray-dim: #6b6b68;
  --rec: #e5484d;

  /* one film grade for every color photo — same movie, same stock */
  --grade: saturate(0.82) contrast(1.06) brightness(0.96);

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--bone); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

/* Film grain — whole page, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- slate label (section eyebrow) ---------- */
.slate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.slate::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--bone);
  opacity: 0.5;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1;
}
.brand img {
  height: 48px;
  width: auto;
  filter: invert(1) brightness(1.05);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray);
  transition: color 0.2s ease;
  padding-block: 0.25rem;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a[aria-current="page"] {
  color: var(--bone);
  border-bottom: 1px solid var(--bone);
}
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--coal);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 3px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--bone); }
.lang-toggle .lt {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--gray);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle .lt.on {
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  width: 42px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.6);
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
@media (max-height: 600px) {
  .hero { height: auto; min-height: 100svh; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.6) 0%, transparent 25%);
}

/* letterbox bars — open like a film starting */
.letterbox-top, .letterbox-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 11svh;
  background: var(--ink);
  z-index: 5;
  pointer-events: none;
}
.letterbox-top { top: 0; transform-origin: top; }
.letterbox-bottom { bottom: 0; transform-origin: bottom; }
.hero.reveal .letterbox-top { animation: box-open-t 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.3s forwards; }
.hero.reveal .letterbox-bottom { animation: box-open-b 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.3s forwards; }
@keyframes box-open-t { to { transform: scaleY(0.28); } }
@keyframes box-open-b { to { transform: scaleY(0.28); } }

.hero-inner {
  max-width: 60rem;
  padding-inline: var(--gutter);
  padding-block: 16svh;
}
.hero .slate { justify-content: center; margin-bottom: 1.75rem; }
.hero .slate::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--bone);
  opacity: 0.5;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
}
.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  max-width: 38rem;
  margin-inline: auto;
}
.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* REC indicator */
.rec {
  position: absolute;
  top: calc(11svh * 0.28 + 4.5rem);
  right: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--bone);
  z-index: 6;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 12px rgba(229, 72, 77, 0.8);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 640px) { .rec { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--bone);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }

/* ---------- sections ---------- */
.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line-soft);
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  text-wrap: balance;
}
.section-head .lead {
  margin-top: 1.25rem;
  color: var(--gray);
  max-width: 42rem;
  font-size: 1.1rem;
}

/* about teaser (index) */
.about-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-teaser .big-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.about-teaser p { color: var(--gray); margin-top: 1.5rem; }
.about-teaser .btn { margin-top: 2.25rem; }
.about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.about-media:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.04); }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(10, 10, 11, 0.35);
  pointer-events: none;
}
.media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--bone);
  background: rgba(10, 10, 11, 0.72);
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
}
@media (max-width: 820px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 10; }
}

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  transition: background 0.3s ease;
}
.service:hover { background: var(--coal); }
.service .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dim);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin-top: 0.9rem;
  letter-spacing: -0.01em;
}
.service p { color: var(--gray); margin-top: 0.8rem; font-size: 0.98rem; }
@media (max-width: 680px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- project cards ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .works-grid { grid-template-columns: 1fr; } }

.work {
  background: var(--coal);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.work:hover { transform: translateY(-4px); border-color: var(--line); }
.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--smoke);
  width: 100%;
  display: block;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transition: filter 0.45s ease, transform 0.6s ease;
}
.work:hover .work-media img { filter: saturate(1) contrast(1.04); transform: scale(1.04); }
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(10, 10, 11, 0.35);
  pointer-events: none;
}
/* tally light — camera goes live when the card has your attention */
.work-media::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(229, 72, 77, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.work:hover .work-media::before {
  opacity: 1;
  animation: blink 1.6s steps(2, start) infinite;
}
.work-embed {
  width: 100%;
  height: auto;
  border: 0;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--smoke);
}
.play-badge {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.play-badge::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--bone);
  margin-left: 4px;
}
.work-media:hover .play-badge { background: var(--rec); transform: scale(1.08); }
.zoom-badge {
  position: absolute;
  z-index: 1;
  right: 0.85rem;
  bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--bone);
  background: rgba(10, 10, 11, 0.72);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  pointer-events: none;
}
.work-body { padding: 1.25rem 1.4rem 1.5rem; }
.work-body .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dim);
}
.work-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: auto;
  position: relative;
}
.lightbox::backdrop { background: rgba(10, 10, 11, 0.92); }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  transform: translateY(-100%);
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--bone); color: var(--ink); }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
  isolation: isolate;
  overflow: hidden;
}
.page-hero.has-bg {
  min-height: 52svh;
  display: flex;
  align-items: flex-end;
}
.page-hero .hero-bg { filter: saturate(0.82) contrast(1.06) brightness(0.42); animation: none; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--ink) 4%, transparent 60%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-top: 1rem;
}
.page-hero .lead {
  margin-top: 1.25rem;
  color: var(--gray);
  max-width: 44rem;
  font-size: 1.1rem;
}

/* ---------- about page ---------- */
.about-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.about-text { grid-column: 1 / 8; }
.about-side { grid-column: 8 / 13; }
.about-text p { color: var(--gray); margin-bottom: 1.4rem; font-size: 1.1rem; }
.about-text p strong { color: var(--bone); font-weight: 600; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-block: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bone);
  text-wrap: balance;
}
.signature {
  margin-top: 2.5rem;
  max-width: 240px;
  filter: invert(1) brightness(1.1);
  opacity: 0.9;
}
.signature-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-top: 0.75rem;
}
.figure-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.figure-stack figure {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.figure-stack img {
  width: 100%;
  filter: var(--grade);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.figure-stack figure:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.04); }
.figure-stack figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(10, 10, 11, 0.35);
  pointer-events: none;
}
@media (max-width: 880px) {
  .about-text, .about-side { grid-column: 1 / -1; }
}

/* value strip */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.values > div { background: var(--ink); padding: 1.75rem 1.5rem; }
.values .k {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.values .v {
  color: var(--gray);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
@media (max-width: 880px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  background: var(--coal);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { border-color: var(--line); transform: translateY(-2px); }
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dim);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-card .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.contact-card .arrow { color: var(--gray-dim); font-size: 1.3rem; transition: transform 0.25s ease, color 0.25s ease; }
.contact-card:hover .arrow { transform: translateX(4px); color: var(--bone); }
.map-frame {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 1rem;
  text-wrap: balance;
}
.cta-band .slate { justify-content: center; }
.cta-band .slate::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--bone);
  opacity: 0.5;
}
.cta-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- footer — closing scene ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3.5rem, 8vw, 6rem) 1.75rem;
  overflow: hidden;
}
.footer-wordmark {
  display: block;
  width: fit-content;
  margin: 1.25rem 0 2.75rem;
  transition: opacity 0.45s ease;
}
.footer-wordmark img {
  display: block;
  width: clamp(14rem, 42vw, 34rem);
  height: auto;
  filter: invert(1) brightness(1.05);
}
.footer-wordmark:hover,
.footer-wordmark:focus-visible {
  opacity: 0.75;
}
.footer-meta {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.footer-tagline {
  color: var(--gray-dim);
  font-size: 0.95rem;
  max-width: 26rem;
}
@media (max-width: 820px) {
  .footer-meta { grid-template-columns: 1fr 1fr; }
  .footer-tagline { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-meta { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--gray); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gray-dim);
}
.footer-end {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray);
}
.end-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(229, 72, 77, 0.7);
  animation: blink 1.6s steps(2, start) infinite;
}

/* ---------- scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- floating scroll-to-top ---------- */
.floating-top {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.85);
  color: var(--gray);
  cursor: pointer;
  box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(1.5rem);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}
.floating-top.show { opacity: 1; transform: none; pointer-events: auto; }
.floating-top.show:hover { transform: scale(1.05); color: var(--bone); border-color: rgba(244, 244, 242, 0.35); }
.floating-top svg { width: 24px; height: 24px; }

/* ---------- floating whatsapp ---------- */
.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #073d1c;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 10px 40px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s ease;
}
.floating-wa:hover { transform: scale(1.05); color: #073d1c; }
.floating-wa svg { position: relative; width: 24px; height: 24px; }
.floating-wa-label { position: relative; }
.floating-wa-ping {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes wa-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@media (max-width: 640px) {
  .floating-wa-label { display: none; }
  .floating-wa { padding: 0.85rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .hero-bg { animation: none; }
  .rec-dot { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero.reveal .letterbox-top, .hero.reveal .letterbox-bottom {
    animation: none;
    transform: scaleY(0.28);
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
