/* ============================================================================
 * Levanen Underground — public site
 * Same ink/steel design language as Levanen Connect (pc-brand.css): no brand
 * accent color of its own, color comes from the job photos. Archivo condensed
 * for headings, Inter for body, 10/14px radii, hairline borders.
 * ========================================================================== */

:root {
  --ink:       #141414;
  --ink-2:     #1f1f1f;
  --ink-3:     #2b2b2b;
  --steel:     #6b7280;
  --steel-2:   #9ca3af;
  --steel-3:   #c7cbd1;

  --bg:        #f5f5f4;
  --surface:   #ffffff;
  --surface-2: #fafafa;
  --border:    #e5e5e5;
  --border-2:  #d4d4d4;

  --text:      #141414;
  --muted:     #6b7280;
  --faint:     #9ca3af;
  --accent:    #2563eb;

  --radius:    10px;
  --radius-lg: 14px;
  --radius-sm: 7px;

  --shadow:    0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 50px rgba(20,20,20,.16);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-cond: 'Archivo', 'Oswald', 'Arial Narrow', var(--font-sans);

  --header-h:  66px;
  --gutter:    clamp(16px, 4vw, 32px);
  --wrap:      1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* height:auto is load-bearing — the width/height HTML attributes are
   presentational hints, and a fixed height makes the browser ignore
   every aspect-ratio below. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, .cond {
  font-family: var(--font-cond);
  letter-spacing: .005em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--ink); padding: 12px 18px; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .06s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); border-color: var(--ink-3); }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); border-color: var(--surface-2); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.45); border-radius: 8px;
}

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 2px 14px rgba(0,0,0,.2);
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 34px; width: auto; background: #fff; padding: 4px 9px; border-radius: 6px; }
.brand .bt { display: none; }
@media (min-width: 460px) {
  .brand .bt { display: block; }
  .brand .bt b {
    display: block; font-family: var(--font-cond); font-size: 13px; font-weight: 800;
    color: #fff; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1;
  }
  .brand .bt span {
    display: block; font-size: 10px; font-weight: 700; color: var(--steel-2);
    text-transform: uppercase; letter-spacing: .13em;
  }
}

.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-cond); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--steel-2); padding: 10px 12px; border-radius: 6px;
  transition: color .14s ease, background .14s ease;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.header-cta { margin-left: 14px; }

.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); color: #fff; cursor: pointer; padding: 0;
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .m { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 59;
  background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  padding: 10px var(--gutter) 22px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.open { display: block; }
@media (min-width: 980px) { .mobile-nav.open { display: none; } }
.mobile-nav a {
  display: block; padding: 15px 4px; color: #fff;
  font-family: var(--font-cond); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero picture, .hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 46% 44%;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,15,15,.93) 0%, rgba(15,15,15,.82) 40%, rgba(15,15,15,.36) 74%, rgba(15,15,15,.26) 100%),
    linear-gradient(0deg, rgba(15,15,15,.78) 0%, rgba(15,15,15,0) 42%);
}
.hero .wrap {
  position: relative; z-index: 2;
  padding-block: clamp(60px, 9.5vw, 112px) clamp(46px, 6.5vw, 76px);
}
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cond); font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--steel-2); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--steel); flex: none; }
.hero .eyebrow { color: #e5e7eb; }
.hero .eyebrow::before { background: #fff; }

.hero h1 {
  font-size: clamp(34px, 6.2vw, 66px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.012em; line-height: .98;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--steel-3); }
.hero .lede {
  margin-top: 22px; max-width: 58ch;
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.62;
  color: rgba(255,255,255,.85);
}
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine {
  margin-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.62);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.hero .fine span { display: inline-flex; align-items: center; gap: 7px; }
.hero .fine span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--steel-2); flex: none;
}

/* ------------------------------- Stat band ------------------------------- */
.stats {
  background: var(--ink-3);
  border-top: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.stats .grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 820px) { .stats .grid { grid-template-columns: repeat(4, 1fr); } }
