/* ==========================================================================
   Aceros Talca S.A.
   Concept: the page is a steel plate. The logo and the headline are cut out
   of it with plasma; every section starts with a cut line.
   ========================================================================== */

:root {
  /* Brand colors, taken from the logo and the previous site */
  --blue: #024e9c;
  --night: #030a4e;
  --red: #db1c22;
  /* Material colors */
  --plate: #e4e7ea;
  --ink: #071038;
  --spark: #ffc56e;

  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", sans-serif;
  --stencil: "Big Shoulders Stencil", "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 82rem;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--text);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

img, video, svg, canvas, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.defs { position: absolute; }

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { position: relative; max-width: var(--max); margin-inline: auto; }

/* ---------- Type ---------- */

h2 {
  font: 800 clamp(3.25rem, 9vw, 8rem)/.86 var(--display);
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

.sub {
  font: 700 clamp(1.75rem, 3.4vw, 2.75rem)/1 var(--display);
  text-transform: uppercase;
  margin: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(1.25rem, 2.5vw, 2rem);
}

.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 44ch; }

/* ---------- Buttons and links ---------- */

/* Shaped like the stripes of the logo: one slanted end. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: .2em 2.1em .2em 1.3em;
  font: 800 1.3rem/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s var(--ease), color .25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - 1.15em) 0, 100% 100%, 0 100%);
  transition: background-color .25s;
}
.btn:hover { transform: translateX(.2rem); }

.btn--bar { color: var(--blue); }
.btn--bar::before { background: #fff; }
.btn--bar:hover { color: var(--night); }
.btn--bar:hover::before { background: var(--spark); }

.btn--red { color: #fff; }
.btn--red::before { background: var(--red); }
.btn--red:hover::before { background: #b9151b; }

.btn--nav { min-height: 2.5rem; font-size: 1.1rem; color: var(--blue); }
.btn--nav::before { background: #fff; }
.btn--nav:hover::before { background: var(--spark); }

.link {
  font: 700 1.2rem/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .35em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .25s, color .25s;
}
.link:hover { background-size: 100% 5px; color: var(--spark); }

/* ---------- Opening sequence ---------- */

.intro { display: none; }
.js.is-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.js.is-intro body { overflow: hidden; }

.intro__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #0b5cb2, var(--blue) 45%, #013d7c);
}
.intro__logo {
  position: relative;
  width: min(74vw, 44rem, 95vh);
  height: auto;
  overflow: visible;
  will-change: transform;
}
.intro__fill path { fill: #fff; opacity: 0; }
.intro__word {
  fill: var(--blue);
  font-family: Tinos, "Times New Roman", Times, serif;
  font-weight: 700;
}
#introSa { opacity: 0; }
/* One glow for the whole group is cheaper than one per line. */
.intro__trace { filter: drop-shadow(0 0 10px rgba(255, 176, 72, .95)); }
.intro__trace path {
  fill: none;
  stroke: #fff1cf;
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0;
}
.intro__skip {
  position: absolute;
  right: var(--pad);
  bottom: clamp(1rem, 4vh, 2.5rem);
  padding: .6rem;
  border: 0;
  background: none;
  color: #fff;
  font: 700 1rem/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
  cursor: pointer;
}
.intro__skip:hover { opacity: 1; }

/* ---------- Header ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--pad);
  color: #fff;
  transition: background-color .35s, color .35s, box-shadow .35s, opacity .6s;
}
.nav.is-solid {
  background: var(--plate);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(3, 10, 78, .18), 0 12px 30px -20px rgba(3, 10, 78, .6);
}
.nav.is-open { background: transparent; color: #fff; box-shadow: none; }

.js.is-intro .nav { opacity: 0; pointer-events: none; }
.js.is-intro.is-landing .nav { opacity: 1; }
.js.is-intro #navLogo { visibility: hidden; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__brand svg { height: 2.75rem; width: auto; flex: none; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__links a:not(.btn) {
  padding: .5em 0;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav__links a:not(.btn):hover,
.nav__links a[aria-current="true"] { background-size: 100% 2px; }

.nav.is-solid .btn--nav { color: #fff; }
.nav.is-solid .btn--nav::before { background: var(--red); }
.nav.is-solid .btn--nav:hover::before { background: #b9151b; }

.nav__toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0 .25rem;
  border: 0;
  background: none;
  font: 800 1.25rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 2.5rem;
  background: var(--night);
  color: #fff;
  animation: menu-in .45s var(--ease);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: .35rem; }
.menu nav a {
  font: 900 clamp(3rem, 15vw, 5rem)/.95 var(--stencil);
  text-transform: uppercase;
  text-decoration: none;
}
.menu__tel {
  font: 700 1.5rem/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--spark);
}
@keyframes menu-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Hero: the plate with the headline cut out ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + clamp(1.25rem, 7vh, 5rem)) var(--pad) clamp(1.5rem, 5vh, 3.25rem);
  background: var(--blue);
  color: #fff;
}

.hero__fire,
.hero__plate,
.hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__fire { z-index: -4; }
.hero__plate { z-index: -3; }
/* Plain transparency instead of blend modes: a blended layer over the moving light
   would have to be recomposed on every frame. */
.hero__grain {
  z-index: -2;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html:not(.js) .hero__fire,
html:not(.js) .hero__plate,
html:not(.js) .hero__glow,
html:not(.js) .hero__torch { display: none; }

.cut { font-family: var(--stencil); font-weight: 900; }
.plate__edge { fill: #01295a; }
.cut--kerf {
  fill: none;
  stroke: #ffe0a8;
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 5px rgba(255, 170, 70, .9));
  transition: stroke 3s ease .5s, filter 3s ease .5s;
}
/* The edge of the cut cools down once the headline is open. */
.hero.is-ready .cut--kerf {
  stroke: rgba(255, 255, 255, .45);
  filter: drop-shadow(0 0 0 rgba(255, 170, 70, 0));
}

.hero__glow,
.hero__torch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__glow { width: 0; height: 0; opacity: 0; transition: opacity 1.2s; will-change: transform; }
.hero.is-lit .hero__glow { opacity: 1; }
.hero__glow::before {
  content: "";
  position: absolute;
  left: -24rem;
  top: -24rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(closest-side, rgba(200, 230, 255, .34), rgba(110, 175, 255, .13) 42%, transparent 72%);
}
.hero__torch {
  width: 3px;
  height: var(--cut-h, 0);
  opacity: 0;
  background: linear-gradient(#fff, #ffe2ad);
  box-shadow: 0 0 18px 6px rgba(255, 190, 90, .85), 0 0 60px 20px rgba(120, 180, 255, .5);
}

.hero__cut { flex: none; height: var(--cut-h, 42vh); }
.hero__title {
  font: 900 clamp(3.5rem, 13vw, 11rem)/.85 var(--stencil);
  text-transform: uppercase;
}
.hero__title span { display: block; }
.js .hero__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero__body {
  margin-top: auto;
  padding-top: clamp(1.5rem, 5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.hero__lead p {
  max-width: 36ch;
  font: 500 clamp(1.15rem, 1.7vw, 1.45rem)/1.4 var(--text);
  margin-bottom: 1.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__facts {
  display: grid;
  gap: .35rem;
  font: 700 1.15rem/1.1 var(--display);
  font-style: normal;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: right;
}
.js .hero__body > * {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .hero__body > :nth-child(2) { transition-delay: .15s; }
.js .hero.is-ready .hero__body > * { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

/* overflow-x: clip keeps the glowing tip of the cut line from widening the page. */
.sec { position: relative; padding: clamp(4.5rem, 11vw, 9.5rem) var(--pad); overflow-x: clip; }

.sec--plate {
  background: linear-gradient(105deg, #eceff1 0%, #dde2e6 38%, #eef1f3 62%, #d6dce1 100%);
  color: var(--ink);
}
.sec--plate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .25 0 0 0 0 .35 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sec--plate h2 { color: var(--blue); }
.sec--night { background: var(--night); color: #fff; }
.sec--blue { background: var(--blue); color: #fff; }

/* Cut line at the top of each section. It advances with the scroll. */
.kerf { position: absolute; inset: 0 0 auto 0; height: 0; --p: 0; --hot: 0; }
.kerf i {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 3px;
  background: #02030f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22);
  transform: scaleX(var(--p));
  transform-origin: left;
}
.kerf b {
  position: absolute;
  top: -5px;
  left: calc(var(--p) * 100%);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 5px rgba(255, 190, 90, .95), 0 0 40px 14px rgba(255, 120, 40, .5);
  opacity: var(--hot);
  transition: opacity .3s;
}
html:not(.js) .kerf { --p: 1; }

/* ---------- Nosotros ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.about__mission {
  max-width: 24em;
  font: 600 clamp(1.7rem, 3vw, 2.7rem)/1.1 var(--display);
  text-wrap: balance;
}
.about__vision { max-width: 58ch; margin-top: 1.5rem; font-size: 1.125rem; }

/* Three bars on one diagonal, like the stripes of the logo. */
.stripes {
  /* Sizes follow the width of the block, so the three bars keep the proportions of the logo. */
  container-type: inline-size;
  --h1: 9cqw;
  --h2: 12.5cqw;
  --h3: 21cqw;
  --g: 2.8cqw;
  --s: .559; /* slope of the diagonal in the logo */
  overflow: hidden;
}
/* The gap is set on the items: container units resolve against .stripes only from inside it. */
.stripes li + li { margin-top: var(--g); }
.stripes li {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding-right: 3cqw;
  color: #fff;
  font: 700 4.8cqw/1 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.stripes li::before {
  content: "";
  position: absolute;
  inset: 0 -8rem 0 0;
  z-index: -1;
  background: var(--blue);
  transform: skewX(-29.2deg);
  transform-origin: 0 100%;
}
.stripes li:nth-child(1) {
  height: var(--h1);
  margin-left: calc((var(--h3) + var(--h2) + var(--g) * 2) * var(--s));
  padding-left: calc(var(--h1) * var(--s) + 3cqw);
}
.stripes li:nth-child(2) {
  height: var(--h2);
  margin-left: calc((var(--h3) + var(--g)) * var(--s));
  padding-left: calc(var(--h2) * var(--s) + 3cqw);
  font-size: 5.6cqw;
}
.stripes li:nth-child(3) {
  height: var(--h3);
  padding-left: calc(var(--h3) * var(--s) + 3cqw);
  font-size: 7.4cqw;
}

/* ---------- Servicios ---------- */

.levels {
  counter-reset: level;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.level h3 {
  display: flex;
  align-items: baseline;
  gap: .55em;
  margin-top: .9rem;
  font: 700 clamp(1.25rem, 2.6vw, 2.25rem)/1 var(--display);
  text-transform: uppercase;
}
.level h3::before { counter-increment: level; content: counter(level); color: var(--spark); }

.glyph {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(to bottom right, #0b5cb2, var(--blue) 45%, #013d7c);
}
.glyph > * {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .glyph > * {
  stroke: var(--spark);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset .9s cubic-bezier(.6, 0, .3, 1) calc(var(--i, 0) * 90ms + var(--k, 0) * 70ms + 150ms),
    stroke 1.4s linear calc(var(--i, 0) * 90ms + var(--k, 0) * 70ms + 1000ms);
}
.js .level.is-in .glyph > * { stroke-dashoffset: 0; stroke: #fff; }

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.75rem);
  align-items: start;
}
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a1560;
  color: #fff;
  text-decoration: none;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.shot--square img { aspect-ratio: 1; }
.shot:hover img,
.shot:focus-visible img { transform: scale(1.045); }
.shot--drop { margin-top: clamp(1.5rem, 5vw, 4.5rem); }

/* Captions look like the white bar of the logo. */
.shot span,
.reel figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .55em 1.7em .5em .9em;
  background: #fff;
  color: var(--blue);
  font: 700 1.05rem/1 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - .9em) 0, 100% 100%, 0 100%);
}

.reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.75rem);
  margin-top: clamp(.9rem, 2vw, 1.75rem);
}
.reel { position: relative; overflow: hidden; background: #0a1560; }
/* The clips are already cropped to 4:3 around the sign. */
.reel video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.gate {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.75rem);
}
.gate p {
  display: flex;
  align-items: baseline;
  gap: .5em;
  margin-top: .75rem;
  font: 700 clamp(1.15rem, 1.9vw, 1.5rem)/1 var(--display);
  text-transform: uppercase;
}
.gate p::before { counter-increment: step; content: counter(step); color: var(--spark); }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* ---------- Productos ---------- */

.stock { columns: 4 14rem; column-gap: clamp(1.5rem, 3vw, 3rem); }
.fam {
  break-inside: avoid;
  padding-top: .7rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-top: 5px solid var(--night);
}
.fam h3 {
  margin-bottom: .6rem;
  color: var(--blue);
  font: 800 1.75rem/1 var(--display);
  text-transform: uppercase;
}
.fam li { padding: .42rem 0; border-bottom: 1px solid rgba(3, 10, 78, .16); }
.stock__ask { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--display); }
.stock__ask a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact h2 { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.contact__tel {
  display: inline-block;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font: 900 clamp(3.4rem, 8.6vw, 8rem)/.9 var(--stencil);
  text-decoration: none;
  transition: color .25s;
}
.contact__tel:hover { color: var(--spark); }

.contact__list > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(255, 255, 255, .32);
}
.contact__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .32); }
.contact__list dt {
  font: 700 1.1rem/1.4 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.contact__list dd { font-size: 1.125rem; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.contact__place iframe {
  width: 100%;
  height: clamp(20rem, 38vw, 30rem);
  border: 0;
  background: #013d7c;
}
/* Sits under the map, never over it: the map's own credits must stay visible. */
.contact__store {
  width: 9.5rem;
  margin-top: 1rem;
  padding: 5px 5px 0;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 18px 40px -18px rgba(3, 10, 78, .9);
}
.contact__store img { width: 100%; height: auto; }
.contact__store figcaption {
  padding: .4rem .2rem .45rem;
  font: 700 .95rem/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.foot {
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: var(--night);
  color: #fff;
}
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.foot__brand svg { height: 4.5rem; width: auto; }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--spark); }
.foot__legal { margin-left: auto; font-size: .9rem; opacity: .78; }

/* ---------- Photo viewer ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 1.25rem;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(2, 4, 24, .95); }
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  animation: lb-in .35s var(--ease);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox p { max-width: 60ch; text-align: center; font-size: 1rem; }
.lightbox__bar { display: flex; gap: 1.75rem; }
.lightbox__bar button {
  padding: .5rem .1rem;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: none;
  font: 700 1.15rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__bar button:hover { color: var(--spark); }
@keyframes lb-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Spark layer ---------- */

.fx {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Entrances (only with JS; content is visible without it) ---------- */

.js [data-reveal] {
  transition:
    opacity .8s var(--ease),
    transform .9s var(--ease),
    clip-path 1s cubic-bezier(.6, 0, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(1.6rem); }
.js [data-reveal="cut"] { clip-path: inset(-.15em -.1em -.25em -.1em); }
.js [data-reveal="cut"]:not(.is-in) { clip-path: inset(-.15em 100% -.25em -.1em); }
.js [data-reveal="open"] { clip-path: inset(0 0 0 0); }
.js [data-reveal="open"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.js [data-reveal="slide"]:not(.is-in) { transform: translateX(110%); }

/* ---------- Smaller screens ---------- */

@media (max-width: 62rem) {
  .about { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stripes { max-width: 34rem; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__tel { font-size: clamp(3.4rem, 17vw, 8rem); }
  .gate { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
}

@media (max-width: 56rem) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 40rem) {
  :root { --nav-h: 4rem; }
  .nav__brand { font-size: 1.3rem; }
  .nav__brand svg { height: 2.4rem; }
  .hero__facts { text-align: left; font-size: 1.05rem; }

  /* Photos become a row you slide sideways. */
  .works {
    display: flex;
    gap: .9rem;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .works::-webkit-scrollbar { display: none; }
  .works .shot { flex: 0 0 74vw; scroll-snap-align: center; }
  .shot--drop { margin-top: 0; }
  .reels { grid-template-columns: minmax(0, 1fr); }

  .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .foot__legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
