/*
Theme Name: EntoDigital
Theme URI: https://entodigital.io/
Author: EntoDigital
Description: Theme for entodigital.io. Destination discovery systems for tourism boards and route networks. Replaces Hello Elementor + Elementor. Light variant of the EntoDigital design system shared with video.entodigital.io.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entodigital
*/

/* ---------------------------------------------------------------------------
   Tokens. The five brand colors plus tints. Sizes are in rem so the whole
   page scales together on very wide screens (see the html font-size steps).
   --------------------------------------------------------------------------- */
:root {
    --ink: #1F2328;
    --ink-2: #181B1F;
    --ink-3: #262B31;
    --paper: #FFFCED;
    --mist: #E0E9EE;
    --mist-2: #EEF3F6;
    --navy: #1A2E45;
    --navy-2: #223A57;
    --text: #2A2A2A;
    --body: #3A4046;
    --sub: #46515C;          /* 6.3:1 on mist */
    --line: rgba(26, 46, 69, .14);

    --serif: "Petrona", Georgia, "Times New Roman", serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --content: 82.5rem;      /* 1320px at 16px */
    --g: clamp(1rem, 5vw, 6rem);
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (min-width: 2200px) { html { font-size: 118.75%; } }   /* 19px */
@media (min-width: 3000px) { html { font-size: 150%; } }      /* 24px, a 4K screen at 100% scaling */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b { font-weight: 700; }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.dark :where(a, button):focus-visible, .ftr :where(a):focus-visible, .shell :where(a):focus-visible { outline-color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--content) + var(--g) * 2); margin-inline: auto; padding-inline: var(--g); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 50%; top: .6rem; z-index: 300; transform: translate(-50%, -200%); background: var(--navy); color: var(--paper); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .18s ease; }
.skip-link:focus { transform: translate(-50%, 0); }

