/* GeoSurv design system. Tokens first, then base, layout, components. */
:root {
  /* Brand palette taken from the GeoSurv company profile logo */
  --ink: #1B3E1C;       /* dark green: dark sections, footer */
  --deep: #156734;      /* brand green */
  --steel: #2E6B45;     /* secondary text on light */
  --accent: #F26721;    /* brand orange: buttons, markers */
  --accent-dark: #B3430A; /* orange text on light backgrounds (AA) */
  --on-accent: #0F2412;
  --paper: #EDF6EF;     /* mint tint */
  --white: #fff;
  --line: #CBDCCF;
  --text: #17281C;
  --muted: #45584B;
  --radius: 4px;
  --wrap: 1200px;
  --font: "Helvetica Neue", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 1rem/1 var(--font); border: 2px solid transparent; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 30px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #F78A4D; color: var(--on-accent); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--deep); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.more { font-weight: 650; text-decoration: none; color: var(--accent-dark); }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.25rem; letter-spacing: .12em; }
.brand__text small { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }
.brand img { height: 46px; width: auto; }
.brand--light img { height: 52px; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.header__row.wrap { max-width: 1320px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .92rem; border-radius: var(--radius); }
.nav li > a:hover { color: var(--accent-dark); background: var(--paper); }
.nav__cta { white-space: nowrap; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { width: 28px; height: 44px; margin-left: -8px; border: 0; background: none; cursor: pointer; position: relative; }
.sub-toggle::after { content: ""; position: absolute; left: 9px; top: 18px; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .18s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 21px; }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 320px; flex-direction: column; align-items: stretch !important; gap: 0 !important; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 8px; box-shadow: 0 12px 28px rgba(18,46,22,.12); }
.sub a { display: flex !important; width: 100%; }
.nav .has-sub.is-open > .sub { display: flex; }
@media (hover: hover) and (min-width: 1181px) { .nav .has-sub:hover > .sub { display: flex; } }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, opacity .2s; }
.nav-toggle i { top: 23px; } .nav-toggle i::before { left: 0; top: -7px; } .nav-toggle i::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li > a { min-height: 52px; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 52px; height: 52px; margin: 0; border-bottom: 1px solid var(--line); }
  .sub-toggle::after { left: 21px; top: 22px; }
  .sub-toggle[aria-expanded="true"]::after { top: 25px; }
  .nav .sub { position: static; width: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .nav__cta { margin-top: 16px; min-height: 52px; }
}

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scaleX(-1); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; mix-blend-mode: screen; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,46,22,.94) 0%, rgba(18,46,22,.78) 45%, rgba(18,46,22,.18) 100%); }
.hero__in { position: relative; z-index: 1; padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 12vw, 150px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__in { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #DCE6EE; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.kicker { font: 650 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-dark); margin: 0 0 14px; }
.kicker--light { color: #F2A36E; }
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 20ch; }
.page-hero .wrap { padding-top: 40px; padding-bottom: 64px; }
.page-hero--short .wrap { padding-bottom: 56px; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero__img { aspect-ratio: 8/5; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.page-hero__img .art, .svc__img .art, .proj__img .art, .page-hero__img img, .svc__img img, .proj__img img { width: 100%; height: 100%; object-fit: cover; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; margin-bottom: 28px; color: #B9C8D4; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: #DCE6EE; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; gap: 32px; } .hero::after { background: rgba(18,46,22,.82); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head p:last-child { color: var(--muted); margin-bottom: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { max-width: 62ch; }
.motto { font-weight: 650; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 16px; }
.who { color: var(--muted); max-width: 40ch; }
.grid { display: grid; gap: 24px; }
.grid--1 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(18,46,22,.1); border-color: #9DBBA5; transform: translateY(-2px); }
.svc__img, .proj__img { display: block; aspect-ratio: 8/5; background: var(--ink); overflow: hidden; }
.svc__body, .proj__body { padding: 22px 24px 26px; }
.svc__body h3 a { color: var(--ink); text-decoration: none; }
.svc__body p, .proj__body p { color: var(--muted); font-size: .98rem; }
.proj__body h3 { font-size: 1.12rem; }
.proj__body dl { margin: 0; }
.proj__meta { font-size: .85rem; color: var(--muted); margin: 0 0 8px; font-weight: 600; letter-spacing: .02em; } .proj__body dd { margin: 0; color: var(--steel); font-size: .92rem; font-weight: 550; }
.block { border-top: 3px solid var(--ink); padding: 18px 0 8px; }
.block p { color: var(--muted); }
.why > div { border-top: 1px solid var(--line); padding-top: 20px; }
.num { display: block; font: 600 .95rem var(--mono); color: var(--accent-dark); margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; }
.steps li { border-top: 3px solid var(--accent); padding-top: 16px; }
.steps p { color: var(--muted); font-size: .96rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.ticks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: rotate(-45deg); }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 28px; }
.person .ticks li { font-size: .98rem; }
.avatar { width: 88px; height: 88px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center; font: 650 1.6rem var(--font); letter-spacing: .06em; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } }
.tech { background: var(--ink); color: #DCE6EE; }
.tech h2 { color: #fff; }
.cap-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.cap-list strong { color: #fff; } .cap-list span { color: #B9C8D4; font-size: .98rem; }
.partner-logo { margin-top: 20px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.partner-logo span { display: block; font-weight: 650; color: var(--ink); }
.note { color: var(--muted); font-size: .95rem; margin-top: 32px; }
.verify { font: 700 .65rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; background: #FFE9A8; color: #5A4300; padding: 3px 6px; border-radius: 3px; vertical-align: middle; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
[hidden] { display: none !important; }

/* CTA band */
.cta-band { background: var(--deep); color: #fff; position: relative; border-top: 4px solid var(--accent); }
.cta-band__in { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-bottom: .3em; }
.cta-band p { color: #DCE6EE; max-width: 56ch; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #B9C8D4; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__h { font: 650 .8rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a { color: #DCE6EE; text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { color: #F2A36E; text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer__tag { margin-top: 20px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; padding-bottom: 28px; font-size: .875rem; }
.footer__legal p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Contact form */
.contact { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__info { background: var(--paper); padding: 28px; border-radius: var(--radius); border-top: 3px solid var(--accent); }
.contact__info address { font-style: normal; margin-bottom: 1em; }
.field { margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #8C98A3; border-radius: var(--radius); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: #B3261E; }
.err { color: #B3261E; font-size: .9rem; line-height: 1.35; margin: 4px 0 0; min-height: 1.35em; } /* space is reserved so showing or clearing an error never shifts the layout (a shift between mousedown and mouseup would swallow the click) */
.req-note { color: var(--muted); font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 550; border-left: 4px solid; }
.status--ok { background: #E6F4EA; color: #12512B; border-color: #1E8E3E; }
.status--bad { background: #FDECEA; color: #7A1A14; border-color: #B3261E; }
.status a { color: inherit; }

/* Motion: restrained, and disabled on request */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
@media print { .site-header, .cta-band, .nav-toggle { display: none; } }

/* Brand additions */
.svc__img { position: relative; }
.grid--3 > .svc:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.grid--3 > .svc:last-child:nth-child(3n+1) .svc__img { aspect-ratio: auto; min-height: 260px; }
.grid--3 > .svc:last-child:nth-child(3n+1) .svc__body { align-self: center; padding: 32px; }
@media (max-width: 1000px) { .grid--3 > .svc:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 760px) { .grid--3 > .svc:last-child:nth-child(odd), .grid--3 > .svc:last-child:nth-child(3n+1) { grid-template-columns: 1fr; } .grid--3 > .svc:last-child:nth-child(3n+1) .svc__img { aspect-ratio: 8/5; min-height: 0; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 4px solid var(--accent); background: var(--ink); color: #fff; }
.facts div { padding: 24px; border-left: 1px solid rgba(255,255,255,.15); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 1.15rem; line-height: 1.25; }
.facts span { color: #CFE0D3; font-size: .95rem; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); } .facts div:first-child { border-top: 0; } }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); gap: 24px; }
.figs figure { margin: 0; border: 1px solid var(--line); background: #fff; padding: 10px; border-radius: var(--radius); }
.figs figcaption { font-size: .9rem; color: var(--muted); padding: 10px 4px 2px; }
.figs img { width: 100%; height: auto; }
.proj--list { display: grid; grid-template-columns: 1fr; }
.proj .proj__img img { aspect-ratio: 8/5; }
.photo { width: 100%; height: auto; border-radius: var(--radius); }
.photo-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.portrait { width: 100%; max-width: 220px; height: auto; border-radius: var(--radius); }
.person { grid-template-columns: 220px 1fr; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } }
.partner-logo { margin-top: 20px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { width: 220px; height: auto; }
.mission { background: var(--ink); color: #fff; }
.mission h2 { color: #fff; }
.mission blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; max-width: 60ch; }
.mission .motto { color: #F8A56F; border-color: var(--accent); }
.hero__badges { margin-top: 28px; font-size: .95rem; color: #CFE0D3; }

/* Telle Developers page */
.lead-strong { font-size: 1.25rem; font-weight: 600; color: var(--ink); max-width: 36ch; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption, .homes figcaption { font-size: .9rem; color: var(--muted); padding: 10px 2px 0; }
.homes { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.homes figure { margin: 0; padding: 0; } .homes figcaption { padding: 10px 14px 14px; }
.homes .plan img { background: #fff; padding: 12px; }
@media (max-width: 760px) { .homes { grid-template-columns: 1fr; } }
.video { width: 100%; max-width: 960px; height: auto; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); display: block; }
.page-hero__img--banner { aspect-ratio: 1080 / 474; background: #fff; } .page-hero__img--banner img { object-fit: contain; }
