:root {
  --paper: #F7F5F0;
  --paper-deep: #EFEBE2;
  --ink: #16181B;
  --ink-soft: #4A4F56;
  --line: #D8D3C8;
  --accent: #E8500A;
  --accent-deep: #C64100;
  --grid: color-mix(in srgb, #D8D3C8 40%, #F7F5F0);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', monospace; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- header ---------- */
header {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 17px 24px; max-width: 1080px; margin: 0 auto;
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--accent-deep); }

/* language switcher */
.nav a.lang {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; flex-shrink: 0;
  color: var(--accent-deep); border: 1px solid var(--line); padding: 5px 11px;
  transition: border-color .2s, color .2s;
}
.nav a.lang:hover { border-color: var(--accent); color: var(--accent); }

/* mobile header: logo + lang on top row, scrollable link rail below */
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; padding: 13px 20px 0; gap: 16px; }
  .logo img { height: 26px; }
  .nav a.lang { margin-left: auto; }
  .nav-links {
    order: 3; flex-basis: 100%; flex-wrap: nowrap;
    justify-content: space-between;
    gap: 14px; margin: 0 -20px; padding: 11px 20px 12px;
    border-top: 1px solid var(--line);
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 11px; letter-spacing: .04em; }
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.8fr; gap: 64px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: auto; display: block; border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--paper-deep), 15px 15px 0 var(--line);
}
.hero-photo[data-caption]::after {
  content: attr(data-caption);
  display: block; margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .85;
}
@media (max-width: 920px) {
  .hero { padding: 64px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 520px; }
}
.hero .kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero .kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent); flex-shrink: 0; }
h1 {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.03em;
  max-width: 16ch;
}
h1 em { font-style: normal; color: var(--accent-deep); }
.hero p.lede { margin-top: 28px; max-width: 52ch; font-size: 19px; color: var(--ink-soft); }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: .04em;
  text-decoration: none; padding: 14px 26px; border: 1px solid var(--ink);
  color: var(--ink); transition: background .2s, border-color .2s, color .2s;
  display: inline-block;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:not(.primary):hover { border-color: var(--accent); color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.hero .coords {
  position: absolute; right: 24px; bottom: 20px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft);
  opacity: .7;
}
@media (max-width: 640px) { .hero .coords { display: none; } }

/* staged reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .32s } .d4 { animation-delay: .46s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
main section:last-of-type { border-bottom: none; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 48px; gap: 16px; flex-wrap: wrap;
}
h2 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.sec-head .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 0 30px 38px; position: relative; transition: background .25s; --illu-scale: 100%; }
.card:nth-child(2) { --illu-scale: 90%; }
.card:nth-child(3) { --illu-scale: 84%; }
.card:hover { background: var(--paper-deep); }
.card .illu {
  margin: 0 -30px 24px; padding: 24px 24px 20px; border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; height: 212px;
}
.card .illu img {
  height: var(--illu-scale); width: auto; display: block;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.card:hover .illu img { transform: translateY(-6px); }
.card .num {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-deep);
  margin-bottom: 18px; display: block;
}
.card h3 { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 14px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card ul { margin-top: 18px; list-style: none; }
.card li {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft);
  padding: 7px 0; border-top: 1px dashed var(--line);
}
.card li::before { content: "→ "; color: var(--accent); }

/* services: side-by-side card on tablet, stacked again on small phones */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; padding: 30px; align-items: start; }
  .card .illu {
    grid-row: 1 / span 4; margin: 0; padding: 0 28px 0 0; height: auto;
    align-self: stretch; border-bottom: none; border-right: 1px dashed var(--line);
  }
  .card .illu img { width: var(--illu-scale); height: auto; }
}
@media (max-width: 600px) {
  .card { display: block; padding: 0 24px 34px; }
  .card .illu {
    margin: 0 -24px 22px; padding: 20px 20px 16px; height: 190px;
    border-right: none; border-bottom: 1px dashed var(--line);
  }
  .card .illu img { height: var(--illu-scale); width: auto; }
}

/* ticker strip */
.ticker {
  border-bottom: 1px solid var(--line); background: var(--paper-deep);
  overflow: hidden; padding: 13px 0;
}
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker span {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0 12px; white-space: nowrap;
}
.ticker span::after { content: "◆"; color: var(--accent); font-size: 8px; vertical-align: 2px; padding-left: 24px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--ink); padding-top: 18px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-deep);
  display: block; margin-bottom: 12px;
}
.step h3 { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* workshop feature */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 44px; } }
.feature-photo { max-width: 560px; }
.feature-photo img {
  width: 100%; height: auto; display: block; border: 1px solid var(--line);
  box-shadow: -14px 14px 0 var(--paper-deep), -15px 15px 0 var(--line);
}
@media (max-width: 860px) {
  .feature-photo img { box-shadow: 14px 14px 0 var(--paper-deep), 15px 15px 0 var(--line); }
}
.feature .sec-head { margin-bottom: 20px; }
.feature p { color: var(--ink-soft); margin-bottom: 14px; max-width: 54ch; }
.feature .spec {
  margin-top: 24px; border: 1px dashed var(--line); padding: 14px 18px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft);
}
.feature .spec b { color: var(--accent-deep); font-weight: 500; }

/* why grid */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }
.why div { background: var(--paper); padding: 28px 30px; }
.why h3 { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.why h3::before { content: "◆ "; color: var(--accent); font-size: 11px; vertical-align: 2px; }
.why p { font-size: 15px; color: var(--ink-soft); }

/* contact form */
.cform { border: 1px solid var(--line); background: var(--paper-deep); padding: 28px; }
@media (max-width: 640px) { .cform { padding: 22px 20px; } }
.cform label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 6px;
}
.cform input, .cform textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; color: var(--ink);
  padding: 12px 14px; margin-bottom: 18px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: 0; appearance: none;
}
.cform input:focus, .cform textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.cform textarea { min-height: 120px; resize: vertical; }
.cform button {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: .04em;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 14px 26px; cursor: pointer; transition: background .2s, border-color .2s;
}
.cform button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cform button:active { transform: translateY(1px); }
.cform .note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* team banner */
.team-banner { margin: 0 0 56px; position: relative; }
.team-banner img {
  width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; display: block;
  border: 1px solid var(--line);
}
@media (max-width: 640px) { .team-banner img { aspect-ratio: 3 / 2; } }
.team-banner figcaption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 2px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-grid p { color: var(--ink-soft); margin-bottom: 18px; max-width: 58ch; }
.about-grid p strong { color: var(--ink); }
.facts { border: 1px solid var(--line); background: var(--paper-deep); }
.facts dl { display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dd { overflow-wrap: anywhere; }
.facts dt { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); border-right: 1px solid var(--line); }
.facts dd:last-of-type, .facts dt:last-of-type { border-bottom: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .2s; }
.contact-line:first-child { padding-top: 4px; }
a.contact-line:hover { padding-left: 10px; }
.contact-line .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.contact-line .val { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-line .val.val-adr { font-size: 18px; line-height: 1.5; }
.contact-line:hover .val { color: var(--accent-deep); }

/* legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 10px; }
.legal .updated {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft);
  display: block; padding-bottom: 28px; margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 68ch; margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-deep); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-soft); }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--accent-deep); }
.foot .legal-links { display: flex; gap: 20px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .card .illu img, .btn, .contact-line { transition: none; }
}
