/* patynski.com — consulting landing page
   Palette: Valletta petrol + balcony green, limestone text on dark.
   Type: Archivo variable, using the width axis as the display voice. */

:root {
  --petrol: #12313a;
  --petrol-2: #1c4552;
  --petrol-3: #285b6a;
  --balcony: #5cc4ae;      /* accent on dark */
  --balcony-ink: #166457;  /* accent on light, 6.6:1 on paper */
  --limestone: #ebe3d2;    /* text on dark */
  --limestone-dim: #b8c3bf;
  --paper: #f4f6f5;
  --paper-2: #e8eeec;
  --ink: #0f2329;
  --muted: #4f646b;
  --rule: #cfdad7;

  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 6px;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 40rem) { :root { --gutter: 1.75rem; } }

:focus-visible { outline: 3px solid var(--balcony); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 50;
  background: var(--limestone); color: var(--ink); padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.skip:focus { left: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.3rem;
  background: var(--balcony); color: var(--petrol);
  font: inherit; font-weight: 700; font-size: 1rem;
  font-variation-settings: "wdth" 88;
  text-decoration: none; border: 2px solid var(--balcony); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--limestone); border-color: var(--limestone); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--limestone); border-color: rgba(235, 227, 210, .45); }
.btn--ghost:hover { background: rgba(235, 227, 210, .1); border-color: var(--limestone); color: var(--limestone); }
.btn--small { min-height: 2.4rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 49, 58, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(235, 227, 210, .08);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.75rem; }
.mark {
  color: var(--limestone); text-decoration: none;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 125;
}
.mark span { color: var(--balcony); }
@media (max-width: 23.5rem) { .mark { font-size: 1.2rem; font-variation-settings: "wdth" 100; } }
.top .btn--small { white-space: nowrap; }
.top__nav { display: flex; align-items: center; gap: 1.4rem; }
.top__nav a:not(.btn) {
  display: none; color: var(--limestone-dim); text-decoration: none; font-size: 0.95rem;
}
.top__nav a:not(.btn):hover { color: var(--limestone); }
@media (min-width: 48rem) { .top__nav a:not(.btn) { display: inline; } }

/* ---------- hero ---------- */
.hero {
  background: var(--petrol); color: var(--limestone);
  padding-bottom: 3.5rem;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 0; }
