/* Troncoso Jewelry & Repair — Direction C "La prenda con historia"
   System: Gloock display / Schibsted Grotesk body 17/1.6 / DM Mono 12 caps utility.
   Type scale 12 / 15 / 17 / 24 / 34 / 52 / 80. Spacing 8 / 16 / 24 / 48 / 80 / 128.
   12-column grid, max 1280, editorial offset (text starts at column 2 or 3).
   White ground, near-black ink, neutral greys; photographs carry the colour.
   Green exists only on the single primary pill. Signature: museum-style object labels
   on every image, and the 3D name-ring render as the material the hero zooms into. */

/* Self-hosted, latin subset (covers Spanish accents, ñ, ¿ ¡). SIL Open Font License; see site/CREDITS.md. */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gloock-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-500-latin.woff2") format("woff2"); }
/* Metric-matched stand-ins shown only until the files above arrive, so the swap does not move the layout. */
@font-face { font-family: "Gloock Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 104.37%; ascent-override: 93.42%; descent-override: 21.56%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 104.5%; ascent-override: 93.46%; descent-override: 24.67%; line-gap-override: 0%; }
@font-face { font-family: "DM Mono Fallback"; src: local("Consolas"), local("Menlo"), local("Roboto Mono"), local("Courier New"); size-adjust: 109.13%; ascent-override: 90.9%; descent-override: 28.41%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f4f4f4;    /* alternate bands */
  --ink: #0b0b0b;        /* near-black */
  --muted: #5c5c5c;      /* neutral grey */
  --line: #dcdcdc;
  --line-strong: #848484;
  --stone: #e1e1e1;      /* backdrop of the 3D renders and the 3D viewer */

  --display: "Gloock", "Gloock Fallback", "Iowan Old Style", Georgia, serif;
  --body: "Schibsted Grotesk", "Schibsted Fallback", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", "DM Mono Fallback", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* type scale */
  --t-12: 0.75rem;
  --t-15: 0.9375rem;
  --t-17: 1.0625rem;
  --t-24: 1.5rem;
  --t-34: clamp(1.75rem, 1.35rem + 1.3vw, 2.125rem);
  --t-52: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  --t-80: clamp(2.5rem, 1.2rem + 4.6vw, 5rem);

  /* spacing scale */
  --s-8: 8px; --s-16: 16px; --s-24: 24px; --s-48: 48px;
  --s-80: clamp(48px, 6vw, 80px);
  --s-128: clamp(80px, 9vw, 128px);

  /* grid */
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --colgap: 24px;
  /* one column + its gap, used to offset absolutely placed hero copy onto column 2 */
  --col: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 11 * var(--colgap)) / 12 + var(--colgap));

  /* liquid-metal button sizing for this direction */
  --lmb-height: 52px;
  --lmb-pad-x: 26px;
  --lmb-font-size: 16px;
  --lmb-font-weight: 600;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-17);
  line-height: 1.6;
  overflow-x: clip;
}
@media (max-width: 760px) { body { font-size: 1rem; } }
img, video { max-width: 100%; display: block; }
/* <picture> only picks the file; the <img> lays out as if it were the direct child. */
picture { display: contents; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colgap); }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; } .grid > * { grid-column: 1 / -1 !important; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ground); padding: 12px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* utility: mono caps, the voice of the object labels */
.olabel { font: 400 var(--t-12)/1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.note { font-size: var(--t-15); color: var(--muted); }

/* links: the only secondary action style */
.arrowlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.arrowlink > span[aria-hidden] { display: inline-block; transition: transform .3s ease; }
.arrowlink:hover > span[aria-hidden] { transform: translateX(4px); }
.textlink { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 44px; }

/* base for the button contract; liquid-metal-button.css paints the rim and core */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------- header ---------------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-head.solid { position: relative; border-bottom: 1px solid var(--line); background: var(--ground); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand .wm { display: grid; line-height: 1.05; }
.brand .wm b { font: 400 1.3rem var(--display); letter-spacing: 0; }
.brand .wm small { font: 400 var(--t-12) var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) {
  .site-head .wrap { gap: 8px; }
  .brand { gap: 10px; }
  .brand .wm small { letter-spacing: 0.04em; }
}
@media (max-width: 359px) {
  .brand img { width: 34px; height: 34px; }
  .menu-btn .mtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav-trigger { text-decoration: none; font: 400 var(--t-15) var(--body); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); background: none; border: 0; cursor: pointer; text-underline-offset: 6px; }
.nav a:hover, .nav a[aria-current="page"], .nav-trigger:hover, .nav-trigger[data-current], .nav-trigger[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: 1px; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .nav-fallback { display: none; }
html:not(.js) .nav-trigger { display: none; }
html:not(.js) .nav .nav-fallback { display: inline-flex; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 4px 0 12px; border: 0; background: transparent; font: 500 var(--t-12) var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); cursor: pointer; align-items: center; gap: 10px; }
.menu-btn i { display: grid; gap: 5px; width: 22px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; display: block; transition: transform 0.2s ease; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-3.25px) rotate(-45deg); }

/* mega panel (desktop) and sheet (phone, tablet): one white surface under the header bar */
.mega, .sheet { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--ground); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
.mega[hidden], .sheet[hidden] { display: none; }
.site-head:has(.mega:not([hidden])), .site-head:has(.sheet:not([hidden])) { background: var(--ground); }
.mega-in { display: grid; grid-template-columns: minmax(200px, 3fr) 6fr minmax(220px, 3fr); gap: var(--s-48); padding-block: var(--s-48) var(--s-24); align-items: start; }
.mega-intro { display: grid; gap: var(--s-16); justify-items: start; }
.mega-h { font: 400 var(--t-34)/1.08 var(--display); margin: 0; text-wrap: balance; }
.mega-p { color: var(--muted); font-size: var(--t-15); max-width: 30ch; margin: 0; }
.mega-grid, .sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24) var(--s-16); }
.mtile { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.mtile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.mtile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mtile-name { font-size: var(--t-15); line-height: 1.3; }
.mtile:hover .mtile-img img, .mtile:focus-visible .mtile-img img { transform: scale(1.04); }
.mtile:hover .mtile-name { text-decoration: underline; text-underline-offset: 5px; }
.mfeature { display: grid; gap: var(--s-16); text-decoration: none; color: var(--ink); align-content: start; }
.mfeature-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.mfeature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mfeature:hover .mfeature-img img { transform: scale(1.04); }
.mfeature-copy { display: grid; gap: 6px; }
.mfeature-h { font: 400 var(--t-24)/1.15 var(--display); }
.mfeature-p { font-size: var(--t-15); color: var(--muted); }
.mfeature:hover .mfeature-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mega-note { padding-bottom: var(--s-24); }
@media (prefers-reduced-motion: reduce) { .mtile-img img, .mfeature-img img, .nav-trigger svg, .menu-btn i::before, .menu-btn i::after { transition: none; } }
html.a11y-motion .mtile-img img, html.a11y-motion .mfeature-img img { transition: none; }

.sheet { position: fixed; top: var(--sheet-top, 76px); bottom: 0; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; }
.sheet-in { max-width: 720px; margin-inline: auto; padding: var(--s-24) var(--gutter) var(--s-48); display: grid; gap: var(--s-24); }
.sheet-sec { display: grid; gap: var(--s-16); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); }
.sheet-row .arrowlink { font-size: var(--t-15); }
.sheet-grid { gap: var(--s-16) 12px; }
.sheet-grid .mtile-img { aspect-ratio: 1; }
.sheet-grid .mtile-name { font-size: 0.875rem; }
.sheet-note { margin-top: -4px; }
.mfeature.is-row { grid-template-columns: 112px 1fr; align-items: center; padding-block: var(--s-16); border-block: 1px solid var(--line); }
.mfeature.is-row .mfeature-h { font-size: 1.375rem; }
.sheet-links { list-style: none; margin: 0; padding: 0; }
.sheet-links a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); font: 400 1.5rem/1.1 var(--display); text-decoration: none; color: var(--ink); }
.sheet-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sheet-links a span { font: 400 var(--t-17) var(--body); }
.sheet-contact { font: 400 var(--t-12)/1.6 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.sheet-contact a { color: inherit; display: inline-block; padding-block: 12px; }
html.menu-open { overflow: hidden; }

@media (min-width: 1101px) { .sheet { display: none !important; } }
@media (max-width: 1100px) {
  .nav, .mega { display: none !important; }
  .js .menu-btn { display: inline-flex; }
  .a11y-btn { margin-left: auto; }
  html:not(.js) .a11y-btn { display: none; }   /* without JS the footer carries the links and the statement */
  .a11y-panel { left: var(--gutter); right: var(--gutter); }
}
@media (max-width: 1240px) and (min-width: 1101px) {
  .mega-in { grid-template-columns: minmax(180px, 3fr) 6fr minmax(180px, 3fr); gap: var(--s-24); }
}

/* ---------------- hero: zoom-parallax stage ---------------- */
.stage { position: relative; }
.stage-sticky { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.layer { position: absolute; inset: 0; transform-origin: 50% 50%; transform: translate3d(var(--shift-x), var(--shift), 0); pointer-events: none; }
.tile {
  position: absolute; margin: 0; overflow: hidden; background: var(--stone);
  width: var(--w); height: var(--h);
  left: calc(50% + var(--x) - var(--w) / 2);
  top: calc(50% + var(--y) - var(--h) / 2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* the dominant tile: laid out at full size and shown at ¼ in zoom mode, so it never upscales */
.tile.centre { --x: 0px; --y: 0px; --w: var(--cw); --h: var(--ch); }
.tile.centre .cad-wrap { position: absolute; inset: 0; background: var(--stone); opacity: 0; }
.tile.centre .cad {
  position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; height: 100svh;
  transform: translate(-50%, -50%); object-fit: contain; background: var(--stone);
}

/* resting composition, desktop: one dominant photograph right of the copy, three small satellites
   staggered in the margin beside it (each well under a third of the dominant's area) */
.stage { --shift: 3vh; --shift-x: 18vw; --cw: 28vw; --ch: 64vh; }
.t-medal { --x: 21.5vw; --y: -20vh; --w: 9vw;  --h: 24vh; }
.t-ring  { --x: 22vw;   --y: 7vh;   --w: 11vw; --h: 14vh; }
.t-ear   { --x: 20vw;   --y: 32vh;  --w: 8vw;  --h: 19vh; }

/* object labels pinned to the bottom-left corner of each tile, like a museum card */
.labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lab {
  position: absolute; white-space: nowrap;
  left: calc(50% + var(--shift-x) + var(--x) - var(--w) / 2 + 12px);
  top: calc(50% + var(--shift) + var(--y) + var(--h) / 2);
  transform: translateY(-50%);
  background: var(--ground); color: var(--ink); padding: 5px 10px 4px;
}
.lab.c { --x: 0px; --y: 0px; --w: var(--cw); --h: var(--ch); }

.hero-copy {
  position: absolute; z-index: 5; left: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + var(--col)); top: 50%;
  transform: translateY(-46%);
  width: min(36vw, 520px); display: grid; gap: var(--s-24); justify-items: start;
}
.hero-copy h1 { font-size: var(--t-80); line-height: 1.02; }
.hero-copy .why { font-size: var(--t-24); line-height: 1.35; max-width: 24ch; }
.hero-copy .what { color: var(--muted); max-width: 36ch; margin-top: calc(-1 * var(--s-8)); }
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-24); margin-top: var(--s-8); }

.zoom-end {
  position: absolute; z-index: 6; left: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + var(--col)); bottom: clamp(24px, 6vh, 64px);
  display: none; gap: var(--s-8); max-width: 560px; opacity: 0; justify-items: start;
}
.zoom .zoom-end { display: grid; }
.zoom-end .olabel { background: var(--ground); color: var(--ink); padding: 5px 10px 4px; }
.zoom-end p.big { font: 400 var(--t-52)/1.05 var(--display); }

