/* Vorklo — site styles */
:root {
  --paper: #eef0f2;
  --surface: #ffffff;
  --ink: #1a1d24;
  --steel: #545d6b;
  --line: #d3d8de;
  --teal: #0f5c68;
  --teal-dark: #0a4650;
  --note: #f3c64a;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --wrap: 1120px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Type scale */
h1, h2, h3 {
  font-variation-settings: "wdth" 114;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.22rem; line-height: 1.25; font-variation-settings: "wdth" 108; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 16px; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--steel); max-width: 54ch; }
.muted { color: var(--steel); }
.small { font-size: 0.92rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 120; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn { margin-top: 8px; width: auto; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav .btn { color: #fff; padding: 9px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #f2f4f6; }
.section-ink p { color: #c9ced6; }
.section-ink a { color: #fff; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

.page-head { padding: 72px 0 40px; }
.page-head p { font-size: 1.15rem; color: var(--steel); max-width: 58ch; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--steel); font-size: 0.95rem; padding-left: 0; list-style: none; }
.hero-meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Job ticket — the hero's one memorable element */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(26, 29, 36, 0.35);
}
.ticket-tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--note);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transform: rotate(2deg);
}
.ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.ticket-title { font-weight: 700; font-variation-settings: "wdth" 108; font-size: 1.08rem; }
.ticket-from { color: var(--steel); font-size: 0.9rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid #eef0f2; }
.steps li:last-child { border-bottom: 0; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; display: grid; place-items: center; }
.steps .done .dot { background: var(--teal); border-color: var(--teal); }
.steps .done .dot::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.steps .now .dot { border-color: var(--teal); }
.steps .now .dot::after { content: ""; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.steps strong { display: block; font-weight: 650; }
.steps span { color: var(--steel); font-size: 0.92rem; }
.steps time { color: var(--steel); font-size: 0.85rem; white-space: nowrap; }
.ticket-foot { margin-top: 10px; font-size: 0.88rem; color: var(--steel); }

@media (prefers-reduced-motion: no-preference) {
  .steps li { animation: tick-in 0.45s ease-out both; }
  .steps li:nth-child(2) { animation-delay: 0.25s; }
  .steps li:nth-child(3) { animation-delay: 0.5s; }
  .steps li:nth-child(4) { animation-delay: 0.75s; }
  @keyframes tick-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 28px; } }

.section-intro { max-width: 640px; margin-bottom: 48px; }

/* Services list (not cards: a ruled list) */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-list h3 { margin: 0; font-size: 1.35rem; }
.service-list p { margin: 0; color: var(--steel); }
.service-list .tag { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: var(--teal); font-weight: 600; }
@media (max-width: 760px) { .service-list li { grid-template-columns: 1fr; gap: 8px; } }

/* Process: a real sequence, so numbered */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.process li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.2rem; font-variation-settings: "wdth" 120; color: var(--teal); line-height: 1; margin-bottom: 12px; }
.process p { color: var(--steel); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Terms */
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.terms li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.terms strong { display: block; color: #fff; font-weight: 650; margin-bottom: 2px; }
.terms span { color: #c9ced6; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

/* Proof figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--ink); padding-top: 28px; }
.figure b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; font-variation-settings: "wdth" 118; line-height: 1; margin-bottom: 8px; }
.figure span { color: var(--steel); }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr; } }

/* Work placeholders */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.work-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.work-shot { aspect-ratio: 16 / 10; background: #dfe3e8; display: grid; place-items: center; color: var(--steel); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.work-body { padding: 22px 24px 24px; }
.work-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 0.95rem; }
.work-body dt { color: var(--steel); }
.work-body dd { margin: 0; }
.placeholder { outline: 2px dashed #c3a52f; outline-offset: -2px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .hint { font-weight: 400; color: var(--steel); font-size: 0.9rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #b9c0c9;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a12d2d; }
.hp { position: absolute; left: -5000px; }

.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-box ul { padding-left: 20px; margin: 0; }
.aside-box li { margin-bottom: 8px; }

/* Prose pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.95rem; color: var(--steel); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--steel); }