.eyebrow { display: flex; align-items: center; gap: .75rem; font-family: var(--sans); font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--sub); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1.5px; background: currentColor; opacity: .6; flex: none; }
.dark .eyebrow, .eyebrow.on-dark { color: rgba(255, 252, 237, .74); }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 3.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); margin-top: 1.1rem; text-wrap: balance; }
.dark .h2 { color: var(--paper); }
.w-820 { max-width: 51rem; } .w-860 { max-width: 54rem; } .w-900 { max-width: 56rem; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--body); margin-top: 1.4rem; max-width: 40rem; }
.dark .lede { color: rgba(255, 252, 237, .84); }
.mt-30 { margin-top: 1.9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.4rem; padding: 0 1.6rem; border: 0; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: .97rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn:active { transform: scale(.98); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { box-shadow: inset 0 0 0 1.5px rgba(26, 46, 69, .38); color: var(--navy); background: rgba(255, 252, 237, .6); }
.btn-line:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-sm { min-height: 2.9rem; padding: 0 1.4rem; font-size: .9rem; }
.btn-block { width: 100%; min-height: 3.5rem; font-size: 1rem; }
.ext { font-size: .85em; opacity: .8; margin-left: .15em; }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 237, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.hdr.is-scrolled { box-shadow: 0 10px 30px -20px rgba(26, 46, 69, .45); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.brand img { height: 1.9rem; width: auto; }
.nav { display: flex; gap: .25rem; }
.nav a { font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .65rem 1rem; border-radius: 999px; transition: background-color .15s ease; }
.nav a:hover { background: rgba(26, 46, 69, .07); }
.nav a.is-current, .nav a[aria-current="page"] { background: rgba(26, 46, 69, .1); }
.nav-cta { display: none; }
.menu-btn { display: none; }

@media (max-width: 1099px) {
    .hdr-cta { display: none; }
    .menu-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px rgba(26, 46, 69, .28); }
    .menu-btn::before, .menu-btn::after { content: ""; grid-area: 1 / 1; width: 1rem; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
    .menu-btn::before { transform: translateY(-4px); }
    .menu-btn::after { transform: translateY(4px); }
    .menu-btn[aria-expanded="true"]::before { transform: rotate(45deg); }
    .menu-btn[aria-expanded="true"]::after { transform: rotate(-45deg); }
    .nav { position: absolute; top: calc(100% + .4rem); left: var(--g); right: var(--g); flex-direction: column; gap: .1rem; padding: .5rem; border-radius: 1.25rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(26, 46, 69, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
    .nav a { padding: .9rem 1rem; font-size: 1.05rem; border-radius: .75rem; }
    .nav-cta { display: block; margin-top: .3rem; background: var(--navy); color: var(--paper) !important; text-align: center; }
    .hdr.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* ---------------------------------------------------------------------------
   Hero. The demo screenshot runs to the right edge of the window at every
   width, so wide screens never show empty side bands.
   --------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 85% 20%, rgba(255, 252, 237, .9), transparent 60%), linear-gradient(180deg, var(--mist-2), var(--mist)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; min-height: min(47.5rem, calc(100svh - 5.25rem)); padding-top: 2.5rem; padding-bottom: 4.4rem; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(3rem, 5.2vw, 7rem); line-height: .93; letter-spacing: -.03em; color: var(--ink); margin: 1.5rem 0 1.75rem; text-wrap: balance; }
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--navy); }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--body); max-width: 34rem; }
.acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.creds { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--sub); }
.creds li { position: relative; padding-left: .9rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.creds b { color: var(--ink); }

.hero-shot { position: relative; margin-right: calc((100vw - min(100vw, var(--content) + var(--g) * 2)) / -2 - var(--g)); }
.frame { display: block; border-radius: 1.1rem 0 0 1.1rem; overflow: hidden; background: #fff; text-decoration: none; box-shadow: 0 50px 100px -40px rgba(26, 46, 69, .55), 0 0 0 1px rgba(26, 46, 69, .12); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.frame:hover { transform: translateY(-4px); }
.chrome { display: flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; background: var(--ink); }
.chrome i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 252, 237, .25); }
.chrome .url { margin-left: .9rem; height: 1.5rem; flex: 0 1 24rem; display: flex; align-items: center; padding: 0 .75rem; border-radius: .4rem; background: rgba(255, 252, 237, .1); color: rgba(255, 252, 237, .78); font-size: .75rem; }
.frame img { width: 100%; height: clamp(26rem, 34vw, 56rem); object-fit: cover; object-position: 0 0; }
.pin { position: absolute; top: 44%; left: 47%; display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: .75rem; background: var(--paper); font-size: .8rem; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(26, 46, 69, .5); pointer-events: none; }
.pin em { font-style: normal; font-weight: 600; color: var(--sub); }
.pin s { text-decoration: none; background: var(--navy); color: var(--paper); border-radius: 999px; padding: .25rem .6rem; font-size: .75rem; }
.live { position: absolute; left: -1.6rem; bottom: 2.75rem; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: .9rem; background: var(--paper); box-shadow: 0 20px 40px -16px rgba(26, 46, 69, .45), 0 0 0 1px rgba(26, 46, 69, .1); }
.live .dot { width: .6rem; height: .6rem; border-radius: 50%; background: #2F9E6B; box-shadow: 0 0 0 5px rgba(47, 158, 107, .18); flex: none; }
.live b { display: block; font-size: .875rem; }
.live small { display: block; font-size: .78rem; color: var(--sub); }

@media (max-width: 1099px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-top: 2rem; }
    .hero-shot { margin-right: calc(var(--g) * -1); }
    .frame img { height: clamp(15rem, 60vw, 30rem); }
    .live { left: .8rem; bottom: .8rem; }
    .pin { display: none; }
}

/* ---------------------------------------------------------------------------
   The seam
   --------------------------------------------------------------------------- */