/* scroll mode (JS on, motion allowed) */
.zoom .stage { height: 260vh; }
.zoom .stage-sticky { position: sticky; top: 0; }
.zoom .layer.l-centre { transform: translate3d(var(--shift-x), var(--shift), 0) scale(0.25); }
.zoom .tile.centre { --w: calc(var(--cw) * 4); --h: calc(var(--ch) * 4); }
.zoom .cad-static { display: none; }
.layer { will-change: transform; }
.layer.l-centre { will-change: auto; }

@media (max-width: 1180px) and (min-width: 901px) {
  .hero-copy { left: calc(var(--gutter) + var(--col) / 2); width: min(40vw, 460px); }
  .stage { --shift-x: 19vw; --cw: 30vw; }
  .t-medal { --x: 22vw; --w: 10vw; }
  .t-ring  { --x: 22vw; --w: 12vw; }
  .t-ear   { --x: 20vw; --w: 9vw; }
  /* narrow margin: satellite labels break onto two lines instead of running off the edge */
  .lab:not(.c) { white-space: normal; width: calc(var(--w) + 12px); letter-spacing: 0.04em; transform: translateY(-30%); }
}

/* phone + portrait tablet: copy on top, one image below, no satellites */
@media (max-width: 900px) {
  /* --shift and --ch are refined by app.js from the copy's real height so the image never meets the text */
  .stage { --shift: 24vh; --shift-x: 0vw; --cw: 78vw; --ch: 34vh; }
  .stage-sticky { min-height: 640px; }
  .layer.sat, .lab:not(.c) { display: none; }
  .hero-copy { top: 92px; transform: none; left: var(--gutter); right: var(--gutter); width: auto; gap: var(--s-16); }
  .hero-copy h1 { font-size: clamp(2.375rem, 1.4rem + 4.4vw, 3.25rem); }
  .hero-copy .why { font-size: 1.1875rem; }
  .hero-copy .what { margin-top: 0; font-size: 1rem; }
  .hero-copy .actions { margin-top: 0; gap: 0 var(--s-24); }
  .zoom .stage { height: 200vh; }
  .zoom-end { left: var(--gutter); right: var(--gutter); }
  .zoom-end p.big { font-size: var(--t-34); }
  .tile.centre .cad { width: 160vw; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .stage { --cw: 64vw; --ch: 34vh; --shift: 28vh; }
  .hero-copy { right: auto; width: min(560px, calc(100vw - 2 * var(--gutter))); }
}
@media (max-width: 900px) and (max-height: 760px) {
  .hero-copy .what { display: none; }
}

/* reduced motion / no JS: the CAD render sits below the static collage */
.cad-static { padding-block: var(--s-80) 0; }
.cad-fig { margin: 0; grid-column: 2 / span 7; display: grid; gap: var(--s-8); }
.cad-fig video { width: 100%; aspect-ratio: 16 / 9; background: var(--stone); object-fit: contain; }
.cad-copy { grid-column: 9 / span 3; align-self: end; display: grid; gap: var(--s-16); justify-items: start; }
.cad-copy p.big { font: 400 var(--t-34)/1.15 var(--display); }

/* ---------------- sections ---------------- */
.band { padding-block: var(--s-128); }
.band-grey { background: var(--surface); }
.band-dark { background: var(--ink); color: #fff; --muted: #b9b9b9; --line: #3a3a3a; --line-strong: #8a8a8a; --lmb-focus: #fff; }
.band-dark :focus-visible { outline-color: #fff; }

.sec-head { grid-column: 2 / span 7; display: grid; gap: var(--s-16); margin-bottom: var(--s-48); justify-items: start; }
.sec-head h2 { font-size: var(--t-52); line-height: 1.05; }
.sec-head p { color: var(--muted); max-width: 46ch; }

/* the repair section opens with the direction's statement as its heading (one focal point) */
.sec-head.statement { grid-column: 3 / span 8; }
.sec-head.statement h2 { line-height: 1.12; }
.sec-head.statement h2 span { color: var(--muted); }
.statement ~ .objects, .statement ~ .objects-note { grid-column: 3 / span 9; }
@media (max-width: 1100px) { .sec-head.statement { grid-column: 1 / span 10; } .statement ~ .objects, .statement ~ .objects-note { grid-column: 1 / -1; } }

/* object list with hover preview */
.objects { grid-column: 2 / span 10; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.objects li { border-bottom: 1px solid var(--line); }
.objects a {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 24px; align-items: center; gap: var(--s-24);
  padding: var(--s-24) 0; text-decoration: none; min-height: 44px; position: relative;
}
.objects .name { font: 400 var(--t-52)/1 var(--display); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.objects .what { color: var(--muted); max-width: 40ch; }
.objects .go svg { width: 18px; height: 18px; transition: transform .4s ease; }
.objects .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .objects a:hover .name, .objects a:focus-visible .name { transform: translateX(14px); }
  .objects a:hover .go svg { transform: translateX(4px); }
  .objects:hover a:not(:hover) .name { color: var(--muted); }
}
@media (max-width: 900px) {
  .objects a { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb what"; gap: 4px var(--s-16); padding: var(--s-16) 0; }
  .objects .go { display: none; }
  .objects .thumb { display: block; grid-area: thumb; width: 76px; height: 92px; object-fit: cover; background: var(--stone); }
  .objects .name { grid-area: name; font-size: var(--t-34); }
  .objects .what { grid-area: what; font-size: var(--t-15); }
}
@media (min-width: 901px) and (hover: none) {
  .objects a { grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) 24px; }
  .objects .thumb { display: block; width: 64px; height: 76px; object-fit: cover; }
}
.objects-note { grid-column: 2 / span 10; margin-top: var(--s-16); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; pointer-events: none;
  opacity: 0; transform: translate3d(-999px, -999px, 0); display: grid; gap: 0;
}
.preview .frame { position: relative; width: 300px; height: 360px; overflow: hidden; background: var(--stone); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.preview img.on { opacity: 1; }
.preview .olabel { justify-self: start; background: var(--ground); color: var(--ink); padding: 5px 10px 4px; margin: -12px 0 0 12px; position: relative; }
@media (hover: none), (pointer: coarse), (max-width: 900px) { .preview { display: none; } }

/* photo intake (black band) */
.intake-lead { grid-column: 2 / span 5; display: grid; gap: var(--s-24); align-content: start; justify-items: start; }
.intake-lead h2 { font-size: var(--t-52); line-height: 1.05; }
.intake-lead p { color: var(--muted); max-width: 40ch; }
.intake-side { grid-column: 7 / span 6; display: grid; gap: var(--s-48); align-content: start; }
@media (max-width: 1100px) and (min-width: 761px) { .intake-lead { grid-column: 1 / span 6; } .intake-side { grid-column: 7 / span 6; } }
@media (max-width: 760px) { .intake-side { margin-top: var(--s-48); } }
.tips { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.tips li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-16); padding: var(--s-16) 0; border-bottom: 1px solid var(--line); align-items: baseline; }

.disclosure { border-top: 1px solid var(--line-strong); }
.disclosure summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
  font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font: 400 1.5rem/1 var(--body); text-decoration: none; }
.disclosure[open] summary::after { content: "–"; }
.disclosure[open] summary { margin-bottom: var(--s-16); }

form.request { background: var(--ground); color: var(--ink); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--s-24);
  --muted: #5c5c5c; --line: #dcdcdc; --line-strong: #848484; --lmb-focus: #0b0b0b; }
form.request :focus-visible { outline-color: var(--ink); }
.field { display: grid; gap: var(--s-8); min-width: 0; }
.field > label, .field > .flabel { font-weight: 600; font-size: var(--t-15); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.field .hint { font: 400 var(--t-12) var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 0; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.file-input { width: 100%; min-width: 0; font: 400 var(--t-15) var(--body); border: 1px solid var(--line-strong); padding: 10px; background: #fff; }
.file-input::file-selector-button { font: 600 var(--t-15) var(--body); border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); font-size: var(--t-15); cursor: pointer; background: #fff; }
.choices input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.ring-fields { border-top: 1px solid var(--line); padding-top: var(--s-16); display: grid; gap: var(--s-16); }
fieldset.ring-fields legend { font: 400 var(--t-24) var(--display); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.cf-turnstile:empty { min-height: 0; }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-16); align-items: center; justify-content: space-between; }
.stub-ok { border: 1px solid var(--ink); padding: var(--s-16); display: grid; gap: 4px; }
.stub-ok b { font: 400 var(--t-24) var(--display); }

/* how it works: a numbered sequence of object labels, stepping down like cards on a wall */
.como-head { grid-column: 2 / span 4; align-self: start; }
.sequence { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-24); }
.sequence li { --i: 0%; margin-left: var(--i); width: min(calc(100% - var(--i)), 440px); border-top: 1px solid var(--ink); padding-top: var(--s-16); display: grid; gap: 6px; }
.sequence li:nth-child(2) { --i: 8%; }
.sequence li:nth-child(3) { --i: 16%; }
.sequence li:nth-child(4) { --i: 24%; }
.sequence li:nth-child(5) { --i: 32%; }
.sequence h3 { font-size: var(--t-24); line-height: 1.15; }
.sequence p { color: var(--muted); }
@media (max-width: 1100px) and (min-width: 761px) { .como-head { grid-column: 1 / span 4; } .sequence { grid-column: 5 / span 8; } }
@media (max-width: 760px) { .sequence li { margin-left: 0 !important; width: 100%; } }

/* name-ring teaser */
.teaser { align-items: center; }
.teaser figure { grid-column: 2 / span 5; margin: 0; display: grid; }
.teaser figure img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }
.teaser figcaption { justify-self: start; background: var(--ground); color: var(--ink); padding: 5px 10px 4px; margin: -12px 0 0 12px; position: relative; }
.teaser .copy { grid-column: 8 / span 4; display: grid; gap: var(--s-24); justify-items: start; }
.teaser h2 { font-size: var(--t-52); line-height: 1.05; }
.teaser p { color: var(--muted); max-width: 40ch; }
.teaser .spec { font: 400 var(--t-12)/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1100px) and (min-width: 761px) { .teaser figure { grid-column: 1 / span 6; } .teaser .copy { grid-column: 7 / span 6; } }
@media (max-width: 760px) { .teaser .copy { margin-top: var(--s-48); } }

/* visit */
.visit { align-items: end; row-gap: var(--s-48); }
.visit-main { grid-column: 2 / span 6; display: grid; gap: var(--s-16); justify-items: start; }
.visit address { font: 400 var(--t-80)/1.02 var(--display); font-style: normal; }
.visit address small { display: block; font-size: 0.42em; color: var(--muted); margin-top: 10px; line-height: 1.2; }
.visit .links { display: flex; flex-wrap: wrap; gap: 0 var(--s-24); }
.facts { grid-column: 8 / span 4; display: grid; border-top: 1px solid var(--ink); margin: 0; }
.facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.facts dt { font: 400 var(--t-12) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.visit-note { grid-column: 2 / span 10; }
@media (max-width: 1100px) and (min-width: 761px) { .visit-main { grid-column: 1 / span 7; } .facts { grid-column: 8 / span 5; } .visit-note { grid-column: 1 / -1; } }
@media (max-width: 480px) { .facts > div { grid-template-columns: 84px minmax(0, 1fr); } .facts dd { font-size: var(--t-15); } }
dl { margin: 0; }

/* footer: small, never repeats the visit block at size */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= production additions (inner pages, widget, accessibility modes) ================= */
.start { justify-self: start; }
main:focus { outline: none; }

/* header: accessibility trigger (icon on desktop, labelled row inside the phone menu) */
.a11y-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 8px; margin-left: 4px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--t-15); cursor: pointer; }
.a11y-btn svg { width: 24px; height: 24px; flex: none; }
.a11y-btn .a11y-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a11y-btn[aria-expanded="true"] svg { stroke-width: 2; }
.a11y-panel {
  position: absolute; right: var(--gutter); top: 72px; z-index: 40; width: min(360px, calc(100vw - 2 * var(--gutter)));
  background: var(--ground); color: var(--ink); border: 1px solid var(--ink); padding: var(--s-16) var(--s-24) var(--s-24);
  display: grid; gap: var(--s-16); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.a11y-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); }
.a11y-opts { display: grid; gap: var(--s-8); }
.a11y-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 var(--t-15) var(--body); text-align: left; cursor: pointer; }
.a11y-opt::after { content: "No"; font: 500 var(--t-12) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[lang="en"] .a11y-opt::after { content: "Off"; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.a11y-opt[aria-pressed="true"]::after { content: "Sí"; color: var(--ground); }
html[lang="en"] .a11y-opt[aria-pressed="true"]::after { content: "On"; }
.a11y-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-24); }

