:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --red: #D32F2F;
  --blue: #1565C0;
  --yellow: #F9A825;
  --green: #2E7D32;
  --border: 3px solid #0a0a0a;
  --border-thick: 5px solid #0a0a0a;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Mondrian frame ── */
.m-left  { position: fixed; left: 0; top: 0; bottom: 0; width: 12px; background: var(--black); z-index: 200; }
.m-top   { position: fixed; left: 0; right: 0; top: 0; height: 12px; background: var(--black); z-index: 200; max-width: 100vw; }
.m-corner-1 { position: fixed; top: 12px; left: 12px; width: 92px; height: 92px; background: var(--red); z-index: 190; border-right: var(--border); border-bottom: var(--border); cursor: pointer; transition: opacity 0.3s; }
.m-corner-2 { position: fixed; top: 12px; right: 0; width: 140px; height: 64px; background: var(--blue); z-index: 190; border-left: var(--border); border-bottom: var(--border); cursor: pointer; transition: opacity 0.3s; }
.m-corner-3 { width: 180px; height: 80px; background: var(--yellow); z-index: 190; border-left: var(--border); border-top: var(--border); flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
.m-corner-3:hover { opacity: 0.6; }
.m-corner-1.hidden, .m-corner-2.hidden, .m-corner-3.hidden { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.m-corner-black { width: 64px; height: 48px; background: var(--black); z-index: 190; flex-shrink: 0; }
.footer-bottom-corners { display: flex; align-items: flex-end; justify-content: space-between; margin-left: -12px; }

/* ── Header ── */
.site-header {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 0px 1fr 154px;
  align-items: stretch;
  border-bottom: var(--border-thick);
  background: var(--white);
}
.header-left-cell { display: flex; flex-direction: column; }
.header-center-cell { border-left: var(--border); border-right: var(--border); display: flex; flex-direction: column; align-items: center; position: relative; }
.header-center-cell::before { content: ''; position: absolute; top: -12px; left: -3px; width: 3px; height: 12px; background: var(--black); }
.header-center-cell::after { content: ''; position: absolute; top: -12px; right: -3px; width: 3px; height: 12px; background: var(--black); }
.logo {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-decoration: none; cursor: pointer; padding: 0 22px 10px 22px;
  height: 110px; flex-shrink: 0; width: 100%;
}
.logo-word {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 400; letter-spacing: -0.03em;
  color: var(--black); line-height: 1; text-transform: lowercase;
}
.logo-word em { font-style: italic; color: var(--red); }
.header-tagline-cell {
  border-top: var(--border); padding: 18px 22px 22px 22px;
  display: flex; align-items: center; justify-content: center; flex: 1; width: 100%;
}
.header-tagline {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 300; letter-spacing: -0.02em;
  color: #bbb; line-height: 1.3;
  text-transform: lowercase; font-style: italic; text-align: center;
}
.header-nav-cell {
  width: 154px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 0 22px 0; align-items: center; gap: 10px;
}
.nav-link {
  font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #999; font-weight: 300; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.nav-link:hover { color: var(--black); }

/* ── Hamburger ── */
.hamburger {
  position: fixed; top: 20px; left: 20px; background: transparent; z-index: 300;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 5px; cursor: pointer; border: none; padding: 6px; font-family: var(--font-body); transition: opacity 0.2s;
}
.hamburger:hover { opacity: 0.5; }
.hamburger span { display: block; height: 1.5px; background: var(--black); transition: transform 0.3s, opacity 0.3s, width 0.3s; }
.hamburger span:nth-child(1) { width: 28px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 250;
  display: flex; flex-direction: column; justify-content: center; padding: 0 64px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay-item {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400; letter-spacing: -0.03em; color: var(--black);
  text-transform: lowercase; line-height: 1; cursor: pointer;
  border-bottom: 2px solid #e0e0e0; padding: 28px 0; transition: color 0.2s;
  display: flex; align-items: center; gap: 24px; text-decoration: none;
}
.nav-overlay-item:first-child { border-top: 2px solid #e0e0e0; }
.nav-overlay-item:hover { color: #aaa; }
.nav-overlay-num { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.3em; color: #ccc; font-weight: 300; text-transform: uppercase; min-width: 28px; }

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 10; border-top: var(--border-thick);
  padding: 8px 56px 8px 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
}
.footer-left { font-size: 9px; letter-spacing: 0.28em; color: #bbb; font-weight: 300; text-transform: lowercase; }
.footer-right { font-size: 9px; letter-spacing: 0.2em; color: #bbb; font-weight: 300; cursor: pointer; transition: color 0.2s; text-decoration: none; }
.footer-right:hover { color: var(--black); }

/* ── Inner page layout (contact, legal, subpages) ── */
.inner-main {
  flex: 1; display: grid; grid-template-columns: 340px 5px 1fr;
  position: relative; z-index: 10; min-height: 560px;
}
.inner-left {
  padding: 52px 48px 52px 48px; display: flex; flex-direction: column;
  background: var(--white); position: relative;
}
.inner-color-block { position: absolute; top: 0; left: 0; width: 100%; height: 10px; }
.inner-divider { background: var(--black); width: 5px; }
.inner-right { padding: 52px 56px 52px 52px; display: flex; flex-direction: column; }

.inner-eyebrow {
  font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase;
  color: #aaa; font-weight: 300; margin-bottom: 20px; margin-top: 28px;
  display: flex; align-items: center; gap: 12px;
}
.inner-eyebrow::before { content: ''; display: block; width: 28px; height: 5px; flex-shrink: 0; }
.inner-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px); font-weight: 400; letter-spacing: -0.04em;
  color: var(--black); line-height: 0.95; text-transform: lowercase; margin-bottom: 16px;
}
.inner-note { font-size: 13px; line-height: 1.85; color: #888; font-weight: 300; font-style: italic; margin-top: 28px; }
.inner-note strong { font-style: normal; font-weight: 400; color: var(--black); }

/* ── Expanded content styles ── */
.exp-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 72px); font-weight: 400; letter-spacing: -0.04em;
  color: var(--black); line-height: 0.95; text-transform: lowercase; margin-bottom: 12px;
}
.exp-sub { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #aaa; font-weight: 300; margin-bottom: 28px; }
.exp-intro { font-size: 14px; line-height: 1.75; color: #888; font-weight: 300; font-style: italic; margin-bottom: 20px; }
.exp-intro strong { font-style: normal; font-weight: 400; color: var(--black); }
.exp-body { font-size: 13px; line-height: 1.95; color: #666; font-weight: 300; }

/* ── Product blocks ── */
.p1-product { border-top: var(--border); padding-top: 36px; margin-top: 56px; max-width: 860px; }
.p1-product-trigger {
  display: flex; align-items: baseline; justify-content: space-between;
  cursor: pointer; padding-bottom: 20px; border-bottom: 2px solid var(--black);
  transition: opacity 0.2s; user-select: none;
}
.p1-product-trigger:hover { opacity: 0.6; }
.p1-product-trigger-left { display: flex; flex-direction: column; gap: 5px; }
.p1-product-trigger-arrow { font-family: var(--font-body); font-size: 13px; color: #aaa; font-weight: 300; transition: transform 0.35s cubic-bezier(0.77,0,0.18,1), color 0.2s; flex-shrink: 0; }
.p1-product.open .p1-product-trigger-arrow { transform: rotate(45deg); color: var(--black); }
.p1-product-body { overflow: hidden; max-height: 0; transition: max-height 0.55s cubic-bezier(0.77,0,0.18,1); }
.p1-product.open .p1-product-body { max-height: 1400px; }
.p1-product-body-inner { padding-top: 32px; }
.p1-product-title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 400; letter-spacing: -0.03em; color: var(--black); line-height: 1; text-transform: lowercase; margin-bottom: 6px; }
.p1-product-sub { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #aaa; font-weight: 300; }
.p1-product-lead { font-size: 15px; line-height: 1.85; color: #555; font-weight: 300; max-width: 680px; margin-top: 20px; margin-bottom: 0; }
.p1-features { margin-bottom: 48px; }
.p1-feature { padding-left: 24px; margin-bottom: 24px; }
.p1-feature:last-child { margin-bottom: 0; }
.p1-feature-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--black); font-weight: 400; margin-bottom: 8px; }
.p1-feature-text { font-size: 13px; line-height: 1.85; color: #777; font-weight: 300; margin: 0; }
.p1-product.service .p1-feature { border-left: 2px solid var(--blue); }
.p1-product.sales .p1-feature { border-left: 2px solid var(--red); }
.p1-steps-label { font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; color: #aaa; font-weight: 300; margin-bottom: 12px; }
.p1-steps { border-top: var(--border); }
.p1-step { display: grid; grid-template-columns: 56px 1fr; border-bottom: 2px solid var(--black); transition: background 0.2s; }
.p1-step:hover { background: rgba(21,101,192,0.04); }
.p1-step-num { color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 400; display: flex; align-items: center; justify-content: center; letter-spacing: -0.02em; min-height: 72px; }
.p1-product.service .p1-step-num { background: var(--blue); }
.p1-product.sales .p1-step-num { background: var(--red); }
.p1-step-body { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; }
.p1-step-title { font-size: 12px; font-weight: 700; color: var(--black); letter-spacing: 0.01em; margin-bottom: 4px; }
.p1-step-desc { font-size: 12px; line-height: 1.6; color: #666; font-weight: 300; }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 9px; }
.form-label { font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; color: #aaa; font-weight: 300; display: flex; align-items: center; gap: 6px; }
.form-label .req { color: var(--red); font-size: 11px; line-height: 1; }
.form-label .opt { color: #ccc; font-style: italic; letter-spacing: 0.1em; }
.form-input, .form-textarea { font-family: var(--font-body); font-size: 14px; font-weight: 300; color: var(--black); background: transparent; border: none; border-bottom: 2px solid #ddd; padding: 10px 0; outline: none; transition: border-color 0.2s; width: 100%; }
.form-input::placeholder, .form-textarea::placeholder { color: #ccc; }
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--black); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.75; }
.subject-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.subject-hint { font-size: 9px; letter-spacing: 0.12em; color: #bbb; border: 2px solid #e0e0e0; padding: 6px 12px; cursor: pointer; font-family: var(--font-body); background: transparent; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.subject-hint:hover, .subject-hint.active { border-color: var(--black); color: var(--white); background: var(--black); }
.form-submit { display: inline-flex; align-items: center; gap: 16px; margin-top: 8px; padding: 16px 32px; background: var(--black); border: var(--border); color: var(--white); font-family: var(--font-body); font-size: 9px; letter-spacing: 0.38em; text-transform: uppercase; font-weight: 400; cursor: pointer; align-self: flex-start; transition: background 0.25s, border-color 0.25s; }
.form-submit:hover { background: var(--blue); border-color: var(--blue); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success { display: none; border-left: 10px solid var(--green); padding: 24px 28px; background: rgba(46,125,50,0.04); }
.form-success p { font-size: 14px; color: var(--green); font-weight: 300; line-height: 1.75; }
.form-success strong { font-weight: 600; }
.form-error { display: none; border-left: 10px solid var(--red); padding: 24px 28px; background: rgba(211,47,47,0.04); margin-top: 8px; }
.form-error p { font-size: 14px; color: var(--red); font-weight: 300; line-height: 1.75; }

/* ── Legal ── */
.imp-section { border-top: var(--border); padding-top: 24px; }
.imp-section-title { font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase; color: #aaa; font-weight: 300; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.imp-section-title::before { content: ''; display: block; width: 10px; height: 10px; background: var(--black); flex-shrink: 0; }
.imp-body { font-size: 13px; line-height: 1.95; color: #666; font-weight: 300; }
.imp-body strong { font-weight: 400; color: var(--black); }
.imp-address { font-size: 14px; line-height: 2; color: var(--black); font-weight: 300; font-style: normal; }

/* ── P3 ── */
.p3-list { border-top: var(--border); max-width: 860px; margin: 0 auto; width: 100%; }
.p3-list-item { display: grid; grid-template-columns: 52px 1fr; border-bottom: 2px solid var(--black); padding: 22px 0; }
.p3-list-num { font-family: var(--font-display); font-size: 18px; color: #ccc; font-weight: 400; padding-top: 2px; }
.p3-list-title { font-size: 13px; font-weight: 400; color: var(--black); margin-bottom: 8px; letter-spacing: -0.01em; }
.p3-list-text { font-size: 13px; line-height: 1.85; color: #666; font-weight: 300; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .m-corner-2 { display: none; }
  .header-nav-cell { display: none; }
  .site-header { grid-template-columns: 96px 1fr 0px; margin-left: -12px; padding-left: 12px; }
  .inner-main { grid-template-columns: 1fr; }
  .inner-divider { display: none; }
  .inner-left { padding: 36px 28px; border-bottom: var(--border-thick); }
  .inner-right { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding: 8px 28px; }
}
