/* Adriano Del Rio Candia · personal site
   Own identity, separate from the CoastalEdge brokerage site: black ground, beige for
   contrast bands, antique gold for detail. Bodoni Moda headlines, Jost text.

   Colours are set through a small set of role variables (--bg, --fg, --muted, --rule,
   --accent ...). The page is dark by default; adding .band-beige to a section flips the
   roles for everything inside it.

   Photos: every photo sits in a portrait frame capped at a width its file can support
   at retina density. Never stretch one across a wide area. */
:root {
  --ink: #0d0c0a;
  --ink-2: #16130f;
  --night: #080706;
  --beige: #e6dccb;
  --on-ink: #efe6d8;
  --mute-on-ink: #aaa08f;
  --gold: #c6a15b;
  --gold-soft: #ddbe84;
  --gold-deep: #76581a;

  --bg: var(--ink);
  --fg: var(--on-ink);
  --muted: var(--mute-on-ink);
  --rule: rgba(239, 230, 216, 0.17);
  --accent: var(--gold);
  --card: var(--ink-2);
  --field: #1a1713;
  --field-border: rgba(239, 230, 216, 0.3);
  --placeholder: #8a8173;
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bg-hover: var(--gold-soft);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23efe6d8' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --body: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --label: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9.5vw, 128px);
  --radius: 2px;
  --head-h: 76px;
}
.band-beige {
  --bg: var(--beige);
  --fg: #1a1714;
  --muted: #564d41;
  --rule: rgba(26, 23, 20, 0.18);
  --accent: var(--gold-deep);
  --card: #f2ebdf;
  --field: #faf6ee;
  --field-border: rgba(26, 23, 20, 0.36);
  --placeholder: #857b6c;
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  --btn-bg-hover: #2a251e;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230d0c0a' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background: var(--bg); color: var(--fg);
}
.band-raised { --bg: var(--ink-2); --card: #1e1a15; background: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); background: var(--ink); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.14; font-weight: 500; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 56ch; }

/* Photo frame: portrait photo with a thin gold outline offset behind it. */
.frame { position: relative; margin: 0 16px 16px 0; }
.frame::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); border-radius: var(--radius); }
.frame img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius); background: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 28px;
  font-family: var(--label); font-size: 13.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-secondary { border-color: var(--fg); color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--accent); background: none; cursor: pointer;
}
.textlink .arw { color: var(--accent); transition: transform .2s ease; }
.textlink:hover .arw { transform: translateX(4px); }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter); color: var(--on-ink);
}
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed mobile menu panel inside the header's box. */
.site-head::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(13, 12, 10, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(239, 230, 216, 0.14); transition: opacity .25s ease; }
.site-head.is-solid::before { opacity: 1; }
.brand { display: grid; gap: 4px; text-decoration: none; line-height: 1; flex: none; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.brand-tag { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
  font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding-block: 8px; border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-extra { display: none; }
.head-tools { display: flex; align-items: center; gap: 18px; flex: none; }
.langs { display: flex; gap: 2px; font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; }
.langs a { text-decoration: none; padding: 8px 7px; opacity: .55; border-bottom: 1px solid transparent; }
.langs a:hover { opacity: 1; }
.langs a[aria-current="true"] { opacity: 1; border-bottom-color: var(--gold); }
.head-phone {
  font-family: var(--label); font-size: 13.5px; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
  padding: 10px 18px; color: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}
.head-phone:hover { background: var(--gold); color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid currentColor; border-radius: var(--radius); padding: 10px 14px; font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }

/* Hero: headline on black, a modest framed portrait beside it. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); grid-template-areas: "title photo" "rest photo";
  column-gap: clamp(40px, 7vw, 110px); align-items: center;
  padding: calc(var(--head-h) + clamp(44px, 6vw, 88px)) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) clamp(64px, 7vw, 104px);
}
.hero-title { grid-area: title; align-self: end; }
.hero-rest { grid-area: rest; align-self: start; }
.hero-photo { grid-area: photo; }
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 6.9rem); line-height: 0.98; letter-spacing: -0.022em; margin-bottom: clamp(22px, 2.4vw, 32px); }
.hero-sub { max-width: 44ch; font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 2.8vw, 38px); }
.hero-langs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px;
  margin-top: clamp(32px, 3.8vw, 52px); padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.hero-langs-list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero-langs a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; color: var(--fg); }
.hero-langs a b { font-weight: 500; color: var(--accent); }
.hero-langs a span { font-family: var(--display); font-style: italic; font-size: 19px; letter-spacing: 0; text-transform: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.hero-langs a:hover span { border-bottom-color: var(--accent); }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.path {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 36px); text-decoration: none;
  transition: background-color .2s ease;
}
.path + .path { border-left: 1px solid var(--rule); }
.path:hover { background: var(--ink-2); }
.path svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.3; margin-bottom: 10px; }
.path p { color: var(--muted); font-size: 16.5px; }
.path .textlink { margin-top: 14px; justify-self: start; }
.paths-wrap { padding-bottom: var(--section); }

/* Split: text beside a framed portrait. Used by About, Search band and Contact. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 350px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.photo-first { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }

/* About */
.about-text p + p { margin-top: 16px; }
.about-text h2 { margin-bottom: 26px; }
.about-text > p { max-width: 58ch; }
.about .frame img { aspect-ratio: 3 / 4; }
.about blockquote {
  margin-top: 32px; padding-left: 24px; border-left: 1px solid var(--accent);
  font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.28; max-width: 30ch; text-wrap: balance;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.facts li { padding: 22px 20px 0 0; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1; }
.facts span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.creds { margin-top: 30px; font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Search band */
.searchband-text h2 { margin-bottom: 20px; max-width: 14ch; }
.ticks { margin: 28px 0 36px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 18px; height: 1px; background: var(--accent); }
.searchband .frame img { object-position: 50% 42%; }

/* Who */
.who-head { margin-bottom: clamp(32px, 4vw, 56px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-top: 1px solid var(--accent); border-radius: var(--radius); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: clamp(24px, 2.6vw, 36px); }
.card-body p { color: var(--muted); font-size: 16.5px; flex: 1; }
.card-body .textlink { align-self: flex-start; margin-top: 12px; }

/* Method */
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-text h2 { margin-bottom: 26px; }
.method-text > p { max-width: 52ch; color: var(--muted); }
.method-text > p + p { margin-top: 16px; }
.principles { border-top: 1px solid var(--rule); }
.principles li { display: grid; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--rule); }
.principles p { color: var(--muted); max-width: 58ch; }

/* Areas */
.areas-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.areas-head h2 { max-width: 20ch; }
.areas-hint { font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.area-list { border-top: 1px solid var(--rule); }
.area {
  width: 100%; display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr) auto; gap: 14px 36px; align-items: center;
  padding: 26px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); color: inherit; text-align: left; cursor: pointer;
  transition: padding .25s ease, background-color .25s ease;
}
.area:hover, .area:focus-visible { background: rgba(239, 230, 216, 0.05); padding-inline: 18px; }
.area-name { font-family: var(--display); font-size: clamp(1.55rem, 2.6vw, 2.25rem); line-height: 1.1; display: block; }
.area-tag { display: block; margin-top: 8px; font-family: var(--label); font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.area-desc { color: var(--muted); font-size: 16.5px; }
.area-go { font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; display: inline-flex; gap: 10px; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease; }
.area:hover .area-go, .area:focus-visible .area-go { opacity: 1; transform: none; }

/* Calculator */
.calc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.calc-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.calc-fields { display: grid; gap: 30px; align-content: center; }
.cf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.cf-top label { font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.cf-val { font-family: var(--body); font-weight: 500; font-size: clamp(1.1rem, 4vw, 1.3rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.cf-val { display: inline-flex; align-items: baseline; }
.cf-amt { margin-left: 0.15em; }
.cf-val input.cf-in { width: 5ch; min-height: 0; padding: 0 0 3px; margin: 0; background: transparent; border: 0; border-bottom: 1px dashed var(--accent); border-radius: 0; color: inherit; font: inherit; font-variant-numeric: lining-nums tabular-nums; text-align: right; cursor: text; box-shadow: none; }
.cf-val input.cf-in:hover { border-bottom-style: solid; }
.cf-val input.cf-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-bottom-style: solid; box-shadow: none; }
.cf-unit { margin-left: 0.08em; }
.cf-unit:first-child { margin: 0 0.08em 0 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--fg); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--fg); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.calc-out { padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius); display: flex; flex-direction: column; }
.out-label { font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.calc-total { font-family: var(--display); font-size: clamp(3.2rem, 6.4vw, 5.2rem); line-height: 1; margin-top: 18px; font-variant-numeric: lining-nums tabular-nums; }
.calc-total em { font-style: normal; font-family: var(--body); font-size: 1.1rem; color: var(--muted); margin-left: 6px; }
.calc-break { margin-top: 12px; font-size: 15.5px; }
.calc-fine { margin: 22px 0 28px; font-size: 13.5px; line-height: 1.5; color: var(--muted); flex: 1; }

/* Alerts */
.alerts-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.alerts h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; }
.alerts p { color: var(--muted); max-width: 50ch; }
.alerts-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }

/* Forms */
.field { display: grid; gap: 8px; }
.field label, .label { font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.field label small { font-weight: 400; letter-spacing: 0.04em; color: var(--muted); text-transform: none; font-size: 13px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; background-color: var(--field); color: var(--fg); border: 1px solid var(--field-border); border-radius: var(--radius);
  font-size: 16.5px; line-height: 1.3; transition: border-color .2s ease, box-shadow .2s ease;
}
select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; }
select option { background: #fff; color: #1a1714; }
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.4); }
::placeholder { color: var(--placeholder); opacity: 1; }
.form-err { grid-column: 1 / -1; font-size: 15px; color: #f0a497; }
.band-beige .form-err { color: #8f2a1c; }
.form-ok { grid-column: 1 / -1; padding: 8px 0; }
.form-ok h3 { margin-bottom: 10px; }
.form-ok p { color: var(--muted); max-width: 48ch; }

/* Brief */
.brief-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.brief-intro h2 { margin-bottom: 20px; }
.agent-chip { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.agent-chip img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.agent-chip b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.agent-chip a { font-size: 16px; color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.brief-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(22px, 3vw, 40px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.brief-form .full { grid-column: 1 / -1; }
.form-note { font-size: 14px; color: var(--muted); align-self: center; }

/* Contact */
.contact { background: var(--night); --bg: var(--night); }
.contact h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; margin-bottom: 18px; }
.contact-inner > p { color: var(--muted); font-size: 1.12rem; }
.contact-list { display: flex; flex-wrap: wrap; gap: 24px clamp(28px, 4vw, 56px); margin: clamp(36px, 5vw, 60px) 0 0; padding-top: 28px; border-top: 1px solid var(--rule); }
.contact-list dt { font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-list dd { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.2; font-variant-numeric: lining-nums; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.contact-list a:hover { border-bottom-color: var(--accent); }

/* Footer */
.site-foot { background: var(--night); color: var(--muted); font-size: 16px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); }
.foot-brand .brand-name { color: var(--fg); font-size: 26px; display: block; margin-bottom: 14px; }
.foot-brand p + p { margin-top: 4px; }
.site-foot h3 { font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.site-foot li + li { margin-top: 10px; }
.site-foot a { text-decoration: none; color: var(--fg); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-foot a:hover { border-bottom-color: var(--accent); }
.foot-legal { border-top: 1px solid var(--rule); padding-block: 24px 32px; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; }
.foot-legal .eho { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.foot-legal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Promo video */
section.film { padding-top: clamp(56px, 7vw, 96px); }
.film-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.film-head h2 { margin-bottom: 16px; }
.film-frame { position: relative; margin: 0 16px 16px 0; }
.film-frame::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); pointer-events: none; }
.film-frame video { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--rule); }
figure.film figcaption { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Search page */
.page-head { padding-top: calc(var(--head-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 18ch; margin-bottom: 18px; letter-spacing: -0.018em; }
.idx { padding-bottom: clamp(48px, 7vw, 96px); }
.idx-hint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding: 18px 22px; margin-bottom: 18px; border: 1px solid var(--rule); border-left: 2px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.idx-hint-title { font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.idx-hint ol { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; padding: 0; list-style: none; counter-reset: hint; }
.idx-hint li { counter-increment: hint; display: flex; align-items: baseline; gap: 10px; font-size: 16px; color: var(--fg); }
.idx-hint li::before { content: counter(hint); font-family: var(--display); font-size: 1.15rem; color: var(--accent); }
.idx-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.idx-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 22px; font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.idx-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.idx-frame { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); min-height: 640px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.idx-frame.solo { border-top: 1px solid var(--rule); border-radius: var(--radius); }
.idx-frame iframe { display: block; width: 100%; min-width: 320px; border: 0; background: #fff; position: relative; z-index: 1; }
.idx-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #564d41; }
.idx-fallback { border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); }
.idx-fallback h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.idx-fallback p { color: var(--muted); margin-bottom: 30px; max-width: 46ch; }
.help-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(40px, 5vw, 64px); }
.help h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.help p { color: var(--muted); }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.disclaimer { padding-block: 28px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 90ch; }
.notfound { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 20px; padding-top: calc(var(--head-h) + 60px); padding-bottom: 80px; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .head-phone { display: none; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--head-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--ink); color: var(--on-ink); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { font-family: var(--display); font-size: 1.9rem; font-weight: 400; letter-spacing: -0.01em; text-transform: none; padding-block: 18px; border-bottom: 1px solid var(--rule); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--gold-soft); }
  .nav-extra { display: block; margin-top: 24px; }
  .nav .nav-extra a { font-family: var(--label); font-size: 14.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--gold); border-radius: var(--radius); text-align: center; padding: 16px; display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-head::before { opacity: 1; background: var(--ink); }
  .paths, .cards { grid-template-columns: 1fr; }
  .path { grid-template-rows: none; }
  .path + .path { border-left: 0; border-top: 1px solid var(--rule); }
  .method-grid, .brief-grid, .calc-head, .calc-body, .alerts-inner, .split, .split.photo-first { grid-template-columns: 1fr; }
  .split .frame { width: min(100% - 16px, 320px); }
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "rest"; padding-top: calc(var(--head-h) + 30px); padding-inline: var(--gutter); }
  .hero h1 { font-size: clamp(2.9rem, 12.5vw, 4.8rem); margin-bottom: 0; }
  .hero-title .eyebrow { margin-bottom: 16px; }
  .hero-title .coords { display: none; }
  .hero-photo { width: min(74%, 320px); margin: 28px 16px 44px 0; }
  .area { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .area-go { opacity: 1; transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cards { max-width: 560px; }
}
@media (max-width: 640px) {
  :root { --head-h: 64px; }
  body { font-size: 16.5px; }
  .brand-name { font-size: 17.5px; }
  .brand-tag { font-size: 9.5px; letter-spacing: 0.18em; }
  .langs { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .facts span { margin-top: 0; }
  .alerts-form, .brief-form { grid-template-columns: 1fr; }
  .contact-list { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; }
  .idx-tabs button { padding: 14px 16px; flex: 1; }
  .help-actions .btn { width: 100%; }
}
@media (min-width: 921px) {
  .langs-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