/* accessibility modes (classes set before first paint by the head script) */
html.a11y-text { font-size: 118.75%; }
html.a11y-text .olabel, html.a11y-text .lang-link, html.a11y-text .menu-btn { font-size: 0.8125rem; }
html.a11y-contrast { --muted: #2b2b2b; --line: #6b6b6b; --line-strong: #1a1a1a; }
html.a11y-contrast .band-dark { --muted: #e6e6e6; --line: #9a9a9a; }
html.a11y-contrast .sec-head.statement h2 span, html.a11y-contrast .objects:hover a:not(:hover) .name { color: inherit; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 4px; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* inner page head */
.page-head { padding-block: var(--s-80) var(--s-48); }
.page-head-in { grid-column: 2 / span 8; display: grid; gap: var(--s-24); justify-items: start; }
.page-head h1 { font-size: var(--t-80); line-height: 1.02; }
.page-head .lede { font-size: var(--t-24); line-height: 1.4; max-width: 34ch; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-24); }
.crumbs { font: 400 var(--t-12)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }
@media (max-width: 1100px) { .page-head-in { grid-column: 1 / span 10; } }
@media (max-width: 760px) { .page-head { padding-block: var(--s-24) var(--s-48); } .page-head h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3rem); } .page-head .lede { font-size: 1.1875rem; } }
.band-tight { padding-block: var(--s-48) var(--s-128); }

