/* Public pages. System type keeps both languages on the same metrics offline. */
:root {
    color-scheme: light;
    --paper: #f4f7f6;
    --surface: #ffffff;
    --ice: #e3efec;
    --ink: #132e39;
    --muted: #415c65;
    --accent: #205f63;
    --navy: #102e3b;
    --foam: #c0e8db;
    --rule: #ccd9d7;
    --edge: #647d82;
    --focus: #186165;
    --serif: Georgia, 'Times New Roman', serif;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#main:focus:not(:focus-visible) { outline: none; }
.wrap { width: min(89%, 80rem); margin-inline: auto; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; }
.skip { position: fixed; z-index: 6; top: .75rem; left: 1rem; padding: .55em 1em; transform: translateY(-180%); background: white; color: var(--ink); }
.skip:focus { transform: none; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.7rem); min-height: 5rem; padding-block: .9rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.wordmark span { font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.48rem); letter-spacing: -.05em; line-height: 1.16; }
.wordmark .icon { width: 2rem; height: 2rem; color: var(--accent); stroke-width: 1.65; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(1rem, 2vw, 2rem); margin-inline-start: auto; }
.masthead nav a, .language { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; font-size: .88rem; text-decoration: none; }
.masthead nav a:is([aria-current], :hover), .language:hover { text-decoration: underline; }
.language { color: var(--accent); }

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 500; letter-spacing: -.042em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.4vw, 5.2rem); margin: .19em 0; }
h2 { font-size: clamp(2.1rem, 3.25vw, 3.25rem); }
.eyebrow { font: 650 .71rem/1.45 ui-monospace, 'Courier New', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-grid { padding-block: clamp(3rem, 5.1vw, 5.2rem); }
.inner { background: var(--ice); border-bottom: 1px solid var(--rule); }
.inner .hero-copy { max-width: 64rem; }
.location { display: inline-flex; align-items: center; gap: .8rem; }
.location::before { content: ''; width: 2rem; height: 1px; background: currentColor; }
.hero-copy > p { margin: 1.15rem 0 0; max-width: 64ch; font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--muted); }
.home { background: var(--navy); color: #f2f8f5; --muted: #d0dfdf; --focus: var(--foam); }
.home .hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5%; }
.home .hero-copy { min-width: 0; }
.home .location { color: var(--foam); }
.home h1 { font-size: clamp(3.1rem, 4.9vw, 5.15rem); line-height: 1.02; font-weight: 500; letter-spacing: -.056em; }
.home h1 em { display: block; color: var(--foam); font: italic 1.06em/1.04 var(--serif); letter-spacing: -.057em; }
.home .exchange { vertical-align: .1em; font-size: .66em; color: var(--foam); }
.home .hero-copy > p { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.65rem; }
.actions > a:not(.button), .section-title > a { font-size: .92rem; font-weight: 500; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; padding: .8rem 1.2rem; background: var(--navy); color: white; border: 1px solid transparent; border-radius: 2rem; font-size: .91rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.button:hover, button:hover { background: #204f55; }
.home .button { background: var(--foam); color: var(--navy); }
.home .button:hover { background: #daf4e9; }

/* A pair of polished panes. All light and etched lines stay inside the art. */
.artwork { position: relative; min-width: 0; isolation: isolate; aspect-ratio: 1.48; }
.glass-scene { position: absolute; inset: 0 0 2.7rem; perspective: 850px; }
.glass-scene::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(ellipse at 55% 66%, #719a9638, transparent 67%);
}
.pane {
    position: absolute; width: 54%; height: 84%; overflow: hidden;
    border: 1px solid #dfede3c9; border-radius: 13% / 14%;
    box-shadow: inset 2px 2px 2px #f4ffedb0, inset -3px -3px 4px #183c5a6e, 2px 3px 0 #668d94, 3px 5px 0 #3e6972, 0 1.25rem 1.5rem -.9rem #051823bb;
}
.pane-en {
    left: 6%; top: 2%; transform: rotateY(17deg) rotateZ(-14deg);
    background: linear-gradient(140deg, #e7e7d7 1%, #b7cbdc 29%, #92acc3 49%, #d4dee5 65%, #6c94a8 95%);
    color: #334f66;
}
.pane-es {
    right: 6%; top: 18%; transform: rotateY(-15deg) rotateZ(12deg);
    background: linear-gradient(130deg, #edf6dfd9, #cee9dbc9 34%, #84bcb6e8 62%, #66a4aeed);
    color: #184f59;
}
.pane b { position: absolute; top: 8%; left: 10%; font: italic 400 clamp(4.6rem, 7.7vw, 8rem)/.95 var(--serif); letter-spacing: -.09em; text-shadow: 0 1px 1px #fff8; }
.pane i {
    position: absolute; width: 165%; height: 102%; top: 43%; left: -33%; transform: rotate(-19deg);
    border-radius: 50%;
    background: repeating-radial-gradient(ellipse at 54% 145%, transparent 0 7px, #e8fff5aa 8px, #46747a52 9px, transparent 11px);
}
.pane-es i { top: 39%; transform: rotate(12deg); }
.motion-toggle { display: none; position: absolute; bottom: 0; right: 0; width: 2.35rem; height: 2.35rem; padding: 0; color: var(--foam); background: var(--navy); border-color: #8cb8b5; box-shadow: 0 0 0 .48rem var(--navy); }
.motion-toggle .icon-play, .motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
@keyframes drift-en { to { transform: translate(3%, 2%) rotateY(11deg) rotateZ(-10deg); } }
@keyframes drift-es { to { transform: translate(-3%, -3%) rotateY(-9deg) rotateZ(9deg); } }
@media (prefers-reduced-motion: no-preference) {
    .motion-ready .pane-en { animation: drift-en 12s ease-in-out infinite alternate; }
    .motion-ready .pane-es { animation: drift-es 15s ease-in-out infinite alternate; }
    .motion-ready.paused .pane { animation-play-state: paused; }
    .motion-ready .motion-toggle { display: inline-flex; }
}

.formats { padding-block: clamp(2.6rem, 4.5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.section-title { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; align-items: baseline; justify-content: space-between; margin: .45rem 0 1.65rem; }
.section-title > a { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: block; padding: clamp(1.15rem, 1.7vw, 1.75rem); border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); box-shadow: 0 7px 14px -11px #1a414c66; text-decoration: none; }
.service-card:hover { background: #edf4f2; border-color: var(--accent); }
.service-card:hover h3 { text-decoration: underline; }
.card-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: 1.6rem; color: var(--accent); }
.card-tools > .icon:first-child { box-sizing: content-box; width: 1.5rem; height: 1.5rem; padding: .6rem; background: var(--ice); border-radius: .75rem; }
.card-tools .icon-diagonal { width: 1rem; height: 1rem; }
.service-card h3 { font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.14; }
.service-card p { font-size: .95rem; color: var(--muted); line-height: 1.55; margin: .7rem 0 0; }
.industries { padding-block: clamp(2.5rem, 4.5vw, 4.5rem); display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.industry-grid a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--edge); text-decoration: none; }
.industry-grid a:hover { text-decoration: underline; }
.industry-grid .icon { color: var(--accent); }
.article { max-width: 49rem; display: flow-root; }
.article:has(> *) { padding-block: 2.75rem 3.75rem; }
.industries + .wrap { border-top: 1px solid var(--rule); }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); margin: 1.35rem 0 .7rem; }
.article > p, figcaption, .field-help { color: var(--muted); }
figure { margin: 1.5rem 0; }
figure img { display: block; max-width: 100%; height: auto; }
figcaption { margin-top: .65rem; font-size: .9rem; }
.article details, .handoff { border-bottom: 1px solid var(--edge); }
summary { padding: .8rem 0; font-weight: 600; }
form[data-kind] { padding: clamp(1rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: 1rem; background: var(--surface); }
form label { display: block; margin: .9rem 0; font-size: .95rem; font-weight: 500; }
input, select { width: 100%; display: block; margin-top: .35rem; border: 1px solid var(--edge); border-radius: .4rem; background: #fbfdfc; color: var(--ink); padding: .65rem .8rem; }
input[type="checkbox"] { display: inline; width: 1.1rem; height: 1.1rem; vertical-align: middle; margin: 0 .5rem 0 0; accent-color: var(--accent); }
fieldset { border: 1px solid var(--edge); min-width: 0; }
.field-help { margin: -.5rem 0 1.1rem; font-size: .88rem; }
[aria-invalid="true"] { border: 2px solid #953549; }
legend + #form-status { margin: .35rem 0; color: #883044; }
label + #form-status { margin: -.5rem 0 .9rem; color: #883044; }
[role="status"]:empty { margin: 0; }

.assistant { position: relative; }
.assistant > summary { display: flex; align-items: center; justify-content: center; gap: .55rem; list-style: none; border-radius: 2rem; padding: .62rem 1rem; font-size: .88rem; font-weight: 600; color: white; background: var(--navy); }
.assistant > summary:hover, .assistant[open] > summary { background: #204f55; }
.assistant > summary::-webkit-details-marker { display: none; }
.assistant .icon-close, .assistant[open] > summary .icon-chat { display: none; }
.assistant[open] > summary .icon-close { display: block; }
.concierge-panel { position: absolute; z-index: 3; top: calc(100% + .65rem); right: 0; width: min(23rem, calc(100vw - 2rem)); max-height: min(75dvh, 37rem); overflow: auto; overscroll-behavior: contain; background: white; border: 1px solid var(--edge); border-radius: 1rem; padding: 1.35rem; box-shadow: 0 .85rem 2.5rem #082c3d33; }
.concierge-panel h2 { font-size: 1.75rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--accent); font-size: .9rem; margin: .8rem 0 1.1rem; }
.handoff { border-block: 1px solid var(--edge); margin-top: 1.2rem; }
.handoff[open] { padding-bottom: 1rem; }
footer { background: var(--navy); color: #f2f8f5; --accent: var(--foam); --focus: var(--foam); padding-block: 3rem 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
.footer-grid p { margin: .85rem 0; font-size: .95rem; }
.footer-grid nav { width: min(55%, 47rem); display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: .65rem 1.4rem; }
.footer-grid nav a { color: #d0dfdf; font-size: .88rem; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #4e6a73; color: #c0d2d4; font-size: .8rem; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
    .wrap { width: 92%; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .industries { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 2.5rem); }
    .masthead .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem .5rem; padding-block: .85rem; }
    .wordmark .icon { width: 1.65rem; height: 1.65rem; }
    .masthead .wordmark { grid-column: 1 / -1; grid-row: 1; justify-self: start; max-width: calc(100% - 5rem); }
    .language { grid-column: 2; grid-row: 1; justify-self: end; }
    .masthead nav { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; gap: .25rem 1rem; }
    .masthead .assistant { grid-column: 2; grid-row: 2; justify-self: end; }
    .assistant > summary { padding: .6rem .8rem; }
    .home .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero-grid { padding-block: 2.6rem; }
    .home h1 { font-size: clamp(2.8rem, 8.6vw, 4.65rem); }
    .artwork { width: min(100%, 30rem); justify-self: center; aspect-ratio: 1.85; }
    .pane { width: 49%; }
    .pane b { font-size: clamp(3.6rem, 13vw, 5.6rem); }
    .footer-grid { flex-direction: column; }
    .footer-grid nav { width: 100%; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 2rem); }
    .masthead nav { gap: .1rem .7rem; }
    .masthead nav a, .assistant > summary { font-size: .8rem; }
    .industry-grid { grid-template-columns: 1fr; }
    .service-grid { gap: .65rem; }
    .service-card { padding: 1.1rem .85rem; }
    .service-card h3 { font-size: 1.18rem; }
    .service-card p { font-size: .9rem; }
}
@media (max-width: 380px) {
    .service-grid { grid-template-columns: 1fr; }
    .masthead nav { gap: .05rem .65rem; }
    .masthead nav a { min-height: 1.65rem; }
    .assistant > summary { max-width: 8.5rem; padding: .4rem .75rem; gap: .4rem; line-height: 1.3; }
}
