/* TFC Industrial Projects — sitio público
   Paleta: papel acero, tinta acero, rojo TFC, gris TFC. Tipografía: Archivo (variable, ancho + peso). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --paper: #F3F5F6;
  --white: #FFFFFF;
  --ink: #1E262C;
  --steel: #55636D;
  --zinc: #B5C0C6;
  --line: #D8DFE3;
  --red: #E22431;
  --red-ink: #C1131D;
  --red-deep: #A8101A;
  --ok: #1F7A4D;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --fs-body: 1.0625rem;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --wide: 122%;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--display); font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--zinc); text-underline-offset: .2em; }
a:hover { color: var(--red-ink); text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.35em; border: 2px solid transparent; border-radius: 4px; font-weight: 700; font-stretch: 108%; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-red:focus-visible { outline-color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--red-ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn-lg { min-height: 54px; padding-inline: 1.8em; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-stretch: 108%; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow::after { content: ""; width: .5em; height: .5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.link-arrow:hover { color: var(--red-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: clamp(150px, 16vw, 200px); height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 26px 12px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-list > li.is-active > a { box-shadow: inset 0 -3px 0 var(--red); }
.nav-list > li.nav-cta { margin-left: 10px; }
.nav-list > li.nav-cta > a { display: inline-flex; padding: .6em 1.2em; min-height: 44px; color: var(--white); }
.sub { list-style: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 18px; text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--paper); }
.langs { list-style: none; display: flex; gap: 2px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.langs a { display: block; padding: 6px 6px; text-decoration: none; color: var(--steel); border-bottom: 2px solid transparent; }
.langs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.langs a:hover { color: var(--red-ink); }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; font-weight: 700; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 16px 0; font-size: 1.25rem; font-stretch: 110%; }
  .nav-list > li.is-active > a { box-shadow: none; color: var(--red-ink); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 12px; min-width: 0; }
  .sub a { padding: 8px 0 8px 14px; color: var(--steel); border-left: 2px solid var(--line); }
  .nav-list > li.nav-cta { border: 0; margin: 20px 0 0; }
  .nav-list > li.nav-cta > a { display: flex; padding: 1em; }
  .langs { margin-top: 24px; font-size: 1rem; gap: 8px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero (home) ---------- */
.hero { background: var(--white); }
.hero-text { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); }
.hero-title { font-size: clamp(2.5rem, 6.7vw, 6.9rem); font-weight: 800; font-stretch: var(--wide); line-height: .92; letter-spacing: -.02em; }
.hero-title span { display: block; }
.hero-side { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; }
.hero-sub { font-size: 1.2rem; color: var(--steel); max-width: 44ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-media { position: relative; height: clamp(300px, 62vh, 720px); overflow: hidden; background: var(--ink); }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-caption { position: absolute; left: var(--gutter); bottom: 22px; margin: 0; color: var(--white); font-weight: 700; font-stretch: 112%; font-size: clamp(1rem, 1.6vw, 1.3rem); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.video-toggle { position: absolute; right: var(--gutter); bottom: 18px; background: rgba(30,38,44,.72); color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 8px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.video-toggle:hover { background: var(--ink); }


/* ---------- ruler (signature element) ---------- */
.ruler { background: var(--white); border-bottom: 1px solid var(--line); }
.ruler-scroll { overflow-x: auto; scrollbar-width: thin; padding: 18px 0 0; }
.ruler-svg { width: 100%; min-width: 880px; height: auto; font-family: var(--display); }
.ruler-body { fill: var(--red); }
.tick { stroke: rgba(255,255,255,.75); stroke-width: 1.5; }
.tick-major { stroke: var(--white); stroke-width: 2.5; }
.tick-label { fill: var(--white); font-size: 14px; font-weight: 600; }
.mile-line { stroke: var(--ink); stroke-width: 3; }
.mile-label { fill: var(--ink); font-size: 17px; font-weight: 800; font-stretch: 115%; }
.mile:hover .mile-label, .mile:focus .mile-label { fill: var(--red-ink); }
.mile:hover .mile-line { stroke: var(--red-ink); }
.page-history .ruler { background: transparent; border: 0; margin: 8px 0 24px; }

/* ---------- sections ---------- */
.intro { padding-block: clamp(56px, 8vw, 120px); }
.statement { font-size: clamp(2.2rem, 5.2vw, 4.6rem); font-weight: 800; font-stretch: var(--wide); line-height: .98; letter-spacing: -.015em; max-width: 14ch; margin-bottom: clamp(32px, 4vw, 56px); }
.intro-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; }
.intro-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; font-weight: 500; font-stretch: 104%; padding-left: 18px; border-left: 4px solid var(--red); }
.intro-lead .lead + .lead { margin-top: 1.2em; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: #2d373e; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose-lg { font-size: 1.15rem; }
.prose-lg ul { list-style: none; padding: 0; }
.prose-lg li { position: relative; padding-left: 26px; }
.prose-lg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: var(--red); }
.intro-link { margin: 40px 0 0; }
@media (max-width: 860px) { .intro-body { grid-template-columns: 1fr; } }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 3.3rem); font-weight: 800; font-stretch: var(--wide); line-height: 1; letter-spacing: -.01em; }
.section-title-sm { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 115%; line-height: 1.1; margin-bottom: 24px; }

