:root {
  --oxford: #0f1629;
  --han: #3270e1;
  --beau: #cde2ff;
  --white: #ffffff;
  --ink: #0f1629;
  --muted: #5a6275;
  --line: #e3e7ef;
  --paper: #ffffff;
  --paper-alt: #f5f8fd;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* Wordmark */
.wordmark {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--oxford);
}
.wordmark b { font-weight: 500; color: var(--han); }
.wordmark.small { font-size: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--muted); letter-spacing: 0.02em;
}
.nav a:hover { color: var(--oxford); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--line); }
.lang button {
  font: inherit; font-weight: 600; letter-spacing: 0.08em;
  background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--han); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--oxford); color: var(--white);
  padding: 140px 0 150px;
}
.hero-mark {
  position: absolute; right: -180px; top: 50%;
  width: 900px; transform: translateY(-50%);
  opacity: 0.06; pointer-events: none;
}
.hero-inner { position: relative; }
.eyebrow {
  margin: 0 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--beau);
}
.hero h1 {
  margin: 0; max-width: 780px;
  font-size: clamp(36px, 5.2vw, 60px); font-weight: 500;
  line-height: 1.12; letter-spacing: -0.02em;
}
.hero .lead { max-width: 600px; margin: 32px 0 44px; color: rgba(255, 255, 255, 0.72); }
.lead { font-size: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--han);
}
.hero .link-arrow { color: var(--beau); }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--paper-alt); }
.label {
  margin: 0 0 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--han);
}
.label.light { color: var(--beau); }
h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.015em;
}
h2.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.prose p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }
.role { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* Portfolio */
.portfolio { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.portfolio li {
  display: grid; grid-template-columns: 64px 4fr 7fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.idx { font-size: 13px; font-weight: 500; color: var(--han); letter-spacing: 0.08em; }
.co h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.co h3 a { text-decoration: none; background: linear-gradient(var(--han), var(--han)) 0 100% / 0 1px no-repeat; transition: background-size 0.25s ease; }
.co h3 a:hover { background-size: 100% 1px; }
.sector { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.desc { margin: 0; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 24px; }
.principles > div { border-top: 2px solid var(--oxford); padding-top: 28px; }
.principles h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.principles p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  background: var(--oxford); color: var(--white); padding: 130px 0;
}
.contact-mark {
  position: absolute; left: -140px; bottom: -120px; width: 620px;
  opacity: 0.12; pointer-events: none;
}
.contact .wrap { position: relative; }
.contact .lead { max-width: 560px; margin: 24px 0 44px; color: rgba(255, 255, 255, 0.72); }
.button {
  display: inline-block; padding: 16px 28px;
  background: var(--han); color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  border-radius: 2px; transition: background 0.2s ease;
}
.button:hover { background: #2a5fc2; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.contact h2 { max-width: 440px; }
.contact .note { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.5); }

/* Form */
.form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.opt { font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.hint { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="url"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px;
  padding: 12px 14px; transition: border-color 0.2s ease, background 0.2s ease;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--beau) 50%), linear-gradient(135deg, var(--beau) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form select option { color: var(--ink); }
.form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--han); background: rgba(255, 255, 255, 0.07);
}
.form [aria-invalid="true"] { border-color: #e5737a; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--han); width: 16px; height: 16px; flex: none; }
.form .button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form .button[disabled] { opacity: 0.6; cursor: default; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--beau); }
.form-status.err { color: #f0a3a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .portfolio li { grid-template-columns: 40px 1fr; gap: 12px 20px; }
  .portfolio .desc { grid-column: 2; }
  .principles { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 64px; }
  .brand img { width: 42px; }
  .wordmark { font-size: 13px; letter-spacing: 0.26em; }
  .hero { padding: 96px 0 104px; }
  .hero-mark { width: 560px; right: -260px; }
  .section { padding: 84px 0; }
  .contact { padding: 96px 0; }
  .lead { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