.seam { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(5rem, 8vw, 8rem); }
.seam::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 100%, rgba(34, 58, 87, .7), transparent 70%); pointer-events: none; }
.seam .wrap { position: relative; }
.rail { display: grid; grid-template-columns: 1fr 1fr 4.4rem 1fr 1fr; margin-top: 4rem; }
.stage { position: relative; padding: 1.6rem 1.5rem 1.75rem; border-radius: 1.1rem; }
.stage .n { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: rgba(255, 252, 237, .62); }
.stage h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin: .6rem 0; }
.stage p { font-size: .94rem; line-height: 1.55; color: rgba(255, 252, 237, .78); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tags li { font-size: .78rem; font-weight: 600; padding: .35rem .6rem; border-radius: .5rem; background: rgba(255, 252, 237, .07); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .1); }
.s-dim { margin-right: .75rem; background: rgba(255, 252, 237, .03); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .08); }
.s-on { margin-left: .75rem; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .16), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.s-on .n { color: var(--paper); }
.gap { position: relative; display: flex; align-items: center; justify-content: center; }
.gap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed rgba(255, 252, 237, .35); }
.gap span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--ink); padding: .9rem .25rem; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #F2C9A0; }
.railnote { display: grid; grid-template-columns: 1fr 1fr 4.4rem 1fr 1fr; margin-top: 1.1rem; font-size: .85rem; font-weight: 700; }
.railnote .l { grid-column: 1 / 3; color: rgba(255, 252, 237, .62); padding-left: .25rem; }
.railnote .r { grid-column: 4 / 6; display: flex; align-items: center; gap: .6rem; padding-left: 1rem; }
.railnote .r::before { content: ""; width: 1.75rem; height: 2px; background: var(--paper); }
@media (max-width: 999px) {
    .rail { grid-template-columns: 1fr; gap: .5rem; margin-top: 2.5rem; }
    .s-dim, .s-on { margin: 0; }
    .gap { padding: .3rem 0; }
    .gap::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 2px dashed rgba(255, 252, 237, .35); }
    .gap span { writing-mode: horizontal-tb; transform: none; padding: 0 .75rem; }
    .railnote { display: none; }
}

/* ---------------------------------------------------------------------------
   Patterns
   --------------------------------------------------------------------------- */
.patterns { background: var(--paper); padding: clamp(5rem, 8vw, 7.5rem) 0; }
.pat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3.75rem; align-items: end; }
.pat-head .lede { margin: 0; }
.pat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 3.5rem; }
.pat { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.75rem 1.6rem; border-radius: 1.1rem; background: #fff; box-shadow: 0 1px 0 rgba(26, 46, 69, .06), 0 0 0 1px rgba(26, 46, 69, .1); }
.pat .k { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--mist); padding: .4rem .65rem; border-radius: 999px; }
.pat .q { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
.pat .fix { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.5; color: var(--body); }
.pat .fix b { color: var(--navy); }
@media (max-width: 1099px) { .pat-head { grid-template-columns: 1fr; gap: 1.25rem; } .pat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .pat-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Product
   --------------------------------------------------------------------------- */
.product { background: var(--mist); padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(5rem, 8vw, 8rem); }
.prod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.4rem; align-items: start; }
.feats { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 5.75rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.feat .st { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); padding-top: .25rem; }
.feat b { display: block; font-size: 1.03rem; color: var(--ink); }
.feat span { display: block; font-size: .9rem; color: #4A5057; margin-top: .25rem; line-height: 1.5; }
.stack { position: relative; height: 45rem; }
.shot { position: absolute; border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(26, 46, 69, .55), 0 0 0 1px rgba(26, 46, 69, .12); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.cap { position: absolute; left: .9rem; bottom: .9rem; background: rgba(31, 35, 40, .86); color: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; }
.sh1 { left: 0; top: 0; width: 78%; height: 29.4rem; }
.sh2 { right: 0; top: 15.6rem; width: 56%; height: 27rem; }
.after { margin-top: 1.6rem; padding: 1.25rem 1.4rem; border-radius: .9rem; background: var(--navy); color: rgba(255, 252, 237, .84); font-size: .92rem; line-height: 1.55; }
.after b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--paper); margin-bottom: .2rem; }
@media (max-width: 1099px) {
    .prod { grid-template-columns: 1fr; gap: 3rem; }
    .stack { height: auto; display: grid; gap: 1rem; }
    .shot { position: relative; inset: auto; width: 100%; height: clamp(14rem, 55vw, 26rem); }
}

/* ---------------------------------------------------------------------------
   Process
   --------------------------------------------------------------------------- */
.process { background: var(--paper); padding: clamp(5rem, 7.5vw, 7rem) 0 clamp(5rem, 8vw, 7.5rem); }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 3.5rem; border-top: 2px solid var(--navy); }
.phase { position: relative; padding: 1.6rem 1.6rem 0 0; }
.phase::before { content: ""; position: absolute; top: -.5rem; left: 0; width: .9rem; height: .9rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--navy); }
.phase:last-child::before { background: var(--navy); }
.phase .n { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--sub); }
.phase h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); margin: .5rem 0 .6rem; }
.phase p { font-size: .9rem; line-height: 1.55; color: #4A5057; }
@media (max-width: 999px) {
    .phases { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--navy); margin-left: .45rem; }
    .phase { padding: 0 0 1.75rem 1.75rem; }
    .phase::before { top: .1rem; left: -.55rem; }
}