/* repairs: one row per object, photo with its museum label + what people bring */
.obj-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.obj { padding-block: var(--s-48); border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 24px; }
.obj-fig { grid-column: 2 / span 3; margin: 0; display: grid; }
.obj-fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.obj-fig figcaption { justify-self: start; background: var(--ground); color: var(--ink); padding: 5px 10px 4px; margin: -12px 0 0 12px; position: relative; }
.obj-copy { grid-column: 6 / span 6; display: grid; gap: var(--s-16); justify-items: start; }
.obj-copy h2 { font-size: var(--t-52); line-height: 1; }
.obj-copy .obj-what { font-size: var(--t-24); line-height: 1.35; max-width: 30ch; }
.obj-copy h3.olabel { margin-top: var(--s-8); }
.obj-copy p.muted { max-width: 48ch; }
@media (max-width: 1100px) and (min-width: 761px) { .obj-fig { grid-column: 1 / span 4; } .obj-copy { grid-column: 6 / span 7; } }
@media (max-width: 760px) { .obj-fig { max-width: 320px; } .obj-copy { margin-top: var(--s-24); } .obj-copy h2 { font-size: var(--t-34); } .obj-copy .obj-what { font-size: 1.1875rem; } }
.obj-list + .objects-note { margin-top: var(--s-16); }
ul.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.dash li { padding-left: 22px; position: relative; }
ul.dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: currentColor; }
.facts.facts-dark { grid-column: auto !important; border-top-color: var(--line-strong); }

