/* DE Advisory. Native CSS, no framework.
   Shape system: buttons = full pill, images/panels = 16px, inputs = 10px. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #e9eff1;
  --text: #0f1c26;
  --text-2: #475763;
  --line: #d6dfe3;
  --accent: #0b6f78;          /* deep teal from the logo turquoise, AA on white */
  --accent-ink: #f4fbfc;      /* text on accent */
  --accent-soft: #d3f4f6;
  --brand: #27dde8;           /* logo turquoise, decorative only */
  --shadow: 0 18px 50px -24px rgb(15 50 60 / .28);
  --scrim: linear-gradient(180deg, rgb(8 24 32 / .55), rgb(8 24 32 / .82));
  --r-panel: 16px;
  --r-input: 10px;
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a131a;
    --surface: #101c25;
    --surface-2: #15242f;
    --text: #e6edf1;
    --text-2: #a3b3bd;
    --line: #22343f;
    --accent: #3fd6e0;
    --accent-ink: #06232a;
    --accent-soft: #10323a;
    --shadow: 0 18px 50px -24px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--text-2); padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 550; }
.nav-links .btn { margin-left: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links a:not(.btn) { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
  .site-header.is-open .nav-links { display: flex; }
  .site-header.is-open .i-menu { display: none; }
  .site-header.is-open .i-close { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  font: inherit; font-size: .98rem; font-weight: 550; text-decoration: none; cursor: pointer;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-light { background: #f4fbfc; color: #0b2a31; }
.btn-light:hover { background: #ffffff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; color: var(--accent); text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .3s var(--ease); }

/* ---------- type helpers ---------- */
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.lead { color: var(--text-2); font-size: 1.125rem; max-width: 60ch; }
.muted { color: var(--text-2); }

section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 1.4rem; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-panel); aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 60% center; width: 100%; box-shadow: var(--shadow); }
.hero-media::before {
  content: ""; position: absolute; inset: auto auto -18px -18px; width: 46%; height: 46%;
  border-radius: var(--r-panel); background: var(--brand); opacity: .9; z-index: -1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-media::before { inset: auto auto -12px -12px; }
}

/* ---------- benefits strip ---------- */
.benefits { padding: 0 0 clamp(56px, 7vw, 96px); }
.benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.benefit { display: flex; align-items: center; gap: 14px; padding: 28px 24px 0 0; font-size: 1.15rem; font-weight: 550; }
.benefit + .benefit { padding-left: 24px; border-left: 1px solid var(--line); }
.benefit .icon { width: 30px; height: 30px; color: var(--accent); }
@media (max-width: 767px) {
  .benefit-row { grid-template-columns: 1fr; }
  .benefit { padding: 20px 0 0; }
  .benefit + .benefit { padding-left: 0; border-left: 0; }
}

/* ---------- about teaser (overlapping images) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stack-media { position: relative; padding: 0 12% 14% 0; }
.stack-media img { border-radius: var(--r-panel); width: 100%; object-fit: cover; }
.stack-media .a { aspect-ratio: 4 / 3; }
.stack-media .b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.about-grid .lead { margin: 1.3rem 0 2rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- services bento ---------- */
.bento-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile { position: relative; border-radius: var(--r-panel); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tile h3 { font-size: 1.6rem; }
.tile p { color: var(--text-2); max-width: 52ch; }
.tile .icon { width: 34px; height: 34px; }
.tile-photo { grid-row: span 2; min-height: 520px; justify-content: flex-end; color: #f2f7f9; isolation: isolate; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1; }
.tile-photo:hover img { transform: scale(1.03); }
.tile-photo p { color: rgb(242 247 249 / .86); }
.tile-photo .icon { color: var(--brand); }
.tile-photo .link-arrow { color: #f2f7f9; }
.tile-tint { background: var(--accent-soft); }
.tile-tint .icon, .tile-plain .icon { color: var(--accent); }
.tile-plain { background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-photo { grid-row: auto; min-height: 440px; }
}

/* ---------- why us (sticky side heading) ---------- */
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-side { position: sticky; top: 112px; }
.why-side .lead { margin-top: 1.2rem; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.why-item { padding-top: 22px; border-top: 1px solid var(--line); }
.why-item .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.why-item h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.why-item p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-side { position: static; }
}
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- closing band ---------- */
.band { padding: 0 0 clamp(64px, 9vw, 120px); }
.band-inner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-panel);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); color: #f2f7f9;
  display: grid; grid-template-columns: 1.4fr auto; align-items: end; gap: 32px;
}
.band-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(7 30 38 / .92) 30%, rgb(7 30 38 / .55)); }
.band-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.band-inner p { margin-top: 1rem; color: rgb(242 247 249 / .85); max-width: 46ch; font-size: 1.1rem; }
@media (max-width: 767px) { .band-inner { grid-template-columns: 1fr; align-items: start; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); letter-spacing: -0.035em; max-width: 18ch; }
.page-head .lead { margin-top: 1.3rem; }

/* ---------- about page ---------- */
.about-story { padding-top: 0; }
.wide-photo { border-radius: var(--r-panel); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px); }
.story-grid p { font-size: 1.2rem; line-height: 1.7; color: var(--text-2); }
.story-grid p strong { color: var(--text); font-weight: 550; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .wide-photo { aspect-ratio: 16 / 10; } }

