@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;450;500;550;600;650;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --paper: #f9fafa;
  --white: #fff;
  --ink: #17262c;
  --muted: #46565d;
  --blue: #255765;
  --line: #d6dfe1;
  --dark: #192f37;
  --gutter: clamp(1.4rem, 5vw, 6rem);
  --measure: 88rem;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-family: "Geist", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #378092; outline-offset: 5px; }
[id] { scroll-margin-top: 1.35rem; }
::selection { background: #c8e2e8; color: var(--ink); }

.shell { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 10;
  transform: translateY(-200%);
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid var(--blue);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; font-size: 1.82rem; font-weight: 650; line-height: .86; letter-spacing: -.075em; }
.brand-subtitle { display: block; margin: .36rem 0 0 .1rem; font: 500 .57rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.brand-symbol {
  width: 2.05rem;
  height: 2.05rem;
  display: inline-block;
  flex: none;
  background: linear-gradient(150deg, #74929b 8%, #33515c 46%, #16333d 87%);
  clip-path: polygon(1% 94%, 43% 7%, 55% 7%, 17% 94%, 30% 94%, 38% 76%, 70% 76%, 78% 94%, 96% 94%, 61% 19%, 53% 39%, 64% 63%, 44% 63%, 57% 34%, 55% 7%, 43% 7%, 1% 94%);
}
.navigation { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3.2rem); font-size: .91rem; font-weight: 550; }
.navigation a:not(.header-contact):hover { color: var(--blue); text-decoration: underline; text-underline-offset: .4rem; }
.header-contact { display: inline-flex; align-items: center; gap: .8rem; min-height: 2.7rem; padding: .55rem .9rem; border: 1px solid #b7c6cb; }
.header-contact:hover { background: #eaf2f4; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 51fr 49fr;
  min-height: clamp(36rem, 75svh, 44rem);
  isolation: isolate;
  background: #edf1f2;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3.8rem, 7vw, 7.5rem) clamp(2rem, 4vw, 5rem) clamp(3.8rem, 6vw, 6.5rem) max(var(--gutter), (100vw - var(--measure)) / 2);
  background:
    linear-gradient(120deg, rgba(255,255,255,.88), rgba(255,255,255,0) 74%),
    repeating-linear-gradient(0deg, rgba(54,90,103,.035) 0 1px, transparent 1px 3px),
    linear-gradient(140deg, #f0f3f4 0%, #edf1f2 54%, #d7e2e6 100%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .67rem;
  color: var(--blue);
  font: 500 clamp(.66rem, 1vw, .75rem)/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow > span { width: .44rem; height: .44rem; background: #567c86; flex: none; }
h1, h2 { font-weight: 550; letter-spacing: -.071em; text-wrap: balance; }
h1 { margin-top: 1.55rem; max-width: 13ch; font-size: clamp(3.1rem, 5.5vw, 6.35rem); line-height: .99; text-wrap: initial; }
h1 em { display: block; color: #42616b; font-style: normal; }
.hero-description { max-width: 40ch; margin-top: 1.55rem; color: #354a52; font-size: clamp(1rem, 1.32vw, 1.21rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2rem; }
.button, .text-link { font-size: .91rem; font-weight: 600; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.25rem;
  padding: .8rem 1.05rem;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button-primary { color: #f9fcfc; background: #1c333c; }
.button-primary:hover { background: #295460; }
.button span, .text-link span { display: inline-block; transition: transform .2s ease; }
.button:hover span, .text-link:hover span { transform: translate(.14rem, -.13rem); }
.text-link { display: inline-flex; align-items: center; width: fit-content; gap: .55rem; padding: .16rem 0; line-height: 1.4; border-bottom: 1px solid transparent; }
.text-link:hover { border-color: currentColor; }
.hero-media { position: relative; min-width: 0; min-height: 100%; overflow: hidden; background: #abc0c8; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }
.hero-media figcaption {
  display: flex;
  align-items: center;
  gap: .58rem;
  position: absolute;
  right: 1.1rem;
  bottom: 1.05rem;
  max-width: calc(100% - 2.2rem);
  padding: .62rem .75rem;
  color: #f6fbfc;
  background: rgba(17, 38, 46, .86);
  border: 1px solid rgba(237, 246, 247, .35);
  backdrop-filter: blur(10px);
  font: 400 .66rem/1.3 var(--mono);
}
.hero-media figcaption > span:first-child { width: .35rem; height: .35rem; background: #bfe3e9; }
.caption-divider { display: inline-block; width: 1px; height: .65rem; margin-inline: .16rem; background: currentColor; opacity: .6; vertical-align: middle; }

.phase-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.phase-nav a { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: 1.23rem clamp(.7rem, 2.8vw, 2.3rem); font-size: .9rem; font-weight: 550; transition: background .2s; }
.phase-nav a:first-child { padding-left: 0; }
.phase-nav a:last-child { padding-right: 0; }
.phase-nav a + a { border-left: 1px solid var(--line); }
.phase-nav a:hover { background: #edf3f4; }
.phase-nav span { color: #567780; font-size: 1rem; }

.section { padding-block: clamp(4.2rem, 8vw, 8.6rem); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(1.2rem, 7vw, 7rem); margin-bottom: clamp(2.4rem, 5vw, 4.25rem); }
h2 { margin-top: .9rem; font-size: clamp(2.75rem, 5vw, 5.65rem); line-height: 1; }
.section-intro { max-width: 40ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.62; text-wrap: pretty; }
.section-heading .section-intro { padding-bottom: .25rem; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.8rem) clamp(.75rem, 4.4vw, 4.2rem) clamp(1.6rem, 3.8vw, 3.4rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background .23s ease;
}
.service:nth-child(even) { padding-inline: clamp(.9rem, 4.4vw, 4.2rem) 0; border-left: 1px solid var(--line); }
.service:hover { background: linear-gradient(145deg, #eef4f5, transparent 85%); }
.service h3 { font-size: clamp(1.35rem, 2.15vw, 2rem); font-weight: 550; letter-spacing: -.045em; }
.service p { max-width: 54ch; margin-top: .65rem; margin-bottom: 1.15rem; color: var(--muted); line-height: 1.67; text-wrap: pretty; }
.service .text-link { margin-top: auto; color: var(--blue); }

.glass {
  color: #f6fafb;
  background:
    radial-gradient(ellipse at 75% 120%, #355762, transparent 65%),
    linear-gradient(110deg, #192d35, #203943);
}
.glass-inner { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.1rem, 7vw, 6.8rem); }
.glass .eyebrow { color: #b2d4da; }
.glass .eyebrow > span { background: #a2c7cf; }
.glass h2 { margin-bottom: 1.1rem; text-wrap: initial; }
.glass-copy > p:not(.eyebrow) { color: #dee9eb; max-width: 43ch; line-height: 1.65; }
.glass-list { list-style: none; padding: 0; margin: 1.45rem 0 1.3rem; }
.glass-list li { border-top: 1px solid #56727c; padding: .68rem 0; font-size: .94rem; }
.glass-list li:last-child { border-bottom: 1px solid #56727c; }
.glass-list li::before { content: "—"; margin-right: .6rem; color: #a7ced6; }
.glass .text-link { color: #d6eff3; }
.glass-image { overflow: hidden; background: #bfcbce; border: 1px solid #617980; }
.glass-image img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.glass-image figcaption { padding: .66rem .9rem; color: #edf5f6; background: #263f48; font: 400 .68rem/1.4 var(--mono); }

.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.method h2 { font-size: clamp(2.55rem, 4.5vw, 5rem); text-wrap: initial; }
.method .section-intro { margin-top: 1.05rem; }
.phase-details { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.55rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 550; letter-spacing: -.03em; }
summary:hover { color: var(--blue); }
.details-icon { position: relative; width: 1.85rem; height: 1.85rem; border: 1px solid #bfd0d4; flex: none; color: var(--blue); }
.details-icon::before, .details-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: .64rem; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.details-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
details[open] .details-icon::after { transform: translate(-50%, -50%) rotate(0); }
.phase-body { display: grid; gap: .8rem; padding: 0 2rem 1.45rem 0; color: var(--muted); line-height: 1.64; }
.phase-body strong { display: block; margin-bottom: .16rem; color: var(--blue); font: 500 .73rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }

.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 12%, #fff, transparent 80%),
    repeating-linear-gradient(0deg, rgba(54,90,103,.032) 0 1px, transparent 1px 3px),
    #dfe9ec;
}
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(3.6rem, 7.3vw, 7rem); }
.contact-copy > p:not(.eyebrow) { margin: 1.1rem 0 1.25rem; max-width: 37ch; color: var(--muted); line-height: 1.68; }
.email-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .29rem; }
.brief { display: grid; gap: 1.05rem; padding: clamp(1.25rem, 3vw, 2.35rem); border: 1px solid #bdcdd1; background: rgba(252, 254, 254, .78); }
.brief-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.brief label { display: grid; min-width: 0; gap: .42rem; font-size: .87rem; font-weight: 600; }
.brief select, .brief textarea { width: 100%; min-width: 0; padding: .73rem .65rem; border: 1px solid #aebfc4; border-radius: 0; color: var(--ink); font-size: .91rem; font-weight: 400; background: var(--white); }
.brief textarea { min-height: 6.5rem; resize: vertical; }
.brief textarea::placeholder { color: #5b6a71; }
.brief-actions { display: flex; gap: .7rem 1rem; align-items: center; flex-wrap: wrap; }
.brief-actions p { color: var(--muted); font-size: .79rem; line-height: 1.45; }

.site-footer { background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 6.2rem; padding-block: 1.4rem; }
.footer-inner p { color: var(--muted); font-size: .87rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: arrive .72s cubic-bezier(.2,.7,.2,1) both; }
  .hero-content h1 { animation-delay: .05s; }
  .hero-description { animation-delay: .11s; }
  .hero-actions { animation-delay: .16s; }
  .hero-media img { animation: facade-in 1.35s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(.85rem); } }
@keyframes facade-in { from { opacity: .7; transform: scale(1.035); } }

@media (max-width: 64rem) {
  .hero { grid-template-columns: 54fr 46fr; }
  .hero-content { padding-right: 1.45rem; }
}

@media (max-width: 49rem) {
  .header-inner { min-height: 4.35rem; flex-wrap: wrap; gap: 0 .8rem; }
  .navigation { flex-wrap: wrap; justify-content: space-between; width: 100%; gap: .55rem 1rem; padding: .85rem 0; }
  .menu-enabled .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .6rem; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-size: .87rem; font-weight: 550; }
  .menu-toggle span { width: .85rem; height: .43rem; border-block: 1px solid currentColor; }
  .menu-enabled .navigation { display: none; }
  .menu-enabled .navigation.is-open { display: grid; padding-bottom: 1.15rem; }
  .menu-enabled .navigation a { padding: .68rem 0; }
  .menu-enabled .navigation .header-contact { width: fit-content; padding-inline: .7rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 3.1rem var(--gutter) 2.8rem; }
  h1 { max-width: none; font-size: clamp(2.85rem, 8.3vw, 5.1rem); }
  .hero-media { min-height: clamp(17rem, 56vw, 28rem); }
  .section-heading, .glass-inner, .method, .contact-inner { grid-template-columns: 1fr; }
  .section-heading { gap: 1.2rem; }
  .section-heading br { display: none; }
  .glass-image img { aspect-ratio: 16 / 10; }
}

@media (max-width: 34rem) {
  .phase-nav { grid-template-columns: 1fr; }
  .phase-nav a { min-height: 2.95rem; padding: .66rem 0; }
  .phase-nav a + a { border-left: 0; border-top: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding-inline: 0; border-left: 0; }
  .brief-fields { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 22rem) {
  h1 { font-size: 2.43rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.arrow-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 .92em;
  width: .92em;
  height: .92em;
  vertical-align: middle;
}
.arrow-icon::before, .arrow-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}
.arrow-icon::before {
  width: .74em;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(var(--arrow-angle));
}
.arrow-icon::after {
  width: .43em;
  height: .43em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(var(--arrow-angle)) translateX(.14em) rotate(45deg);
}
.arrow-up-right { --arrow-angle: -45deg; }
.arrow-down-right { --arrow-angle: 45deg; }
.arrow-up { --arrow-angle: -90deg; }
.arrow-down { --arrow-angle: 90deg; }