/* ---------------------------------------------------------------------------
   Case study teaser
   --------------------------------------------------------------------------- */
.case { background: var(--navy); color: var(--paper); padding: clamp(5rem, 8vw, 7.5rem) 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4.4rem; align-items: center; }
.case-img { position: relative; padding-bottom: 2.5rem; }
.case-img .a { border-radius: 1.1rem; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.case-img .b { position: absolute; right: -1.9rem; bottom: 0; width: 52%; border-radius: .9rem; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border: 4px solid var(--navy); }
.dashes { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.dashes li { display: flex; gap: .75rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 252, 237, .88); }
.dashes li::before { content: ""; flex: none; width: 1.1rem; height: 2px; background: currentColor; margin-top: .75rem; }
.dashes.dark-text li { color: var(--body); }
.dashes.dark-text li::before { background: var(--navy); }
.case blockquote { margin-top: 2.1rem; padding: 1.4rem 1.5rem; border-radius: .9rem; background: rgba(255, 252, 237, .07); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .12); }
.case blockquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; font-style: italic; }
.case cite, .quote cite { display: block; font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .75rem; color: rgba(255, 252, 237, .74); }
.case .btn { margin-top: 1.9rem; }
@media (max-width: 999px) { .case-grid { grid-template-columns: 1fr; gap: 3rem; } .case-img .b { right: .8rem; } }

/* ---------------------------------------------------------------------------
   Three disciplines
   --------------------------------------------------------------------------- */