.stats .cell {
  padding: 26px 4px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.stats .cell:nth-child(2n) { border-right: none; }
@media (min-width: 820px) {
  .stats .cell { border-bottom: none; border-right: 1px solid rgba(255,255,255,.1); padding-inline: 8px; }
  .stats .cell:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.1); }
  .stats .cell:last-child { border-right: none; }
}
.stats .v {
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -.01em;
  text-transform: uppercase; white-space: nowrap;
  /* Fixed to the numeral size so a smaller word value (below) sits on the same
     baseline and every label in the band stays aligned. */
  height: clamp(28px, 4vw, 40px); display: flex; align-items: flex-end;
}
.stats .v.text { font-size: clamp(19px, 2.4vw, 29px); letter-spacing: .005em; }
.stats .l {
  margin-top: 9px; font-size: 12px; font-weight: 600; color: var(--steel-2);
  text-transform: uppercase; letter-spacing: .1em; line-height: 1.4;
}

/* -------------------------------- Sections ------------------------------- */
section { padding-block: clamp(56px, 8vw, 100px); }
section.alt { background: var(--surface); }
section.dark { background: var(--ink); color: #fff; }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 {
  font-size: clamp(27px, 3.7vw, 42px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.008em; text-wrap: balance;
}
.sec-head .lede {
  margin-top: 16px; font-size: clamp(15.5px, 1.5vw, 17.5px);
  color: var(--muted); line-height: 1.65; max-width: 62ch;
}
.dark .sec-head .lede { color: var(--steel-3); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }

/* --------------------------- Lead-line feature --------------------------- */
.split {
  display: grid; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 940px) { .split { grid-template-columns: 1.05fr .95fr; } }

.feature-list { display: grid; gap: 14px; }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 20px 22px 22px;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink);
}
.feature h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.feature p { margin-top: 7px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.feature .n {
  font-family: var(--font-cond); font-size: 11px; font-weight: 800;
  color: var(--faint); letter-spacing: .14em; display: block; margin-bottom: 7px;
}

.media-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink-3);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.media-frame .cap {
  padding: 14px 18px; background: var(--ink); color: var(--steel-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.media-frame .cap b { color: #fff; font-weight: 700; }
@media (max-width: 939px) { .media-frame { position: static; } .media-frame img { aspect-ratio: 16 / 10; } }

/* --------------------------------- Cards --------------------------------- */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px 22px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.1); box-shadow: none; }
.card .ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dark .card .ico { background: rgba(255,255,255,.08); color: #fff; }
.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 17.5px; font-weight: 800; text-transform: uppercase; }
.card p { margin-top: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.62; }
.dark .card p { color: var(--steel-3); }
.card ul {
  margin: 13px 0 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--muted);
}
.card ul li { padding: 5px 0 5px 18px; position: relative; }
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 7px; height: 2px; background: var(--steel-2);
}

/* -------------------------------- Values --------------------------------- */
.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value { border-top: 2px solid rgba(255,255,255,.22); padding-top: 20px; }
.value .k {
  font-family: var(--font-cond); font-size: clamp(19px, 2.2vw, 23px); font-weight: 900;
  text-transform: uppercase; letter-spacing: .01em;
}
.value p { margin-top: 10px; font-size: 14.5px; color: var(--steel-3); line-height: 1.62; }

