/* ====================================================================
   VORTEKS STUDIO — v5-ledger
   Ruled, monochrome, document-shaped. No cards, no radii, no decoration
   that isn't carrying information.
   ==================================================================== */

/* ===== TOKENS ===== */
:root {
  --bg:        #ffffff;
  --bg-2:      #f5f6f7;
  --ink:       #0e1013;
  --ink-2:     #4c525a;
  --ink-3:     #8a9098;
  --rule:      #e3e5e9;
  --rule-2:    #cfd3d9;
  --accent:    #22437a;

  --font-head: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --nav-h:     60px;
  --wrap:      1180px;
  --pad:       2rem;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ol, ul, dl { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
#nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.85rem; }
.nav-links a {
  font-size: 0.845rem;
  color: var(--ink-2);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); border-bottom-color: var(--ink); }
.nav-action {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-action:hover { color: var(--accent); border-bottom-color: var(--accent); }
.na-short { display: none; }

/* ===== SHARED TYPE ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--ink);
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { cursor: default; }
.btn.sent { background: var(--bg); color: var(--ink); border-color: var(--rule-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 0.2s;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover span { transform: translateX(3px); }

/* ===== HERO ===== */
.hero { padding-block: calc(var(--nav-h) + 6.5rem) 6rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  margin-bottom: 2.75rem;
}
.avail { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-2); }
.avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 17ch;
  margin-bottom: 2rem;
}
.hero-lede {
  font-size: clamp(1rem, 1.35vw, 1.175rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 2.75rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5.5rem;
  border-top: 1px solid var(--rule);
}
.hero-facts > div {
  padding: 1.35rem 1.5rem 0 0;
  border-right: 1px solid var(--rule);
}
.hero-facts > div:last-child { border-right: none; }
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.hero-facts dd {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* ===== SECTION SHELL ===== */
.sec {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4.5rem;
  padding-block: 5.5rem;
  border-top: 1px solid var(--rule);
}
.sec--last { padding-bottom: 6.5rem; }
.sec-head {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
  align-self: start;
}
.sec-idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin-bottom: 0.7rem;
}
.sec-note {
  font-size: 0.855rem;
  line-height: 1.62;
  color: var(--ink-3);
  max-width: 30ch;
}

/* ===== ROWS (services, process) ===== */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.5rem;
  padding-block: 2.1rem;
  border-bottom: 1px solid var(--rule);
}
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: none; padding-bottom: 0; }
.rows--compact .row { padding-block: 1.7rem; }
.row-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  padding-top: 0.38rem;
}
.row-main { max-width: 64ch; }
.row-title {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 0.6rem;
}
.row-text { font-size: 0.945rem; line-height: 1.72; color: var(--ink-2); }
.row-out {
  margin-top: 1rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 0.95rem;
  border-left: 2px solid var(--rule-2);
}
.row-out-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}

/* ===== ENGAGEMENTS ===== */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.eng {
  padding: 1.85rem 1.75rem 1.6rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: background 0.2s var(--ease);
}
.eng:hover { background: var(--bg-2); }
.eng-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 0.7rem;
}
.eng-text { font-size: 0.9rem; line-height: 1.7; color: var(--ink-2); flex: 1; }
.eng-meta { margin-top: 1.65rem; display: flex; flex-direction: column; gap: 0.4rem; }
.eng-meta > div { display: flex; justify-content: space-between; gap: 1rem; }
.eng-meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}
.eng-meta dd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink);
}

/* ===== STUDIO ===== */
.prose { max-width: 64ch; }
.prose p { font-size: 0.975rem; line-height: 1.76; color: var(--ink-2); }
.prose p + p { margin-top: 1.25rem; }

.facts {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}
.fact {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.fact dd { font-size: 0.9rem; color: var(--ink); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-text {
  font-size: 0.945rem;
  line-height: 1.74;
  color: var(--ink-2);
  max-width: 44ch;
}
.contact-text + .contact-text { margin-top: 1.15rem; }
.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .opt { text-transform: none; letter-spacing: 0.01em; opacity: 0.7; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-2);
  padding: 0.5rem 0;
  font-size: 0.945rem;
  outline: none;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #b4472f; }
.form-foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-line { font-size: 0.82rem; color: var(--ink-3); line-height: 1.6; }
.footer-nav { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.footer-nav a { font-size: 0.82rem; color: var(--ink-2); transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-end { align-items: flex-end; text-align: right; }
.footer-end a { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); transition: color 0.2s; }
.footer-end a:hover { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); }

/* ===== REVEAL ===== */
.sec, .hero-facts {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.sec.in, .hero-facts.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sec, .hero-facts { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 1.35rem; }
  .sec { grid-template-columns: 200px 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  :root { --pad: 1.5rem; }
  .nav-links { display: none; }
  .na-long { display: none; }
  .na-short { display: inline; }
  .hero { padding-block: calc(var(--nav-h) + 4.5rem) 4rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div { padding-right: 1.25rem; padding-bottom: 1.25rem; }
  .hero-facts > div:nth-child(2n) { border-right: none; }
  .hero-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .sec {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 4rem;
  }
  .sec-head { position: static; }
  .sec-note { max-width: 46ch; }
  .eng-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-end { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 34px 1fr; }
  .fact { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero-actions { gap: 1.25rem; }
  .form-foot { gap: 0.9rem; }
}