.lanes { background: var(--mist); padding: clamp(5rem, 8vw, 7.5rem) 0; }
.lane-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; margin-top: 3.25rem; }
.lane-grid > li { display: flex; }
.lanec { display: flex; flex-direction: column; width: 100%; border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(26, 46, 69, .1); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.lanec:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(26, 46, 69, .18), 0 30px 50px -30px rgba(26, 46, 69, .5); }
.lanec .im { position: relative; display: block; height: 13.75rem; overflow: hidden; }
.lanec .im img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.lanec .url { position: absolute; left: .9rem; top: .9rem; background: rgba(31, 35, 40, .86); color: var(--paper); font-size: .78rem; font-weight: 700; padding: .45rem .75rem; border-radius: 999px; }
.lanec .bd { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.lanec .lt { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.lanec .ld { font-size: .94rem; line-height: 1.55; color: #4A5057; }
.lanec .go { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--navy); }
.lanec .go i { font-style: normal; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--paper); }
.lanec.here { background: var(--ink); }
.lanec.here .lt { color: var(--paper); }
.lanec.here .ld { color: rgba(255, 252, 237, .8); }
.lanec.here .go { color: var(--paper); }
.lanec.here .go i { background: var(--paper); color: var(--ink); }
.strat { display: grid; place-items: center; height: 13.75rem; background: radial-gradient(60% 80% at 30% 20%, rgba(34, 58, 87, .9), transparent 70%), var(--ink-3); }
.strat .ph { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0 1rem; }
.strat .ph i { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: rgba(255, 252, 237, .84); padding: .5rem .65rem; border-radius: .5rem; background: rgba(255, 252, 237, .08); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .14); }
@media (max-width: 999px) { .lane-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   About
   --------------------------------------------------------------------------- */
.about { background: var(--paper); padding: clamp(5rem, 8vw, 7.5rem) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
.about-lead { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.28; font-weight: 600; color: var(--ink); margin-top: 1.4rem; }
.about-text { font-size: 1.05rem; line-height: 1.7; color: var(--body); margin-top: 1.4rem; }
.cv { border-top: 1px solid var(--line); }
.cv > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cv dt { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); padding-top: .2rem; }
.cv dd b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.cv dd span { display: block; font-size: .9rem; color: #4A5057; margin-top: .25rem; line-height: 1.5; }
@media (max-width: 999px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 499px) { .cv > div { grid-template-columns: 1fr; gap: .35rem; } }

/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */
.contact { background: var(--paper); padding: 1.9rem 0 clamp(5rem, 8vw, 7.5rem); }
.shell { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); padding: clamp(1.75rem, 5vw, 4.5rem); border-radius: 1.75rem; background: radial-gradient(60% 90% at 0 0, rgba(34, 58, 87, .9), transparent 70%), var(--navy); color: var(--paper); }
.shell-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; margin-top: 1.4rem; text-wrap: balance; }
.shell-sub { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; color: rgba(255, 252, 237, .86); margin-top: 1.4rem; max-width: 29rem; }
.mail { display: flex; flex-direction: column; gap: .4rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 252, 237, .16); }
.mail-lab { font-size: .75rem; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: rgba(255, 252, 237, .74); }
.mail a { font-family: var(--serif); font-size: clamp(1.4rem, 1.8vw, 1.65rem); font-weight: 600; color: var(--paper); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.mail a.li { font-family: var(--sans); font-size: .95rem; font-weight: 700; text-decoration: none; padding: .5rem 0; }
@media (max-width: 999px) { .shell { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .contact .wrap { padding-inline: 0; } .shell { border-radius: 0; padding-inline: var(--g); } }

.form { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.4rem, 2.6vw, 2.1rem); border-radius: 1.25rem; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form :where(a, button, input, select, textarea):focus-visible { outline-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kinds { border: 0; margin: 0; padding: 0; min-width: 0; }
.fl { display: block; padding: 0; margin-bottom: .6rem; font-size: .875rem; font-weight: 700; }
.fl em { font-style: normal; font-weight: 500; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(26, 46, 69, .32); transition: background-color .15s ease; }
.chip:hover span { background: rgba(26, 46, 69, .06); }
.chip input:checked + span { background: var(--navy); color: var(--paper); box-shadow: none; }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 599px) { .row2 { grid-template-columns: 1fr; gap: 1.25rem; } }
.inp { width: 100%; min-height: 3.25rem; padding: 0 1rem; border: 0; border-radius: .75rem; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26, 46, 69, .28); font-family: var(--sans); font-size: 1rem; transition: box-shadow .15s ease; }
.inp::placeholder { color: #737A83; }
.inp:hover { box-shadow: inset 0 0 0 1px rgba(26, 46, 69, .5); }
.inp:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px rgba(26, 46, 69, .16); }
.inp[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #A33A1F; }
.ta { min-height: 6.5rem; padding-block: .9rem; resize: vertical; line-height: 1.5; }
.err { margin-top: .5rem; font-size: .875rem; color: #A33A1F; }
.err[hidden] { display: none; }
.status { font-size: .94rem; font-weight: 600; text-align: center; }
.status:empty { display: none; }
.status[data-state="sent"] { padding: .9rem; border-radius: .75rem; background: var(--mist); color: var(--navy); }
.fine { font-size: .8rem; color: var(--sub); text-align: center; }
.fine a { color: var(--navy); }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------------------
   Inner pages
   --------------------------------------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--mist-2), var(--mist)); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); margin-top: 1.25rem; max-width: 56rem; text-wrap: balance; }