/* -------------------------------- Projects ------------------------------- */
.projects {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.project {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink);
  box-shadow: var(--shadow-sm);
  display: block;
}
.project img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.project:hover img { transform: scale(1.04); }
.project .body {
  position: absolute; inset: auto 0 0 0;
  padding: 44px 18px 17px;
  background: linear-gradient(0deg, rgba(12,12,12,.94) 12%, rgba(12,12,12,.72) 52%, rgba(12,12,12,0) 100%);
  color: #fff;
}
.project .loc {
  font-family: var(--font-cond); font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; color: var(--steel-2);
}
.project h3 { margin-top: 5px; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.project p { margin-top: 5px; font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.5; }
/* Per-photo framing: these are field snaps, not shot for a 4:3 crop. */
.project img[data-pos="mid"]    { object-position: 50% 42%; }
.project img[data-pos="lower"]  { object-position: 50% 62%; }
.project img[data-pos="bottom"] { object-position: 50% 100%; }

/* --------------------------------- About --------------------------------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 940px) { .about-grid { grid-template-columns: .85fr 1.15fr; } }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prose p { font-size: clamp(15.5px, 1.5vw, 17px); color: var(--muted); line-height: 1.72; }
.prose p + p { margin-top: 16px; }
.prose p strong { color: var(--text); font-weight: 600; }
.signature {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.signature .nm { font-family: var(--font-cond); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.signature .ti { font-size: 13px; color: var(--muted); }

.callout {
  margin-top: 28px; background: var(--bg); border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius); padding: 18px 20px;
}
.callout .k {
  font-family: var(--font-cond); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.callout p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.callout a { color: var(--accent); font-weight: 600; }
.callout a:hover { text-decoration: underline; }

/* -------------------------------- Contact -------------------------------- */
.contact-grid { display: grid; gap: 18px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.fld { display: block; margin-bottom: 16px; }
.fld > span {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px;
}
.fld > span i { font-style: normal; color: var(--faint); font-weight: 600; text-transform: none; letter-spacing: 0; }
input, select, textarea {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  padding: 12px 13px; width: 100%;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 18px; padding-right: 38px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.two-up { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .two-up { grid-template-columns: 1fr 1fr; } }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { margin-top: 13px; font-size: 12.5px; color: var(--faint); line-height: 1.55; text-align: center; }
.hp { position: absolute; left: -9999px; }

.info-card {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
}
.info-card h3 { font-size: 19px; font-weight: 800; text-transform: uppercase; }
.info-row { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row:last-of-type { border-bottom: none; }
.info-row svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--steel-2); }
.info-row .k {
  font-size: 11px; font-weight: 700; color: var(--steel-2);
  text-transform: uppercase; letter-spacing: .1em;
}
.info-row .v { font-size: 15.5px; font-weight: 600; margin-top: 3px; line-height: 1.45; }
.info-row a.v:hover { text-decoration: underline; }
.info-card .btn { width: 100%; margin-top: 8px; }
.info-card .areas { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.info-card .areas .k {
  font-size: 11px; font-weight: 700; color: var(--steel-2);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #e5e7eb;
}

/* --------------------------------- Footer -------------------------------- */
.site-footer { background: var(--ink-2); color: var(--steel-2); padding: 48px 0 30px; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img.fl { height: 40px; background: #fff; padding: 6px 11px; border-radius: 7px; }
.site-footer p.tag { margin-top: 15px; font-size: 14px; line-height: 1.6; max-width: 40ch; }
.foot-col h4 {
  font-size: 11.5px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 13px;
}
.foot-col a, .foot-col p { display: block; font-size: 14px; padding: 5px 0; color: var(--steel-2); }
.foot-col a:hover { color: #fff; }
.foot-bot {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12.5px; color: var(--steel);
}

/* --------------------------------- Simple pages -------------------------- */
.simple { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.simple .wrap { max-width: 620px; }
.simple h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; text-transform: uppercase; }
.simple p { margin-top: 16px; font-size: 17px; color: var(--muted); line-height: 1.65; }
.simple .btn { margin-top: 28px; }
.simple .tick {
  width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.simple .tick svg { width: 30px; height: 30px; }

/* ------------------------------ Motion / print --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .project:hover img { transform: none; }
}

/* Contact form result — shown inline under the submit button */
.form-status {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; line-height: 1.5;
}
.form-status.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.form-status.error   { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.form-card .btn:disabled { opacity: .6; cursor: progress; }
