:root {
  color-scheme: light;
  --white: #fff;
  --surface: #f6f7f9;
  --ink: #101114;
  --muted: #545861;
  --line: #d8dbe2;
  --blue: #064ff7;
  --blue-dark: #0039bd;
  --blue-soft: #eaf0ff;
  --blue-contrast-soft: #dce6ff;
  --graphite: #181b21;
  --graphite-muted: #cbd0d9;
  --focus: #ff8a00;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space-section: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.mobile-nav,
main,
footer { width: min(100%, var(--max)); margin-inline: auto; }

.site-header {
  min-height: 76px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.identity { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-width: 44px; min-height: 44px; font-weight: 680; text-decoration: none; }
.identity-mark { width: 36px; height: 36px; border: 1.5px solid currentColor; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.25rem); }
.desktop-nav a,
.mobile-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.desktop-nav a { min-width: 44px; justify-content: center; padding-inline: .3rem; }
.desktop-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.language-switcher { display: flex; align-items: center; gap: .25rem; color: var(--muted); }
.language-switcher button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { color: var(--blue-dark); font-weight: 750; }
.menu-button { display: none; min-height: 44px; padding: 0 .8rem; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.mobile-nav { padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); background: var(--white); position: fixed; top: 76px; left: 0; right: 0; z-index: 19; }
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a { padding-block: .45rem; border-bottom: 1px solid var(--line); font-size: 1.2rem; color: var(--ink); }

main [id] { scroll-margin-top: 96px; }

.hero {
  min-height: min(760px, calc(100svh - 76px));
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-copy { padding: clamp(4rem, 9vw, 8rem) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-context { margin: 0 0 clamp(2.5rem, 6vw, 5rem); color: var(--blue-dark); font-weight: 680; }
.hero h1 { margin: 0; max-width: 9ch; font-size: clamp(3.35rem, 6.8vw, 6rem); line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.hero-intro { max-width: 33rem; margin: 2rem 0 2.5rem; color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.55; text-wrap: pretty; }
.primary-link,
.project-link,
.contact-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 52px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.primary-link { color: var(--blue-dark); }

.hero-product { position: relative; min-height: 620px; background: var(--blue); overflow: hidden; display: grid; place-items: end center; padding-top: 5rem; }
.hero-blueprint { position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.16), transparent 32%); }
.hero-product > img { position: relative; width: min(46%, 310px); max-height: 88%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 28px 26px rgba(0,20,80,.28)); }
.hero-product-note { position: absolute; left: clamp(1.25rem, 4vw, 3rem); top: clamp(1.25rem, 5vw, 3.5rem); color: var(--white); display: flex; gap: .85rem; align-items: center; }
.hero-product-note img { border-radius: 12px; }
.hero-product-note strong,
.hero-product-note span { display: block; }
.hero-product-note span { margin-top: .15rem; color: var(--blue-contrast-soft); font-size: .9rem; }

.work { padding-top: var(--space-section); }
.section-heading { padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: end; }
.section-heading h2,
.about h2,
.contact h2 { margin: 0; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.section-heading p { margin: 0; max-width: 31rem; color: var(--muted); font-size: 1.1rem; }

.project { min-height: 720px; display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); border-top: 1px solid var(--line); }
.project-copy { padding: clamp(3rem, 7vw, 6rem) var(--gutter); align-self: center; }
.project-name { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.project-name img { border-radius: 15px; }
.project-name h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.025em; }
.project-name p { margin: .45rem 0 0; color: var(--muted); }
.project-symbol { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--graphite); color: var(--white); font-weight: 800; }
.project-lede { max-width: 36rem; margin: 0 0 2rem; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; text-wrap: pretty; }
.project-details { list-style: none; margin: 0 0 2.5rem; padding: 0; color: var(--muted); }
.project-details li { position: relative; padding: .55rem 0 .55rem 1.4rem; }
.project-details li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.project-link { color: var(--blue-dark); }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.project-actions .project-link { min-width: 0; }
.project-store { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--muted); font-weight: 650; text-decoration: none; }
.project-store:hover { color: var(--ink); }
.project-visual { margin: 0; min-width: 0; position: relative; overflow: hidden; display: grid; place-items: end center; padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 6vw, 5rem) 0; }
.project-visual > img { max-height: 610px; width: auto; filter: drop-shadow(0 22px 24px rgba(9,19,44,.2)); }
.project-visual figcaption { position: absolute; left: 1.25rem; bottom: 1rem; color: var(--white); font-size: .85rem; font-weight: 650; }
.visual-blue { background: var(--blue); }
.visual-cobalt { background: #eaf0ff; align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.visual-cobalt > img:first-child { width: min(86%, 760px); }
.visual-cobalt .visual-phone { position: absolute; width: min(22%, 170px); right: 5%; bottom: 4%; }
.visual-cobalt figcaption { color: var(--blue-dark); }
.visual-graphite { background: var(--graphite); color: var(--white); }
.tidy-visual { padding-bottom: clamp(4rem, 9vw, 8rem); place-items: center start; align-content: center; }
.tidy-visual > p { margin: 0; max-width: 15ch; font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.035em; }
.tidy-steps { margin-top: 4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: var(--graphite-muted); }

.about { padding: var(--space-section) var(--gutter); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.about-copy { max-width: 42rem; }
.about-copy > p { margin: 0 0 1.5rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; text-wrap: pretty; }
.principles { margin: 4rem 0 0; }
.principles > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.principles dt { font-weight: 750; }
.principles dd { margin: 0; color: var(--muted); }

.contact { margin-inline: var(--gutter); padding: var(--space-section) clamp(1.5rem, 6vw, 6rem); background: var(--blue); color: var(--white); }
.contact h2 { max-width: 14ch; }
.contact > p { max-width: 36rem; margin: 2rem 0; color: var(--blue-contrast-soft); font-size: 1.2rem; }
.contact-link { margin-top: 1rem; color: var(--white); font-size: 1.15rem; }
.social-links { margin-top: clamp(4rem, 10vw, 8rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.35); display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.social-links a { min-height: 44px; display: inline-flex; align-items: center; }

footer { padding: 2rem var(--gutter); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
footer p { margin: 0; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-block; }
  .hero { grid-template-columns: 1fr; }
  .hero-product { min-height: 560px; }
  .hero-copy { min-height: 620px; }
  .section-heading { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 620px; order: -1; }
  .project-copy { padding-block: 4rem 5rem; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; gap: .75rem; }
  .identity > span:last-child { display: none; }
  .mobile-nav { top: 68px; }
  main [id] { scroll-margin-top: 84px; }
  .header-actions { gap: .5rem; }
  .hero-copy { min-height: auto; padding-block: 4.5rem; }
  .hero-context { margin-bottom: 3rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-product { min-height: 480px; }
  .hero-product > img { width: min(60%, 270px); }
  .section-heading { padding-bottom: 4rem; }
  .project { min-height: 0; }
  .project-visual { min-height: 480px; }
  .project-copy { padding-block: 3rem 4rem; }
  .project-name { margin-bottom: 2rem; }
  .visual-cobalt > img:first-child { width: 108%; max-width: none; }
  .visual-cobalt .visual-phone { width: 30%; }
  .tidy-visual { min-height: 540px; }
  .principles > div { grid-template-columns: 1fr; gap: .35rem; }
  .contact { margin-inline: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .hero-product,
  .contact,
  .visual-blue,
  .visual-graphite { border: 1px solid CanvasText; }
}