.hero__photo {
  margin: 0 calc(var(--gutter) * -1);
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 62svh;
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18, 49, 58, 0) 45%, rgba(18, 49, 58, .65) 75%, var(--petrol) 100%);
}
.hero__text { position: relative; margin-top: -5.5rem; }
.hero__name {
  font-weight: 600; font-size: 1.05rem; color: var(--balcony);
  font-variation-settings: "wdth" 110; margin-bottom: 0.5rem;
}
.hero h1 {
  font-weight: 850;
  font-variation-settings: "wdth" 62;
  font-size: clamp(3.4rem, 15.5vw, 7.25rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--limestone);
  max-width: 11ch;
}
.hero__sub {
  margin-top: 1.1rem;
  font-size: clamp(1.35rem, 5.2vw, 1.85rem); line-height: 1.15;
  font-weight: 650; font-variation-settings: "wdth" 85;
  color: var(--balcony);
}
.hero__lede {
  margin-top: 1rem; max-width: 36rem;
  font-size: 1.125rem; line-height: 1.55; color: var(--limestone-dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__cta .btn { flex: 1 1 15rem; }
.hero__facts {
  display: grid; gap: 0; margin-top: 2.25rem;
  border-top: 1px solid rgba(235, 227, 210, .15);
  font-size: 0.98rem; color: var(--limestone-dim);
}
.hero__facts li { padding: 0.8rem 0; border-bottom: 1px solid rgba(235, 227, 210, .15); }
.hero__facts strong { color: var(--limestone); font-weight: 650; }

@media (min-width: 56rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: center; }
  .hero__photo { order: 2; margin: 0; aspect-ratio: 4 / 5; max-height: none; border-radius: var(--radius); }
  .hero__photo::after { background: linear-gradient(to bottom, rgba(18,49,58,0) 70%, rgba(18,49,58,.35) 100%); }
  .hero__text { margin-top: 0; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(235, 227, 210, .15); }
  .hero__facts li { border-bottom: 0; padding-right: 1rem; }
}

/* ---------- clients ---------- */
.clients { background: var(--paper-2); padding: 2.75rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.clients__h { font-size: 1rem; font-weight: 600; color: var(--muted); font-variation-settings: "wdth" 100; }
.clients__list {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.35rem; margin-top: 1rem;
  font-weight: 750; font-variation-settings: "wdth" 72;
  font-size: clamp(1.45rem, 5.6vw, 2.2rem); line-height: 1.15; color: var(--ink);
}
.clients__list li:last-child { color: var(--muted); font-weight: 600; }
.clients__note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 4.25rem 0; }
@media (min-width: 56rem) { .section { padding: 6rem 0; } }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head h2, .case h2, .about h2, .contact h2 {
  font-size: clamp(2.3rem, 9vw, 3.75rem);
  font-weight: 800; font-variation-settings: "wdth" 66; line-height: 0.95;
}
.section__head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.section__head--dark p { color: var(--limestone-dim); }

/* services */
.services { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 1.6rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
.service h3 { font-size: 1.5rem; font-weight: 750; font-variation-settings: "wdth" 80; }
.service p { margin-top: 0.7rem; max-width: 42rem; }
.service__fit { color: var(--muted); font-size: 0.98rem; }
.service__fit b { color: var(--balcony-ink); font-weight: 650; }
@media (min-width: 56rem) {
  .service { display: grid; grid-template-columns: 20rem 1fr; column-gap: 3rem; padding: 2rem 0; }
  .service h3 { grid-row: span 2; font-size: 1.75rem; }
  .service p:first-of-type { margin-top: 0; }
}

/* ---------- proof ledger ---------- */
.proof { background: var(--petrol); color: var(--limestone); padding: 4.25rem 0 4.5rem; }
@media (min-width: 56rem) { .proof { padding: 6rem 0; } }
.proof h2 { color: var(--limestone); }

.ledger { display: grid; gap: 2.25rem; }
.ledger__row { display: grid; gap: 0.65rem; }
.ledger__label h3 { font-size: 1.3rem; font-weight: 700; font-variation-settings: "wdth" 85; }
.ledger__label p { margin-top: 0.2rem; color: var(--limestone-dim); font-size: 0.95rem; }
.ledger__bar {
  position: relative; height: 1.1rem; border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--petrol-2) 0 8px, var(--petrol-3) 8px 10px);
  overflow: hidden;
}
.ledger__bar span {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: var(--balcony); border-radius: 3px;
  transition: width 1.4s cubic-bezier(.2, .7, .1, 1);
}
.ledger__row:nth-child(2) .ledger__bar span { transition-delay: .15s; }
.ledger__row:nth-child(3) .ledger__bar span { transition-delay: .3s; }
.ledger.is-in .ledger__bar span { width: max(var(--after), 6px); }
.ledger__vals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem; }
.ledger__vals s { color: var(--limestone-dim); text-decoration-thickness: 2px; text-decoration-color: rgba(184,195,191,.6); }
.ledger__vals strong {
  font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; font-weight: 850;
  font-variation-settings: "wdth" 62; color: var(--balcony); order: -1;
}
.ledger__how { color: var(--limestone-dim); font-size: 0.98rem; max-width: 38rem; }

@media (min-width: 56rem) {
  .ledger__row {
    grid-template-columns: 17rem 1fr 11rem; column-gap: 2rem; row-gap: 0.4rem; align-items: center;
    padding-bottom: 2.25rem; border-bottom: 1px solid rgba(235,227,210,.12);
  }
  .ledger__label { grid-row: span 2; align-self: start; }
  .ledger__vals { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; text-align: right; }
  .ledger__vals strong { order: 0; }
  .ledger__bar { grid-column: 2; grid-row: 1; }
  .ledger__how { grid-column: 2; grid-row: 2; }
}

.proof__more { display: grid; gap: 2.25rem; margin-top: 3rem; }
.proof blockquote {
  margin: 0; padding-left: 1.1rem; border-left: 3px solid var(--balcony);
}
.proof blockquote p {
  font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1.2; font-weight: 600;
  font-variation-settings: "wdth" 80; color: var(--limestone);
}
.proof blockquote footer { margin-top: 0.75rem; color: var(--limestone-dim); font-size: 0.95rem; }
.proof__list { display: grid; gap: 1rem; color: var(--limestone-dim); }
.proof__list strong { color: var(--limestone); font-weight: 650; }
@media (min-width: 56rem) { .proof__more { grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 4rem; } }