.crumbs { font-size: .875rem; color: var(--sub); margin-bottom: 1.75rem; }
.crumbs a { color: var(--navy); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2.5rem; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: var(--serif); font-size: 2.25rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.facts span { font-size: .875rem; color: var(--sub); }
.case-body { background: var(--paper); padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.case-cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4.5rem; align-items: start; }
.prose { max-width: 42rem; }
.prose.narrow { max-width: 44rem; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.1rem; }
.prose .lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.4; font-weight: 600; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.2vw, 2.1rem); color: var(--ink); margin-top: 2.6rem; letter-spacing: -.01em; }
.prose a { color: var(--navy); font-weight: 600; }
.prose ul:not(.dashes) { list-style: disc; padding-left: 1.2rem; }
.callout { padding: 1.1rem 1.25rem; border-radius: .9rem; background: var(--mist); color: var(--navy) !important; font-weight: 600; }
.quote { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: .9rem; background: var(--navy); color: var(--paper); }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; font-style: italic; color: var(--paper); }
.updated { font-size: .875rem !important; color: var(--sub) !important; margin-top: 2.5rem !important; }
.gallery { display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 7rem; }
.gallery figure { border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(26, 46, 69, .1), 0 30px 60px -40px rgba(26, 46, 69, .5); }
.gallery figcaption { padding: .8rem 1rem .9rem; font-size: .85rem; color: var(--sub); line-height: 1.45; }
@media (max-width: 999px) { .case-cols { grid-template-columns: 1fr; gap: 3rem; } .gallery { position: static; } }
.next-up { background: var(--mist); padding: clamp(4rem, 6vw, 5.5rem) 0; }
.next-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.cases { background: var(--paper); padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.case-card { display: flex; flex-direction: column; height: 100%; border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(26, 46, 69, .1); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(26, 46, 69, .18), 0 30px 50px -30px rgba(26, 46, 69, .5); }
.case-card .im { display: block; height: 17rem; overflow: hidden; }
.case-card .im img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.case-card .bd { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.75rem 1.75rem; flex: 1; }
.case-card .k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.case-card .t { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); }
.case-card .d { font-size: 1rem; line-height: 1.55; color: #4A5057; }
.case-card .go { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--navy); }
.case-card .go i { font-style: normal; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--paper); }
@media (max-width: 799px) { .case-list { grid-template-columns: 1fr; } }
.cta-band { background: var(--navy); color: var(--paper); padding: clamp(3.5rem, 6vw, 5rem) 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.08; max-width: 40rem; text-wrap: balance; }
.page-404 { min-height: 60vh; display: flex; align-items: center; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.ftr { background: var(--ink); color: rgba(255, 252, 237, .74); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3.5rem; }
.ftr img { height: 1.6rem; width: auto; }
.ftr p { font-size: .875rem; line-height: 1.6; margin-top: 1rem; max-width: 20rem; }
.ftr h2 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 252, 237, .62); font-weight: 800; margin-bottom: .6rem; }
.ftr nav a { display: block; color: var(--paper); text-decoration: none; font-size: .9rem; padding: .45rem 0; overflow-wrap: anywhere; }
.ftr nav a:hover { text-decoration: underline; }
.ftr-bottom { border-top: 1px solid rgba(255, 252, 237, .1); }
.ftr-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.6rem; font-size: .8rem; }
@media (max-width: 899px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------------
   Motion
   --------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .stage, .pat, .feat, .phase, .lanec, .cv > div, .case-card, .gallery figure {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 35%;
        }
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