.values { background: var(--surface); border-block: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.motto { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 550; }
.motto span { color: var(--accent); }
.vm { display: grid; gap: 32px; }
.vm div { padding-left: 22px; border-left: 3px solid var(--brand); }
.vm h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.vm p { color: var(--text-2); }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- services page ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px 40px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc .icon { width: 44px; height: 44px; color: var(--accent); }
.svc h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc p { color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 14px; } }
.svc-photo { padding: 0 0 clamp(64px, 9vw, 120px); }
.photo-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.photo-pair img { border-radius: var(--r-panel); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.photo-pair img + img { aspect-ratio: auto; }
@media (max-width: 767px) { .photo-pair { grid-template-columns: 1fr; } .photo-pair img + img { aspect-ratio: 16 / 10; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.ci { display: flex; gap: 16px; }
.ci .icon { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.ci h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .2rem; }
.ci p, .ci a { color: var(--text-2); }
.ci a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.ci a:hover { color: var(--accent); }
.contact-photo { border-radius: var(--r-panel); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-top: 8px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 550; }
.field label .opt { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-input); padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-2) 85%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field .err { font-size: .85rem; color: #b42318; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.field.invalid .err { display: block; }
@media (prefers-color-scheme: dark) { .field .err { color: #ff8a80; } .field.invalid input, .field.invalid textarea { border-color: #ff8a80; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: .95rem; display: none; align-items: center; gap: 8px; }
.form-status.show { display: inline-flex; }
.form-status.ok { color: var(--accent); }
.form-status.bad { color: #b42318; }
@media (prefers-color-scheme: dark) { .form-status.bad { color: #ff8a80; } }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.toc { position: sticky; top: 112px; font-size: .93rem; }
.toc p { font-weight: 600; margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; color: var(--text-2); padding: .35rem 0; }
.toc a:hover { color: var(--accent); }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.45rem; margin: 2.6rem 0 .9rem; scroll-margin-top: 100px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.2rem; margin: .8rem 0 1rem; display: grid; gap: .35rem; }
.legal .intro { font-size: 1.2rem; color: var(--text); font-weight: 550; margin-bottom: 1rem; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.foot-grid img { height: 48px; width: auto; margin-bottom: 16px; }
.foot-grid h2 { font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid address { font-style: normal; color: var(--text-2); display: grid; gap: .5rem; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-2); }
.foot-base a { color: var(--text-2); }
@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 60dvh; display: grid; align-content: center; gap: 1.2rem; }

/* ---------- motion (reveal + hero entry), gated by reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-media { animation: rise 1.1s var(--ease) .12s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

.nw { white-space: nowrap; }