/* ---------- case study ---------- */
.case { border-bottom: 1px solid var(--rule); }
.case__grid { display: grid; gap: 2rem; }
.case__name { margin: 1rem 0 0.75rem; font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 110; }
.case__name a { color: var(--balcony-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.case__grid > div > p:last-child { max-width: 36rem; }
.case__facts { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.case__facts div { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.2rem; }
.case__facts dt { font-weight: 700; font-variation-settings: "wdth" 85; color: var(--balcony-ink); }
.case__facts dd { margin: 0; }
@media (min-width: 40rem) { .case__facts div { grid-template-columns: 6.5rem 1fr; gap: 1rem; } }
@media (min-width: 56rem) { .case__grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.steps { display: grid; gap: 1.75rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  font-size: 2.6rem; line-height: 1; font-weight: 850; font-variation-settings: "wdth" 62;
  color: var(--balcony-ink);
}
.steps h3 { font-size: 1.3rem; font-variation-settings: "wdth" 85; }
.steps p { margin-top: 0.4rem; color: var(--muted); }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 3.5rem; border-top: 2px solid var(--ink); }
  .steps li::before { top: 0.75rem; }
}

/* ---------- about ---------- */
.about__grid { display: grid; gap: 1.5rem; }
.about__body { display: grid; gap: 1.1rem; max-width: 40rem; }
.about__body p:nth-child(2) {
  font-size: 1.3rem; line-height: 1.35; font-weight: 600; font-variation-settings: "wdth" 85;
}
.about__talk { padding: 1rem 1.1rem; background: var(--paper-2); border-radius: var(--radius); }
.about__talk b { font-weight: 650; }
@media (min-width: 56rem) { .about__grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* ---------- contact ---------- */
.contact { background: var(--petrol); color: var(--limestone); padding: 4.25rem 0 4.75rem; }
@media (min-width: 56rem) { .contact { padding: 6rem 0; } }
.contact__grid { display: grid; gap: 2.25rem; }
.contact h2 { color: var(--limestone); }
.contact__intro > p { margin-top: 1rem; color: var(--limestone-dim); font-size: 1.1rem; }
.contact__direct { margin-top: 1.75rem; display: grid; gap: 0.6rem; }
.contact__direct a {
  color: var(--limestone); text-decoration-color: var(--balcony); text-decoration-thickness: 2px; text-underline-offset: 4px;
  font-weight: 550;
}
.contact__direct a:hover { color: var(--balcony); }
@media (min-width: 56rem) { .contact__grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.98rem; color: var(--limestone); padding: 0; }
.opt { font-weight: 400; color: var(--limestone-dim); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--limestone);
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 0.8rem 0.9rem; min-height: 3rem;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--balcony); box-shadow: 0 0 0 3px rgba(92,196,174,.35); }
.form [aria-invalid="true"] { border-color: #f0a08f; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { margin-bottom: 0.5rem; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px;
  border: 1.5px solid rgba(235,227,210,.35); color: var(--limestone-dim); font-size: 0.95rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chips input:checked + span { background: var(--balcony); border-color: var(--balcony); color: var(--petrol); font-weight: 650; }
.chips input:focus-visible + span { outline: 3px solid var(--balcony); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.5rem; color: var(--limestone-dim); }
.form__status.ok { color: var(--balcony); font-weight: 600; }
.form__status.err { color: #f6b4a6; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--limestone-dim); padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot ul { display: flex; gap: 1.25rem; }
.foot a { color: var(--limestone); text-decoration: none; }
.foot a:hover { color: var(--balcony); }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ledger .ledger__bar span { width: max(var(--after), 6px); }
}
@media print {
  .top, .form, .hero__cta { display: none; }
  .hero, .proof, .contact { background: #fff; color: #000; }
}

/* ---------- easter eggs (only appear on user action) ---------- */
.null-word {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em; font-weight: 500;
  color: #f0a08f;
  padding: 0 0.3em; margin: 0 0.05em;
  background: rgba(240, 160, 143, .12); border-radius: 3px;
  animation: null-in .35s cubic-bezier(.2,.8,.2,1.3);
}
@keyframes null-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60;
  width: min(30rem, calc(100% - 2rem));
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  padding: 0.85rem 1rem; border-radius: var(--radius);
  background: var(--ink); color: var(--limestone);
  border-left: 4px solid var(--balcony);
  box-shadow: 0 10px 30px rgba(15, 35, 41, .35);
  font-size: 0.98rem; line-height: 1.45;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--balcony); }

html.debug *:not(.toast):not(.toast *) { outline: 1px dashed rgba(92, 196, 174, .55) !important; outline-offset: -1px; }
html.debug body::before {
  content: "DEBUG"; position: fixed; top: 4.4rem; right: 1rem; z-index: 61;
  padding: 0.2rem 0.5rem; border-radius: 3px;
  background: #f0a08f; color: var(--ink);
  font: 700 0.75rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em;
}
