:root {
  color: #202124;
  background: #f5f2ea;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  --ink: #202124;
  --paper: #f5f2ea;
  --white: #fffdf8;
  --muted: #706d66;
  --line: #c8c2b6;
  --blue: #3867d6;
  --terracotta: #c76d4a;
  --green: #5f8068;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
a { color: inherit; }
button { color: inherit; font: inherit; }

.site-header {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
.brand span { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 700; letter-spacing: -.7px; }
.brand strong { color: var(--blue); font-weight: 400; }

nav { display: flex; align-items: center; gap: 26px; }
nav a { color: #4f4d48; font-size: 12px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--ink); }
.language-toggle { width: 38px; height: 30px; border: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.language-toggle:hover { background: var(--ink); color: var(--paper); }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  padding: 84px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr);
  align-items: center;
  gap: 80px;
}

.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px, 7.2vw, 98px); font-weight: 400; line-height: .92; letter-spacing: -4.7px; }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-intro { max-width: 560px; margin: 30px 0 0; color: #5b5852; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.55; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 44px; padding: 12px 17px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: .25px; text-decoration: none; }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--blue); }
.button-primary:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--blue); }
.button-quiet { background: var(--white); }
.button-quiet:hover { background: #e8e3d8; }

.mascot-card { margin: 0; position: relative; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 14px 0 rgba(32,33,36,.1); transform: rotate(1.25deg); }
.mascot-card::before { content: ''; position: absolute; width: 64px; height: 18px; top: -10px; left: 50%; background: rgba(56,103,214,.2); transform: translateX(-50%) rotate(-2deg); }
.mascot-card img { width: 100%; height: auto; display: block; filter: saturate(.9); }
.mascot-card figcaption { padding: 12px 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-align: center; text-transform: uppercase; }

.principles { width: min(1180px, calc(100% - 40px)); margin: 0 auto 110px; border-block: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); }
.principles p { min-height: 116px; margin: 0; padding: 22px; display: grid; grid-template-columns: 30px 1fr; align-content: center; column-gap: 12px; }
.principles p + p { border-left: 1px solid var(--ink); }
.principles span { grid-row: 1 / 3; color: var(--blue); font-family: Georgia, 'Times New Roman', serif; font-size: 12px; }
.principles strong { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 400; }
.principles small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.projects { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 125px; }
.section-heading { margin-bottom: 32px; display: flex; align-items: end; justify-content: space-between; }
.section-heading .eyebrow { margin: 0; }
.section-heading h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 7vw, 86px); font-weight: 400; line-height: .9; letter-spacing: -3.5px; }
.project-grid { border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); }
.project-card { min-height: 360px; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,253,248,.55); display: flex; flex-direction: column; transition: background-color .2s ease, transform .2s ease; }
.project-card:hover { position: relative; z-index: 1; background: var(--white); transform: translateY(-4px); }
.project-card::before { content: ''; height: 6px; margin: -24px -24px 24px; background: var(--blue); }
.project-magenta::before { background: var(--terracotta); }
.project-green::before { background: var(--green); }
.project-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.project-status { padding: 4px 7px; border: 1px solid currentColor; color: var(--green); line-height: 1; }
.project-card h3 { margin: 65px 0 13px; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 400; letter-spacing: -1px; }
.project-card p { max-width: 290px; margin: 0; color: #625f58; font-size: 12px; line-height: 1.65; }
.project-domain { margin-top: 25px; color: var(--muted); font-family: 'Courier New', monospace; font-size: 9px; }
.project-card > a, .coming-soon { width: max-content; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 700; text-decoration: none; }
.project-card > a { display: inline-flex; align-items: center; gap: 8px; }
.project-green .coming-soon { margin-top: auto; }
.project-card > a:hover { color: var(--blue); }
.coming-soon { color: var(--muted); border-bottom-style: dashed; }

.about { width: min(1180px, calc(100% - 40px)); margin: 0 auto 110px; padding: 70px 0; border-block: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.about h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 5vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -2.5px; }
.about > p { max-width: 540px; margin: 0; color: #5d5a54; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.65; }

footer { width: min(1180px, calc(100% - 40px)); min-height: 100px; margin: 0 auto; border-top: 1px solid var(--ink); display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 10px; }
.footer-brand span { color: var(--ink); font-size: 18px; }
footer p { margin-left: auto; }
footer > a:last-child { text-underline-offset: 3px; }

@media (max-width: 820px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 55px; padding-top: 62px; }
  .hero-copy { max-width: 700px; }
  .mascot-card { width: min(470px, 86%); margin: 0 auto; }
  .principles { grid-template-columns: 1fr; }
  .principles p + p { border-left: 0; border-top: 1px solid var(--ink); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 290px; }
  .project-card h3 { margin-top: 42px; }
  .about { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 560px) {
  .site-header { width: calc(100% - 30px); min-height: 68px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 20px; }
  nav { gap: 13px; }
  nav a { display: none; }
  .hero, .projects, .about, .principles, footer { width: calc(100% - 30px); }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 52px; letter-spacing: -3px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .mascot-card { width: 92%; }
  .principles { margin-bottom: 78px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h2 { font-size: 56px; }
  .projects { padding-bottom: 90px; }
  .project-card { min-height: 270px; padding: 21px; }
  .project-card::before { margin: -21px -21px 21px; }
  .about { margin-bottom: 70px; padding: 55px 0; }
  footer { padding: 24px 0; flex-wrap: wrap; gap: 14px; }
  footer p { width: 100%; margin: 6px 0 0; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
