/* Parkweb – site styles
   Headings: Fraunces. Body: DM Sans. Logo: home-smile icon with wordmark.
   The accent colour is provisional and still to be confirmed; change the
   variables below to re-theme the whole site. */

/* Typefaces, hosted with the site (SIL Open Font Licence) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --ink: #15201c;
  --ink-soft: #4a5752;
  --line: #e2e1da;
  --paper: #ffffff;
  --paper-warm: #f6f5f0;
  --accent: #1f5c4a;        /* provisional accent – to be confirmed */
  --accent-dark: #163f34;
  --accent-tint: #e7efeb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 32, 28, .06), 0 12px 32px -12px rgba(21, 32, 28, .18);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--accent-dark); color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .82); }
.section--dark a:not(.btn) { color: #fff; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section--dark .eyebrow { color: #a9d3c3; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--accent-dark); }
.btn--light:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark__icon { width: 1.85rem; height: 1.85rem; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 550; font-size: .98rem;
}
.nav a:not(.btn):hover { background: var(--paper-warm); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); background: var(--accent-tint); }
.nav .btn { margin-left: .6rem; padding: .65rem 1.15rem; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .55rem 1rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--paper-warm), var(--paper)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__art { position: relative; padding: 0 0 3.5rem 0; }
.hero__art .frame:nth-child(2) { position: absolute; width: 58%; right: -4%; bottom: 0; }
.hero__art .frame:first-child { width: 92%; }
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 18em; }

/* Browser frame used for client screenshots */
.frame { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame__bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: #f1f0ea; border-bottom: 1px solid var(--line); }
.frame__bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #cfcdc3; }
.frame__bar span { margin-left: .6rem; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 1518 / 784; object-fit: cover; object-position: top; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; }
.facts span { color: var(--ink-soft); font-size: .95rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card p + p { margin-top: .8em; }
.card__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.4rem; height: 1.4rem; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center/100% no-repeat;
}
.section--dark .ticks li::before { background-color: #4f9a80; }

/* Founder video */
.video { border-radius: var(--radius); overflow: hidden; background: #0d1512; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.founder-sign { margin-top: 1.5rem; font-weight: 650; }
.founder-sign span { display: block; font-weight: 400; opacity: .8; font-size: .95rem; }

/* Portfolio */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2rem; }
.work__item h3 { margin: 1.1rem 0 .25rem; font-size: 1.3rem; }
.work__item p { color: var(--ink-soft); margin-bottom: .5rem; }
.work__item .frame { transition: transform .2s, box-shadow .2s; }
.work__item a.frame-link { display: block; text-decoration: none; }
.work__item a.frame-link:hover .frame { transform: translateY(-3px); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .65rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); }
.case { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case:nth-of-type(even) .case__shot { order: 2; }
.case h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: .8rem; }
.case p { color: var(--ink-soft); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--accent); margin-bottom: .4rem; font-size: .9rem; letter-spacing: .08em; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.6rem; margin: 0; }
.service p { color: var(--ink-soft); max-width: 42em; }
.note { background: var(--paper-warm); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin-top: 1.25rem; font-size: .98rem; }
.note strong { color: var(--ink); }

details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: .75rem 0 0; max-width: 44em; }

/* Call to action band */
.cta { background: var(--accent-dark); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2.25rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: .35em; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 36em; }
.cta .btn-row { margin-top: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.contact-list dt, .contact-list .label { font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { font-size: 1.25rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
address { font-style: normal; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
textarea { min-height: 9rem; resize: vertical; }
.form__hint { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 4rem 0 2rem; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark__icon { color: #6fb59c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 650; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .case, .cta { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case__shot { order: 0; }
  .grid--4, .steps, .facts { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: .75rem; }
  .hero__art { max-width: 36rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4, .steps, .work, .form__row, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .facts strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Small refinements */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.frame-link, .frame-link:hover { text-decoration: none; }
.frame-link .frame__bar span { text-decoration: none; }
@media (min-width: 961px) { .case:nth-of-type(even) { grid-template-columns: .85fr 1.15fr; } }
@media (max-width: 960px) { .hero__art .frame:nth-child(2) { right: 0; } }

/* Hero background flow (drawn by assets/js/flow.js) */
:root { --accent-rgb: 31, 92, 74; } /* keep in step with --accent */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.flow {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
