/* ParqEdit — landing page
   Editorial / Japanese-industrial direction.
   Type: Space Grotesk (display), Geist (body), Geist Mono (labels).
   One accent only: vermilion on warm paper. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f4f2ec;  /* warm paper */
  --bg-sink:     #efece4;  /* very slightly deeper paper */
  --text:        #17150f;  /* warm ink */
  --text-sub:    #5b564b;
  --text-muted:  #938d7e;

  --accent:      #d6381c;  /* vermilion */
  --accent-deep: #b22c14;

  --line:        rgba(23,21,15,0.16);
  --line-soft:   rgba(23,21,15,0.08);

  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, sans-serif;

  --pad: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent-deep);
  font-weight: 500;
}

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

::selection { background: var(--accent); color: var(--bg); }

/* Typographic arrow glyphs */
.arr { font-family: var(--body); display: inline-block; }

/* ───────────────────────── NAV ───────────────────────── */
/* background + shadow handled by script.js on scroll */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #f4f2ec;
  transition: background 0.25s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-icon { width: 24px; height: 24px; border-radius: 5px; display: block; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-sub);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-gh .arr { color: var(--accent); }

/* ───────────────────────── BUTTONS ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary .arr { color: inherit; }

.btn-macos {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-macos:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-macos.requested {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  transform: none;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-sub);
  padding: 14px 4px;
  position: relative;
  transition: color 0.15s;
}
.btn-link::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.btn-link:hover { color: var(--text); }
.btn-link:hover::after { transform: scaleX(1); }
.btn-link .arr { color: var(--accent); }

/* ───────────────────────── SECTION HEADINGS ───────────────────────── */
.sec-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 22px;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
}

/* ───────────────────────── HERO ───────────────────────── */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-side {
  position: absolute;
  top: 230px;
  left: 18px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  margin-bottom: 56px;
  gap: 16px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 8.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--text);
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-lower {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
}

.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-sub);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 01 / 02 / 03 editorial verbs */
.verbs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 96px;
  border-top: 1px solid var(--line);
}
.verbs li {
  padding: 26px 28px 26px 0;
}
.verbs li:last-child { padding-right: 0; }
.verb-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}
.verb-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.verb-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.55;
  max-width: 30ch;
}

/* Application showcase */
.showcase { margin-top: 110px; }
.showcase-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.showcase-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  background: var(--bg-sink);
}
.showcase-media {
  display: block;
  width: 100%;
  border-radius: 2px;
  background: #14130f;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ───────────────────────── CAPABILITIES ───────────────────────── */
.capabilities {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.sec-head { margin-bottom: 64px; }

.cap-list { list-style: none; }
.cap-row {
  display: grid;
  grid-template-columns: 80px minmax(190px, 280px) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-row:hover { padding-left: 14px; }

.cap-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.cap-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cap-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 52ch;
}

/* ───────────────────────── SPECIFICATION ───────────────────────── */
.specs {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-sink);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 48px 40px;
}
.spec-title-sm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.spec-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}
.spec-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 1px;
  background: var(--accent);
}

/* ───────────────────────── DOWNLOAD ───────────────────────── */
.download {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.download-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: start;
}
.download-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 4px 0 18px;
}
.download-sub {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 38ch;
  margin-bottom: 36px;
}
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.spec-plate {
  min-width: 300px;
  border-top: 1px solid var(--text);
}
.spec-plate > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-plate dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-plate dd {
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

/* ───────────────────────── CONTACT ───────────────────────── */
.contact {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-sink);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-sub {
  font-size: 16px;
  color: var(--text-sub);
  margin: 22px 0 30px;
  max-width: 36ch;
  line-height: 1.65;
}
.issue-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.issue-link:hover { border-color: var(--accent); }
.issue-link .arr { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  font-size: 16px;
  font-family: var(--body);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--text); }
.form-field input.invalid,
.form-field textarea.invalid { border-bottom-color: var(--accent); }

.field-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  display: none;
  margin-top: 2px;
}
.field-error.visible { display: block; }

.form-footer { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.form-success {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  display: none;
}
.form-success.visible { display: block; }

/* ───────────────────────── FOOTER ───────────────────────── */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(64px, 16vw, 200px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ───────────────────────── REVEAL MOTION ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────── RESPONSIVE ───────────────────────── */
@media (max-width: 920px) {
  :root { --pad: 32px; }
  .hero-side { display: none; }
  .hero-lower { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { justify-content: flex-start; }
  .verbs { grid-template-columns: 1fr; margin-top: 72px; }
  .verbs li { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 24px 0; }
  .verbs li:last-child { border-bottom: none; }
  .download-wrap { grid-template-columns: 1fr; gap: 48px; }
  .spec-plate { min-width: 0; }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-gh) { display: none; }
  .hero { padding-top: 120px; padding-bottom: 80px; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .cap-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .cap-row:hover { padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .btn, .btn-link { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
}