/* process: the sequence at reading width, split bands */
.seq-wide { grid-column: 3 / span 8; }
.seq-wide .sequence li { width: min(calc(100% - var(--i)), 560px); }
.seq-wide .sequence h2 { font-size: var(--t-34); line-height: 1.1; }
@media (max-width: 1100px) { .seq-wide { grid-column: 1 / -1; } }
.split { row-gap: var(--s-48); }
.split-a { grid-column: 2 / span 5; display: grid; gap: var(--s-24); align-content: start; justify-items: start; }
.split-b { grid-column: 8 / span 4; display: grid; gap: var(--s-16); align-content: start; justify-items: start; }
.split-a .tips, .split-b .tips { width: 100%; }
.split h2 { font-size: var(--t-34); line-height: 1.1; }
@media (max-width: 1100px) and (min-width: 761px) { .split-a { grid-column: 1 / span 6; } .split-b { grid-column: 8 / span 5; } }

/* faq */
.faq { grid-column: 2 / span 9; border-top: 1px solid var(--ink); }
.faq-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8) var(--s-48); padding-block: var(--s-24); border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: var(--t-24); line-height: 1.25; }
.faq-item p { max-width: 52ch; }
.faq-item.is-tbd p { color: var(--muted); }
@media (max-width: 900px) { .faq { grid-column: 1 / -1; } .faq-item { grid-template-columns: minmax(0, 1fr); } }

