/* ==========================================================================
   Cornes Designs — public site
   Standalone stylesheet (does not load the operator app's styles.css).
   Same token discipline: emphasis from contrast, colour only for meaning.
   ========================================================================== */

:root {
  color-scheme: light;
  --ground: #FBFAF7;
  --surface-1: #FFFFFF;
  --surface-2: #F4F2ED;
  --hairline: #E3DFD6;
  --text: #16181C;
  --text-2: #4F555F;
  --text-3: #6B717B;
  --accent: #0F6E64;
  --accent-deep: #0A544C;
  --accent-wash: rgba(15, 110, 100, .08);
  --neg: #B03A2E;
  --emph-bg: #16181C;
  --emph-fg: #FBFAF7;
  --focus: #0F6E64;
  --e1: 0 1px 2px rgba(0,0,0,.05), 0 4px 12px -4px rgba(0,0,0,.07);
  --e2: 0 2px 6px rgba(0,0,0,.06), 0 18px 40px -12px rgba(0,0,0,.10);
  --gut: 24px;
  --measure: 62ch;
  --r: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0B0C0E;
    --surface-1: #121317;
    --surface-2: #191B20;
    --hairline: #262A32;
    --text: #ECEDEF;
    --text-2: #A9AEB8;
    --text-3: #7A808C;
    --accent: #3FBFAE;
    --accent-deep: #2A9C8D;
    --accent-wash: rgba(63,191,174,.12);
    --neg: #E0655B;
    --emph-bg: #EDEAE4;
    --emph-fg: #0B0C0E;
    --focus: #3FBFAE;
    --e1: 0 1px 2px rgba(0,0,0,.28), 0 4px 12px -4px rgba(0,0,0,.35);
    --e2: 0 2px 6px rgba(0,0,0,.30), 0 18px 40px -12px rgba(0,0,0,.50);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.021em; margin: 0; font-weight: 620; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }

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

.wrap { width: min(1080px, 100% - calc(var(--gut) * 2)); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* ---- header ------------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.mark { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.mark .glyph {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--emph-bg); color: var(--emph-fg);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: .94rem; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a.btn { text-decoration: none; }
@media (max-width: 620px) {
  .nav .hide-sm { display: none; }
  .nav { gap: 10px; }
  .site-head .wrap { gap: 10px; }
  .mark { font-size: .97rem; }
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r);
  font: inherit; font-size: .97rem; font-weight: 550; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emph-bg); color: var(--emph-fg); }
.btn-primary:hover { background: var(--text); }
.btn-ghost { border-color: var(--hairline); background: var(--surface-1); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { height: 38px; padding: 0 14px; font-size: .9rem; }

/* ---- hero -------------------------------------------------------------- */

.hero { padding: clamp(56px, 11vw, 104px) 0 clamp(40px, 7vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 550; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: 999px; padding: 6px 12px; margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero p.lede { margin-top: 20px; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- generic section --------------------------------------------------- */

section { padding: clamp(46px, 8vw, 84px) 0; border-top: 1px solid var(--hairline); scroll-margin-top: 78px; }
.sec-head { margin-bottom: 34px; }
.sec-head p { margin-top: 12px; color: var(--text-2); }

/* ---- cards ------------------------------------------------------------- */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--e1);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .97rem; }
.card .num {
  font-variant-numeric: tabular-nums;
  font-size: .8rem; font-weight: 600; color: var(--text-3);
  letter-spacing: .06em; display: block; margin-bottom: 12px;
}

/* ---- process rail ------------------------------------------------------ */

.rail { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 34px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 0; }
.step .pip {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface-1);
  display: grid; place-items: center;
  font-size: .84rem; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--text-2); margin-top: 5px; font-size: .97rem; }

/* ---- contact ----------------------------------------------------------- */

.contact-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

form.enquiry { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 550; color: var(--text-2); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .88rem; color: var(--text-3); }
.form-msg { font-size: .95rem; border-radius: var(--r); padding: 12px 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--accent-wash); color: var(--accent-deep); }
.form-msg.err { background: color-mix(in srgb, var(--neg) 10%, transparent); color: var(--neg); }

.direct { display: grid; gap: 14px; align-content: start; }
.direct a.mail {
  font-size: 1.04rem; font-weight: 550; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  justify-self: start;
}

/* ---- footer ------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 46px;
  color: var(--text-3); font-size: .9rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.site-foot a { color: var(--text-3); text-decoration: none; }
.site-foot a:hover { color: var(--text-2); }