/* services grid (home) */
.services-block { background: var(--white); padding-block: clamp(56px, 8vw, 112px); }
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.svc-wide { grid-column: span 2; }
.svc a { display: block; text-decoration: none; }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); margin-bottom: 16px; }
.svc-wide .svc-media { aspect-ratio: 36 / 13; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc a:hover .svc-media img { transform: scale(1.04); }
.svc h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 112%; line-height: 1.15; margin-bottom: 6px; }
.svc a:hover h3 { color: var(--red-ink); }
.svc p { color: var(--steel); margin: 0; font-size: .98rem; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-wide .svc-media { aspect-ratio: 16 / 7; height: auto; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc-wide { grid-column: auto; } .svc-wide .svc-media { aspect-ratio: 4 / 3; } }

/* cases scroller */
.cases-block { padding-block: clamp(56px, 8vw, 112px); }
.scroller { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px; scrollbar-width: thin; }
.scroller .card { flex: 0 0 clamp(260px, 27vw, 390px); scroll-snap-align: start; }
.scroller-ctrl { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.round-btn:hover { background: var(--ink); color: var(--white); }
.block-link { margin: 16px 0 0; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 28px; }
.card-link { display: block; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); margin-bottom: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-noimg { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px); }
.badge-video { position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .9rem; padding-left: 3px; }
.card-text h3 { font-size: 1.2rem; font-weight: 800; font-stretch: 110%; line-height: 1.2; margin-bottom: 8px; }
.card-link:hover h3 { color: var(--red-ink); }
.card-text p { color: var(--steel); font-size: .97rem; margin: 0; }
.card-text time { display: block; font-size: .85rem; color: var(--red-ink); font-weight: 700; margin-bottom: 6px; }
.news-block { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding-block: clamp(56px, 8vw, 112px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.cta-title { font-size: clamp(2.1rem, 5vw, 4.4rem); font-weight: 800; font-stretch: var(--wide); line-height: .98; letter-spacing: -.015em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-phone { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 115%; text-decoration: none; color: var(--white); }
.cta-mail { color: var(--white); font-weight: 600; text-decoration-color: rgba(255,255,255,.6); }
.cta-band a:hover { color: var(--white); text-decoration-color: var(--white); }
.cta-band .btn-white:hover { color: var(--white); }
.cta-band :focus-visible { outline-color: var(--white); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { background: var(--white); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.crumb { margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
.crumb a { color: var(--red-ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-title { font-size: clamp(2.3rem, 6.2vw, 5.6rem); font-weight: 800; font-stretch: var(--wide); line-height: .95; letter-spacing: -.02em; max-width: 18ch; }
.page-title-entry { font-size: clamp(2rem, 4.6vw, 4.2rem); max-width: 22ch; }
.page-kicker { margin: 18px 0 0; color: var(--steel); font-weight: 600; }
.page-image { height: clamp(220px, 46vh, 560px); overflow: hidden; background: var(--line); }
.page-image img { width: 100%; height: 100%; object-fit: cover; }

.tabs { background: var(--white); border-bottom: 1px solid var(--line); max-width: none; }
.tabs ul { list-style: none; display: flex; gap: 8px 28px; overflow-x: auto; max-width: var(--wrap); margin: 0 auto; }
.tabs a { display: block; padding: 14px 0; font-weight: 700; text-decoration: none; color: var(--steel); white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.tabs a:hover { color: var(--ink); }

.wide-figure { margin: 0; height: clamp(240px, 50vh, 620px); overflow: hidden; }
.wide-figure img { width: 100%; height: 100%; object-fit: cover; }

/* timeline */
.timeline { list-style: none; position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.tl-item { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 4.6fr) minmax(0, 5fr); gap: 24px 40px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--zinc); position: relative; scroll-margin-top: 96px; }
.tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 10px; background: repeating-linear-gradient(90deg, var(--zinc) 0 1px, transparent 1px 12px); }
.tl-year { margin: 0; font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 800; font-stretch: var(--wide); line-height: .9; color: var(--red); letter-spacing: -.02em; }
.tl-text { font-size: 1.08rem; }
.tl-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .tl-item { grid-template-columns: 1fr; } }

/* gallery */
.gallery { padding-bottom: clamp(48px, 7vw, 96px); }
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid a { display: block; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery-grid li:first-child a { aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* logos */
.logos { padding-bottom: clamp(48px, 7vw, 96px); }
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); display: grid; place-items: center; padding: 10px; }
.logo-grid img { width: 100%; max-width: 150px; opacity: .85; }

/* services list page */
.svc-list { list-style: none; padding-block: clamp(48px, 7vw, 96px); display: grid; gap: clamp(40px, 6vw, 80px); }
.svc-row-link { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 56px; align-items: center; text-decoration: none; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-row-link:hover img { transform: scale(1.03); }
.svc-row-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; font-stretch: var(--wide); line-height: 1; margin-bottom: 14px; }
.svc-row-link:hover h2 { color: var(--red-ink); }
.svc-row-big { font-size: 1.2rem; font-weight: 600; color: var(--red-ink); }
.svc-row-text p:last-child { color: var(--steel); max-width: 52ch; }
@media (max-width: 860px) { .svc-row-link { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-row-media { order: 0; } }

.other-svc { padding-bottom: clamp(48px, 7vw, 96px); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a { display: block; padding: 10px 18px; border: 1.5px solid var(--zinc); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--white); }
.chip-list a:hover { border-color: var(--red); color: var(--red-ink); }

/* entry (case / news) */
.entry-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.entry-media a { display: block; cursor: zoom-in; }
.entry-media img, .entry-media video { width: 100%; background: var(--ink); }
.entry-body { padding-top: 4px; }
.entry-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-block: 32px 72px; border-top: 1px solid var(--line); }
.entry-nav a { text-decoration: none; font-weight: 700; }
.entry-nav a span { display: block; font-size: .85rem; color: var(--steel); font-weight: 600; }
.entry-nav-next { text-align: right; }
.entry-nav-all { color: var(--red-ink); }
@media (max-width: 860px) { .entry-layout { grid-template-columns: 1fr; } .entry-nav { grid-template-columns: 1fr 1fr; } .entry-nav-all { grid-column: 1 / -1; order: 3; } }

.list-section { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); }
.empty { font-size: 1.2rem; color: var(--steel); padding: 48px 0; border-top: 1px solid var(--line); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; padding-block: clamp(48px, 7vw, 96px); }
.contact-list { margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list dt { font-weight: 700; font-size: .9rem; color: var(--steel); }
.contact-list dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact-form { background: var(--white); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--red); scroll-margin-top: 96px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { color: var(--steel); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--zinc); border-radius: 4px; padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(226, 36, 49, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-ink); }
.field-error { color: var(--red-ink); font-size: .92rem; font-weight: 600; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-left: 4px solid; background: var(--paper); font-weight: 600; }
.notice-ok { border-color: var(--ok); }
.notice-error { border-color: var(--red); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* legal */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal h2, .legal h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 110%; margin: 1.6em 0 .6em; }

/* footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; padding-block: 56px 40px; }
.footer-brand img { width: 200px; }
.footer-claim { margin: 14px 0 0; color: var(--steel); font-weight: 600; font-stretch: 110%; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { text-decoration: none; }
.footer-nav { list-style: none; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 28px; background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; font-size: .88rem; color: var(--steel); }
.footer-legal a { color: var(--steel); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 26, 30, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(20, 26, 30, .96); }
.lb-figure { margin: 0; position: absolute; inset: 56px 72px; display: grid; place-items: center; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { position: absolute; background: transparent; border: 0; color: var(--white); font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; cursor: pointer; }
.lb-btn:hover { color: var(--red); }
.lb-btn:focus-visible { outline-color: var(--white); }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; margin: 0; font-size: .9rem; color: var(--zinc); }
@media (max-width: 600px) { .lb-figure { inset: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; } }

/* one orchestrated entrance on the home hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease) forwards; }
  .hero-title span:nth-child(2) { animation-delay: .14s; }
  .page-home .mile { opacity: 0; animation: fade .5s var(--ease) forwards; }
  .page-home .mile:nth-of-type(1) { animation-delay: .5s; } .page-home .mile:nth-of-type(2) { animation-delay: .6s; }
  .page-home .mile:nth-of-type(3) { animation-delay: .7s; } .page-home .mile:nth-of-type(4) { animation-delay: .8s; }
  .page-home .mile:nth-of-type(5) { animation-delay: .9s; } .page-home .mile:nth-of-type(6) { animation-delay: 1s; }
  .page-home .mile:nth-of-type(7) { animation-delay: 1.1s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