/* legal prose */
.prose { grid-column: 3 / span 7; display: grid; gap: var(--s-16); max-width: 68ch; }
.prose h2 { font-size: var(--t-34); line-height: 1.1; margin-top: var(--s-24); }
.prose a { text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .prose { grid-column: 1 / -1; } }

/* 404 */
.nf { padding-bottom: var(--s-128); }
.nf .page-head-in { grid-column: 2 / span 5; }
.nf .nf-en { grid-column: 8 / span 4; align-content: start; padding-top: calc(var(--t-12) * 1.35 + var(--s-24)); }
.nf .nf-en h2 { font-size: var(--t-34); line-height: 1.1; }
.nf .lede { font-size: var(--t-17); color: var(--muted); }
.nf-links { list-style: none; margin: 0; padding: 0; display: grid; }
@media (max-width: 1100px) and (min-width: 761px) { .nf .page-head-in { grid-column: 1 / span 6; } .nf .nf-en { grid-column: 8 / span 5; } }
@media (max-width: 760px) { .nf .nf-en { padding-top: var(--s-48); } }

/* ---------------- footer: black closing band ---------------- */
.site-foot { background: var(--ink); color: #fff; --muted: #a9a9a9; --line: #2e2e2e; padding-top: var(--s-80); overflow: hidden; font-size: var(--t-15); }
.site-foot :focus-visible { outline-color: #fff; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover, .site-foot a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-foot .olabel { color: var(--muted); margin: 0 0 var(--s-16); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-48) var(--colgap); align-items: start; }
.foot-shop { display: grid; gap: var(--s-16); justify-items: start; }
.foot-brand { display: inline-flex; min-height: 44px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 50%; }
.foot-shop address { font-style: normal; font: 400 var(--t-24)/1.25 var(--display); }
.foot-shop p { color: var(--muted); line-height: 1.5; }
.foot-shop p a { display: inline-block; padding-block: 6px; color: #fff; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: #e9e9e9; }
.foot-col a:hover, .foot-col a[aria-current] { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 4px var(--s-24); justify-content: space-between; align-items: center; margin-top: var(--s-80); padding-block: var(--s-16); border-top: 1px solid var(--line); font: 400 var(--t-12)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-24); }
.foot-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-mark::before { content: "Troncoso"; }
.foot-mark { margin: 0; padding-inline: var(--gutter); font: 400 clamp(5rem, 22vw, 20rem)/0.78 var(--display); letter-spacing: -0.02em; color: #1d1d1d; text-align: center; white-space: nowrap; transform: translateY(14%); user-select: none; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-shop { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot-shop address { font-size: 1.3rem; }
}
html.a11y-contrast .site-foot { --muted: #e6e6e6; --line: #9a9a9a; }
html.a11y-contrast .foot-mark { color: #3a3a3a; }

/* home: custom work (secondary to repairs) */
.custom-list { grid-column: 2 / span 10; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.custom-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-16); align-content: start; padding: var(--s-24) var(--s-24) var(--s-24) 0; border-bottom: 1px solid var(--line); }
.custom-n { grid-row: span 2; font: 400 var(--t-12)/1.9 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.custom-list h3 { font: 400 var(--t-24)/1.15 var(--display); margin: 0 0 6px; }
.custom-list p { color: var(--muted); margin: 0; max-width: 40ch; }
.custom-foot { grid-column: 2 / span 10; display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-48); justify-content: space-between; align-items: center; margin-top: var(--s-24); }
@media (max-width: 760px) {
  .custom-list, .custom-foot { grid-column: 1 / -1; }
  .custom-list { grid-template-columns: 1fr; }
  .custom-list li { grid-template-columns: 40px 1fr; padding-right: 0; }
}
