/* Layout: split hero (copy on beige, landmark in an arch), then calm full-width bands; one navy panel at the end. */
:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;      /* white: header, strips, cards */
  --blue: #DCE9F3;
  --blue-deep: #A3C6E1;
  --btn: #3F7CA8;          /* flyer blue, deepened so white text stays readable */
  --btn-hover: #33698F;
  --navy: #17283A;
  --text: #17283A;
  --muted: #56626F;
  --accent: #6FA3C7;
  --accent-text: #3A759F;
  --accent-soft: #A3C6E1;
  --line: #E8DFCF;
  --on-navy: #FAF6EF;
  --on-navy-muted: #C3D2DF;
  --font-head: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow--light { color: var(--accent-soft); }
.place { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--btn); color: #FFFFFF; box-shadow: 0 8px 22px rgba(63, 124, 168, .28); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--primary .icon { color: #FFFFFF; }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: rgba(23, 40, 58, .06); }
.btn--gold { background: var(--accent-soft); color: var(--navy); }
.btn--gold:hover { background: #B9D5EA; }
.btn--small { min-height: 44px; padding: 0 1.15em; font-size: .95rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--navy); }
.brand-star { width: auto; height: 62px; }
.brand-text { display: flex; flex-direction: column; gap: 7px; width: 196px; padding-left: 13px; border-left: 1px solid var(--accent); }
.brand-name { width: 100%; height: auto; }
.brand-tag { display: flex; align-items: center; justify-content: space-between; font: 600 .7rem/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.brand-tag span:last-child { margin-right: -.15em; }
.brand-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 12px 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--navy); }
.facts dd { font-size: .9rem; line-height: 1.4; color: var(--muted); margin-top: 8px; }
.hero-art { position: relative; min-width: 0; }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--blue); box-shadow: 0 30px 60px -30px rgba(23, 40, 58, .35); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-star { position: absolute; left: -34px; bottom: 56px; width: 104px; height: 104px; color: var(--accent); background: var(--bg); border-radius: 50%; padding: 12px; animation: turn 80s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero-art .place { margin-top: 14px; text-align: right; }

/* Trust line */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-block: 24px; }
.trust-label { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex: none; }
.trust-list { display: flex; flex-wrap: wrap; gap: 6px 30px; font-family: var(--font-head); font-size: 1.18rem; color: var(--navy); }
.trust-list li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 30px; vertical-align: middle; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--white { background: var(--surface); }
.band { background: var(--blue); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 43em; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head p:last-child { color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.service { display: flex; flex-direction: column; gap: 14px; padding: 34px 40px 36px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.service:nth-child(even) { padding: 34px 0 36px 40px; border-left: 1px solid var(--line); }
.service h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; }
.service p { color: var(--muted); }
.service ul { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; margin-top: 4px; }
.service li { display: flex; gap: 12px; align-items: baseline; }
.service li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--accent); transform: translateY(-4px); }

/* Approach */
.approach-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.approach-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.approach-copy > p:not(.eyebrow) { max-width: 36em; }
.risks { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid rgba(23, 40, 58, .22); }
.risks li { padding: 14px 0; border-bottom: 1px solid rgba(23, 40, 58, .22); font-size: 1rem; }
.approach-art { min-width: 0; }
.approach-art img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 40% 40%; border-radius: var(--radius) var(--radius) 999px 999px; }
.approach-art .place { margin-top: 14px; color: var(--navy); opacity: .75; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 6vw, 72px); counter-reset: none; }
.step { background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-n { font-family: var(--font-head); font-size: 1rem; width: 38px; height: 38px; border: 1px solid var(--accent); color: var(--accent-text); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; margin-top: 6px; }
.step p { color: var(--muted); font-size: .98rem; }

/* Case studies */
.case { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case-figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case-tag { align-self: flex-start; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--blue); padding: 6px 12px; border-radius: 999px; }
.case-num { font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--navy); margin-top: 8px; }
.case-cap { font-size: .95rem; color: var(--muted); max-width: 20em; }
.case-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.case-body h3 { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.7rem); max-width: 26em; }
.sao { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sao dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--accent-soft); }
.sao dd { font-size: .96rem; line-height: 1.6; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; min-width: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 999px 999px var(--radius) var(--radius); }
.about-photo::after { content: ""; position: absolute; inset: -14px -14px 28px 28px; border: 1px solid var(--accent-soft); border-radius: 999px 999px var(--radius) var(--radius); z-index: -1; }
.about-photo { z-index: 0; }
.about-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about-copy > p { max-width: 37em; }
.about-copy > p:not(.eyebrow):not(.chips-label) { color: var(--muted); }
.about-copy .about-aside { padding-left: 18px; border-left: 2px solid var(--accent-soft); font-style: italic; }
.chips-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .92rem; padding: 7px 14px; border-radius: 999px; background: var(--blue); color: var(--navy); }

/* Contact */
.contact-section { padding-top: 0; }
.contact { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-radius: 28px; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact h2 { max-width: 15em; }
.contact > p:not(.eyebrow) { color: var(--on-navy-muted); max-width: 34em; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 10px; }
.contact-number { font-size: .95rem; color: var(--on-navy-muted); }
.contact-number span { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--on-navy); user-select: all; letter-spacing: .02em; }
.contact .contact-places { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; padding-top: 20px; border-top: 1px solid rgba(250, 246, 239, .18); align-self: stretch; max-width: none; }
.contact-star { position: absolute; right: -70px; top: -70px; width: 340px; height: 340px; color: var(--accent-soft); opacity: .32; animation: turn 120s linear infinite; }
.contact > *:not(.contact-star) { position: relative; }

/* Footer */
.site-footer { padding-block: 34px 44px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: .9rem; color: var(--muted); }

.footer-row a { padding: 12px 0; }

/* Entrances: visible by default; JS hides only what is still below the fold */
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }

/* Tablet and phone */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -24px rgba(23, 40, 58, .3);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 18px; min-height: 50px; }
  .hero-grid, .approach-top, .about { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 460px; width: 100%; margin-inline: auto; }
  .hero-star { left: -8px; width: 84px; height: 84px; }
  .approach-art, .about-photo { max-width: 440px; width: 100%; margin-inline: auto; }
  .about-photo::after { inset: -10px -10px 20px 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .sao { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(even) { padding: 28px 0 30px; border-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-star { height: 54px; }
  .brand-text { width: 176px; gap: 6px; padding-left: 11px; }
  .brand-tag { font-size: .64rem; letter-spacing: .13em; }
  .header-row { min-height: 78px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .facts > div { display: flex; align-items: baseline; gap: 14px; }
  .facts dt { min-width: 2.6em; }
  .facts dd { margin-top: 0; }
  .trust-list { font-size: 1.05rem; gap: 6px 18px; }
  .trust-list li + li::before { margin-right: 18px; }
  .contact-actions .btn { width: 100%; }
  .contact-actions { align-self: stretch; }
  .contact-star { width: 220px; height: 220px; right: -60px; top: -60px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}
