/* Global Dev Consulting — site styles
   Layout: left-aligned, asymmetric grid. One loud element (the cropped globe plate in the hero);
   everything after it stays quiet: rules encode lists, the accent marks places and deliverables. */

:root {
  --ink: #0E3A4A;          /* petrol: headings, primary surfaces */
  --ink-deep: #082A37;     /* footer */
  --body: #34505A;         /* running text */
  --muted: #52707A;        /* secondary text */
  --line: #C9D8DD;         /* rules, borders */
  --line-strong: #9FB8C0;  /* form borders */
  --mist: #EAF0F2;         /* tinted ground */
  --mist-muted: #A7BEC6;   /* secondary text on petrol */
  --paper: #FFFFFF;
  --signal: #F2B134;       /* marigold: markers, focus, primary button */
  --signal-deep: #D99A1E;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --max: 1200px;
  --band-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 6px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[id] { scroll-margin-top: 5.5rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--band-y); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 40; padding: .75rem 1rem; background: var(--ink); color: var(--paper); font: 500 1rem var(--font-display); border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.25rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 500 1rem/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button-primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.button-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.button-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--paper); }
.button:disabled { opacity: .6; cursor: default; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-wrap { position: relative; display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .375rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--signal); }
.site-nav .nav-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: .5rem .875rem; background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); font: 500 1rem var(--font-display); cursor: pointer; }
@media (max-width: 899px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 1.25rem max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .875rem 0; border-bottom: 0; border-top: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav .nav-cta { display: inline-flex; margin-top: 1rem; align-self: flex-start; padding: .75rem 1.25rem; border: 1.5px solid var(--signal); }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero-wrap { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 5rem) 0; }
.hero-copy { display: grid; gap: 1.5rem; max-width: 40rem; }
.hero h1 { font-size: clamp(2.25rem, 1.25rem + 4vw, 4.75rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em; }
.hero-lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-family: var(--font-display); font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 32rem; }
.hero-visual { position: relative; height: 74vw; max-height: 430px; overflow: hidden; }
.hero-globe { position: absolute; width: 126%; left: 1%; top: -4%; }
@media (min-width: 640px) and (max-width: 1099px) {
  /* Tablet: copy on top, the globe rises behind the clock strip with its top half visible */
  .hero-visual { height: 56vw; max-height: 560px; }
  .hero-globe { width: 96%; left: 2%; top: 0; }
}
@media (min-width: 1100px) {
  .hero-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
  /* The column only reserves height; the globe itself is placed against the viewport edge and clipped by .hero */
  .hero-visual { position: static; height: auto; min-height: 500px; max-height: none; overflow: visible; }
  .hero-globe { --globe: clamp(560px, 48vw, 900px); width: var(--globe); left: auto; right: calc(-0.08 * var(--globe)); top: 50%; transform: translateY(-50%); }
}

.globe { display: block; height: auto; overflow: visible; }
.g-grid { opacity: .5; }
.g-grid > * { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i) * 50ms + .1s); }
.g-routes > * { fill: none; stroke: var(--signal-deep); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s ease-out forwards; animation-delay: calc(var(--i) * 140ms + 1.3s); }
.city { opacity: 0; animation: appear .6s ease-out forwards; animation-delay: calc(var(--i) * 100ms + 1.6s); }
.city .ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: .7; }
.city .dot { fill: var(--signal); stroke: var(--ink); stroke-width: 1.75; }
.city text { font-family: var(--font-display); font-weight: 500; font-size: 20px; fill: var(--ink); paint-order: stroke; stroke: var(--mist); stroke-width: 6px; stroke-linejoin: round; }
@media (max-width: 899px) { .city text { font-size: 26px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Clock strip ---------- */
.clocks { background: var(--ink); color: var(--paper); }
.clocks-wrap { display: grid; gap: .875rem; padding-block: 1.25rem; }
.clocks-lead { display: flex; align-items: center; gap: .625rem; font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--mist); }
.clocks-lead::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s ease-in-out infinite; }
.clock-list { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.clock-list::-webkit-scrollbar { display: none; }
.clock-list li { flex: 0 0 auto; display: grid; gap: .125rem; }
.clock-city { font-family: var(--font-display); font-weight: 500; font-size: .8125rem; line-height: 1.2; color: var(--mist-muted); white-space: nowrap; }
.clock-time { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--paper); }
@media (min-width: 900px) {
  .clocks-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; align-items: center; padding-block: 1.375rem; }
  .clock-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1rem; overflow: visible; padding: 0; }
  .clock-list li { min-width: 0; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.section-head p { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); max-width: 36rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: end; } }

/* ---------- Intro ---------- */
.intro-wrap { display: grid; gap: 2.5rem; }
.intro-lede { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); line-height: 1.4; color: var(--ink); max-width: 30em; text-wrap: pretty; }
.intro-facts { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
@media (min-width: 900px) { .intro-wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: end; } }

