:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #171715;
  --muted: #4f4e49;
  --line: #d6d4cd;
  --blue: #253de1;
  font: 100%/1.55 "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-200%); z-index: 2; }
.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 79rem); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 5.25rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .42rem; align-items: center; font-weight: 850; font-size: 1rem; letter-spacing: -.04em; white-space: nowrap; text-decoration: none; }
.brand-studio { font-weight: 500; letter-spacing: .035em; font-size: .82rem; }
.mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; color: white; background: var(--blue); font-size: 1rem; }
nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem clamp(.8rem, 3vw, 2.15rem); }
nav a { text-decoration: none; font-size: .93rem; }
nav a:hover, .studio a:hover { color: var(--blue); text-decoration: underline; }
.hero {
  margin-block: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  min-height: 32rem;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 6vw, 5.5rem);
  color: var(--paper);
  background: linear-gradient(90deg, #131b72 0%, #151f7cd9 27%, #182ba527 70%),
    var(--blue) url("wagi-banner.jpg") center / cover no-repeat;
}
.hero-copy { max-width: 43rem; }
.eyebrow { font: 700 .875rem/1.5 ui-monospace, monospace; letter-spacing: .045em; text-transform: uppercase; margin: 0 0 1.15rem; }
.eyebrow span { display: inline-block; width: .62rem; height: .62rem; background: currentColor; margin-right: .3rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.55rem, 7.2vw, 7.2rem); line-height: .92; letter-spacing: -.077em; font-weight: 850; }
h1 em { color: #d5ddff; font-style: normal; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 28rem; margin: 1.65rem 0; }
.button { text-decoration: none; display: inline-flex; padding: .78rem 1.1rem; background: var(--paper); color: #152169; font-weight: 750; }
.button:hover { background: #d5ddff; }
.hero a:focus-visible { outline-color: white; }
.section { border-top: 1px solid var(--line); padding: clamp(2rem, 5vw, 4.5rem) 0; scroll-margin-top: 1rem; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.066em; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border: 1px solid var(--line); }
.services article { padding: clamp(1.25rem, 3vw, 2.3rem); }
.services article + article { border-left: 1px solid var(--line); }
.symbol { color: var(--blue); font-size: 2.2rem; line-height: 1; display: inline-block; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.28rem, 2.2vw, 1.72rem); letter-spacing: -.035em; }
.services p { margin-top: .55rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.app-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem; padding: clamp(1.25rem, 4vw, 2.75rem); }
.app-card h3 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.065em; margin-bottom: .8rem; }
.app-card p { max-width: 34ch; }
.app-comelook { background: var(--blue); color: white; }
.app-repere { background: #e4e8fd; color: #172459; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 3rem; align-items: end; }
.studio p:not(.eyebrow) { color: var(--muted); max-width: 34rem; font-size: 1.12rem; }
.studio a { display: inline-block; margin-top: .9rem; font-weight: 700; }
.footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .header { min-height: 4.5rem; }
  .projects, .studio, .services { grid-template-columns: 1fr; }
  .services article + article { border-left: 0; border-top: 1px solid var(--line); }
  .hero { align-items: flex-end; min-height: 31rem; background-position: 67% top; background-size: 100% 100%, auto 57%; background-repeat: no-repeat; background-image: linear-gradient(180deg, #101a6700 11%, #192b8f 48%, #172375 100%), url("wagi-banner.jpg"); }
  .app-card { min-height: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