/* ---------- Services ---------- */
.service-cols { display: none; }
.service-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.service { display: grid; gap: .75rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); margin: 0; }
.service dt { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.service dd { margin: 0; }
.service-desc { font-size: 1.0625rem; line-height: 1.55; }
.service-get { font-family: var(--font-display); font-size: 1rem; line-height: 1.5; color: var(--ink); padding-left: .875rem; border-left: 2px solid var(--signal); }
@media (min-width: 900px) {
  .service-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 2.5rem; padding-block: .75rem; font-family: var(--font-display); font-weight: 500; font-size: .875rem; color: var(--muted); }
  .service { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 2.5rem; padding-block: 1.75rem; align-items: start; }
}

/* ---------- Approach ---------- */
.approach { background: var(--ink); color: var(--mist); }
.approach h2, .approach h3 { color: var(--paper); }
.approach .section-head p { color: var(--mist-muted); }
.steps { list-style: none; margin: 0; padding: 0 0 0 2.5rem; counter-reset: step; position: relative; display: grid; gap: 2.25rem; }
.steps::before { content: ""; position: absolute; left: 12px; top: 12px; bottom: 12px; border-left: 1px solid rgba(255, 255, 255, .28); }
.steps li { counter-increment: step; position: relative; display: grid; gap: .375rem; align-content: start; }
.steps li::before { content: counter(step); position: absolute; left: -2.5rem; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: var(--ink); font: 500 .8125rem/24px var(--font-display); text-align: center; }
.step-when { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--mist-muted); }
.steps h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.steps p { font-size: 1.0625rem; line-height: 1.55; color: var(--line); max-width: 30rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding: 2.75rem 0 0; }
  .steps::before { left: 12px; right: 12px; top: 12px; bottom: auto; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
  .steps li::before { left: 0; top: -2.75rem; }
}

/* ---------- Results ---------- */
.results { background: var(--mist); }
.case-grid { display: grid; gap: 1.25rem; }
.case { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.case-route { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); }
.case-route::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); border: 1.5px solid var(--ink); flex: none; }
.route-arrow { color: var(--muted); }
.case-sector { font-family: var(--font-display); font-size: .9375rem; color: var(--muted); }
.case h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-top: .25rem; }
.case-story { font-size: 1.0625rem; line-height: 1.55; }
.case-stat { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.quote { margin: clamp(3rem, 6vw, 4.5rem) 0 0; max-width: 46rem; }
.quote blockquote { margin: 0; font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: 1rem; font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--muted); }

/* ---------- About ---------- */
.about-wrap { display: grid; gap: 3rem; }
.about-copy { display: grid; gap: 1.25rem; align-content: start; }
.about-copy h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; max-width: 15ch; }
.about-copy p { max-width: 34rem; }
.team { list-style: none; margin: 0; padding: 0; display: grid; }
.team li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.125rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.team li:last-child { border-bottom: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: .02em; }
.team-name { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; color: var(--ink); }
.team-role { display: block; font-family: var(--font-display); font-size: .9375rem; color: var(--muted); margin-bottom: .25rem; }
.team-bio { font-size: 1rem; line-height: 1.5; }
@media (min-width: 900px) { .about-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }

/* ---------- Field notes ---------- */
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-list li { border-bottom: 1px solid var(--line); }
.note-link { display: grid; gap: .25rem; padding-block: 1.125rem; color: inherit; text-decoration: none; }
.note-link time { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-link h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: text-decoration-color .15s; }
.note-link:hover h3 { text-decoration-color: var(--signal); }
.note-read { font-family: var(--font-display); font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) { .note-link { grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 2rem; align-items: baseline; padding-block: 1.375rem; } }

/* ---------- Contact ---------- */
.contact { background: var(--mist); }
.contact-wrap { display: grid; gap: 2.5rem; }
.contact-copy { display: grid; gap: 1.25rem; align-content: start; }
.contact-copy h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.contact-copy > p { max-width: 30rem; }
.contact-details { margin: .5rem 0 0; display: grid; gap: .875rem; }
.contact-details div { display: grid; gap: .125rem; }
.contact-details dt { font-family: var(--font-display); font-weight: 500; font-size: .875rem; color: var(--muted); }
.contact-details dd { margin: 0; font-family: var(--font-display); font-size: 1.0625rem; color: var(--ink); }
.contact-form { display: grid; gap: 1.125rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: .375rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem .875rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.field textarea { resize: vertical; min-height: 7rem; }
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-family: var(--font-display); font-size: .9375rem; color: var(--ink); }
.form-status:empty { display: none; }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-full, .form-foot { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .contact-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--mist); padding-block: 3.5rem 2.5rem; }
.footer-wrap { display: grid; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer-brand p { font-size: 1.0625rem; color: var(--mist-muted); max-width: 22rem; }
.footer-nav { display: grid; gap: .625rem; align-content: start; justify-items: start; font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.footer-brand .brand { color: var(--paper); }
.footer-meta { display: grid; gap: .625rem; align-content: start; font-family: var(--font-display); font-size: .9375rem; color: var(--mist-muted); }
.footer-legal { display: flex; gap: 1.25rem; }
@media (min-width: 900px) { .footer-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 3rem; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-grid > *, .g-routes > *, .city, .clocks-lead::before { animation: none; }
  .g-grid > *, .g-routes > * { stroke-dashoffset: 0; }
  .city { opacity: 1; }
  .button, .note-link h3 { transition: none; }
}
