/* xLiminal — static rebuild of the Wix Studio "Xliminal 2" site.
   Measurements taken from the live site at 1440px and 390px.
   Type: Helvetica Neue where the OS has it (macOS/iOS, with a true Light weight);
   elsewhere TeX Gyre Heros, a free Helvetica-metric clone (GUST Font License). */
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/texgyreheros-italic.otf") format("opentype"); font-weight: 300 400; font-style: italic; font-display: swap; }
:root {
  --bg: #d8d2c6;          /* page */
  --card: #ffffff;
  --ink: #3b3a3a;
  --ink-soft: #3b3a3a;
  --accent: #572f13;      /* current-page link */
  --tan: #bb9f81;         /* projects card */
  --clay: #cda17c;        /* footer */
  --rule: #3b3a3a;
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 3vw;          /* 43px at 1440 */
  --pad: 50px;            /* card padding */
  --font: "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
  --light: 300;
  --roman: 400;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: var(--light); font-size: 16px; line-height: 1.6; padding: 44px var(--gutter) 44px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: var(--roman); line-height: 1.2; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Cards (every section is a rounded card) ── */
.card { background: var(--card); border-radius: var(--radius); padding: var(--pad); margin-bottom: 44px; position: relative; }
.card.tan { background: var(--tan); }
.card.flush { padding: 25px; }            /* media-edge cards */

/* ── Header ── */
.site-head { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 46px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink); }
.brand svg { width: 23px; height: 28px; fill: currentColor; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 18px; border-radius: 23px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: var(--light); cursor: pointer; margin-top: 2px; }
.menu-btn svg { width: 22px; height: 14px; fill: currentColor; }
.hero .site-head { position: absolute; left: var(--pad); right: var(--pad); top: 50px; margin: 0; z-index: 2; }
.hero .brand { color: #fff; }
.hero .menu-btn { background: #fff; color: var(--ink); }

/* ── Menu overlay ── */
.menu-panel { position: fixed; inset: 0; background: rgba(59, 58, 58, 0.98); color: #fff; z-index: 50; display: none; padding: 50px calc(var(--gutter) + var(--pad)); }
.menu-panel.open { display: block; }
.menu-panel .top { display: flex; align-items: center; justify-content: space-between; }
.menu-panel .brand { color: #fff; }
.menu-panel .close { height: 46px; padding: 0 20px; border-radius: 23px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.menu-panel nav { margin-top: 12vh; display: flex; flex-direction: column; gap: 10px; }
.menu-panel nav a { font-size: clamp(34px, 4.5vw, 64px); line-height: 1.2; font-weight: var(--roman); letter-spacing: -0.02em; color: #fff; opacity: .9; }
.menu-panel nav a:hover, .menu-panel nav a.current { opacity: 1; color: var(--clay); }
.menu-panel .small { position: absolute; left: calc(var(--gutter) + var(--pad)); bottom: 50px; display: flex; gap: 28px; font-size: 14px; opacity: .8; }
body.menu-open { overflow: hidden; }

/* ── Type scale (desktop values from the live site) ── */
.eyebrow { font-size: 18px; font-weight: var(--light); margin-bottom: 18px; }
.display { font-size: 49.5px; letter-spacing: -1px; line-height: 1.18; }
.h-page { font-size: 45.5px; letter-spacing: -0.5px; line-height: 1.15; }
.h-section { font-size: 45.5px; letter-spacing: -0.5px; line-height: 1.15; }
.h-item { font-size: 24.6px; line-height: 1.25; }
.h-value { font-size: 27px; line-height: 1.25; }
.lead { font-size: 22.5px; line-height: 1.6; }
.body { font-size: 16px; line-height: 1.6; }
.body p + p { margin-top: 26px; }
.desc { font-size: 18px; line-height: 1.6; }
.num { font-size: 16px; }

/* ── Round outline button ── */
.round { display: inline-flex; align-items: center; justify-content: center; width: 126px; height: 126px; border-radius: 50%; border: 1px solid var(--ink); font-size: 14px; font-weight: var(--roman); line-height: 1.4; text-align: center; text-transform: uppercase; padding: 0 14px; transition: background .25s, color .25s; }
.round:hover { background: var(--ink); color: #fff; }
.tan .round:hover { background: var(--ink); }

/* ── Home: hero ── */
.hero { padding: 0; height: 586px; overflow: hidden; border-radius: var(--radius); }
.hero video, .hero img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero h1 { position: absolute; left: 57px; top: 176px; max-width: 840px; color: #fff; font-size: 65.25px; line-height: 1.2; letter-spacing: -1.3px; z-index: 1; }

/* ── Two-column text/media sections ── */
.split { display: grid; grid-template-columns: 1fr 45.8%; gap: 0 60px; align-items: start; padding: 25px 25px 25px var(--pad); min-height: 904px; }
.split .text { padding-top: 31px; max-width: 520px; }
.split .display { max-width: 470px; margin-bottom: 44px; }
.split .media { border-radius: var(--radius-sm); overflow: hidden; height: 854px; }
.split .media video, .split .media img { width: 100%; height: 100%; object-fit: cover; }
.mission-media img { object-position: 72% 50%; }
.split.rev { grid-template-columns: 48.4% 1fr; }
.split.rev .media { height: 1050px; order: -1; }
.split.rev .text { padding-top: 0; max-width: 540px; }
.split.rev .display { font-size: 45.5px; letter-spacing: -1.8px; margin-bottom: 170px; }
.split.rev .lead { margin-bottom: 150px; }

/* ── Numbered list rows (What We Provide) ── */
.rows { margin-top: 32px; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 68px 268px 1fr; gap: 0; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--rule); min-height: 146px; }
.row .desc { max-width: 500px; }
.rows + .center { margin-top: 38px; }
.center { text-align: center; }

/* ── Latest projects mosaic ── */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 65px; margin-top: 50px; align-items: start; }
.mosaic .col { display: flex; flex-direction: column; gap: 50px; }
.mosaic .col.mid { padding-top: 190px; }
.tile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; height: 375px; color: #fff; }
.tile.tall { height: 670px; }
.tile.med { height: 425px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(55, 40, 25, 0.5); }
.tile .n { position: absolute; left: 30px; bottom: 68px; font-size: 45.5px; line-height: 1; z-index: 1; }
.tile .t { position: absolute; left: 30px; bottom: 32px; font-size: 18px; z-index: 1; }

/* ── Page header card (title left, intro right) ── */
.intro { display: grid; grid-template-columns: 53.6% 1fr; gap: 0; padding-bottom: 26px; }
.intro .h-page { max-width: 560px; }
.intro .lead { margin-bottom: 36px; }
.intro .body { max-width: 580px; }
.wide-media { margin: 10px -25px -25px; border-radius: var(--radius-sm); overflow: hidden; height: 613px; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Company: story / values ── */
.story { display: grid; grid-template-columns: 1fr 50%; gap: 0 60px; padding: 25px 25px 25px var(--pad); min-height: 587px; }
.story .text { padding-top: 25px; }
.story .h-section { margin-bottom: 150px; }
.story .body { max-width: 570px; }
.story .media { border-radius: var(--radius-sm); overflow: hidden; height: 537px; }
.story .media img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 63px; }
.values .num { font-size: 18px; margin-bottom: 14px; }
.values .h-value { margin-bottom: 22px; }

/* ── Projects list (expertise) ── */
.plist { margin-top: 30px; border-top: 1px solid var(--rule); }
.plist .prow { display: grid; grid-template-columns: 296px 317px 1fr 126px; gap: 0 20px; align-items: center; padding: 33px 0; border-bottom: 1px solid var(--rule); }
.plist .thumb { width: 221px; height: 215px; border-radius: var(--radius-sm); overflow: hidden; }
.plist .thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist .desc { max-width: 330px; }
.plist .prow:last-child { border-bottom: 0; }

/* ── Solutions grid ── */
.solve { display: grid; grid-template-columns: 1fr 1fr; gap: 100px 50px; margin-top: 60px; }
.solve .item { display: grid; grid-template-columns: 237px 1fr; gap: 0 32px; align-items: start; }
.solve .pic { width: 237px; height: 237px; border-radius: var(--radius-sm); overflow: hidden; }
.solve .pic img { width: 100%; height: 100%; object-fit: cover; }
.solve .num { margin-bottom: 8px; }
.solve .h-item { margin-bottom: 20px; }

/* ── Project page ── */
.project { padding: 25px; }
.project .h-page { padding: 25px 25px 24px; }
.project .pgrid { display: grid; grid-template-columns: 740px 1fr; gap: 24px; align-items: start; }
.project .lead-img { border-radius: var(--radius-sm); overflow: hidden; height: 1167px; }
.project .lead-img img, .project .side-img img, .project .full-img img { width: 100%; height: 100%; object-fit: cover; }
.project .facts { padding: 0 0 0 0; }
.project .facts h3 { font-size: 24.6px; margin-bottom: 10px; }
.project .facts p { margin-bottom: 36px; max-width: 540px; }
.project .side-img { border-radius: var(--radius-sm); overflow: hidden; height: 470px; margin-top: 28px; }
.project .full-img { border-radius: var(--radius-sm); overflow: hidden; height: 560px; margin-top: 26px; }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: 1fr 400px; gap: 0 50px; min-height: 620px; }
.contact .h-page { margin-bottom: 0; }
.contact .lead { margin-top: auto; max-width: 540px; }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; align-content: start; padding-top: 115px; }
.contact label { display: block; font-size: 14px; }
.contact input, .contact textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font: inherit; font-size: 16px; padding: 12px 0 10px; outline: none; border-radius: 0; }
.contact textarea { min-height: 96px; resize: vertical; }
.contact .full { grid-column: 1 / -1; }
.contact .submit { grid-column: 1 / -1; justify-self: start; width: 196px; height: 44px; border-radius: 22px; border: 1px solid var(--rule); background: transparent; font: inherit; font-size: 14px; font-weight: var(--roman); text-transform: uppercase; cursor: pointer; margin-top: 10px; }
.contact .submit:hover { background: var(--ink); color: #fff; }
.photo-card { padding: 0; overflow: hidden; height: 680px; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.address { min-height: 200px; display: flex; align-items: center; font-size: 18px; }

/* ── Simple text pages (legal, template filler) ── */
.doc { max-width: 760px; }
.doc .h-page { margin-bottom: 40px; }
.doc h3 { font-size: 24.6px; margin: 36px 0 12px; }
.doc p { margin-bottom: 16px; }
.doc ul { margin: 0 0 16px 20px; }
.doc a { text-decoration: underline; }

/* ── Footer ── */
.site-foot { background: var(--clay); border-radius: var(--radius); padding: 50px var(--pad) 36px; margin-bottom: 0; display: grid; grid-template-columns: 271px 1fr auto; gap: 0; min-height: 314px; font-size: 14px; }
.site-foot .brand { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; }
.site-foot .brand svg { width: 24px; height: 29px; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; line-height: 1.4; }
.site-foot nav a.current { color: var(--accent); }
.site-foot .social a { text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; align-self: end; padding-top: 70px; }

/* ── Motion: gentle reveal like the Wix fade ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Tablet ── */
@media (max-width: 1100px) {
  :root { --pad: 36px; }
  .hero h1 { font-size: 52px; left: 40px; }
  .split, .split.rev, .story, .intro, .contact { grid-template-columns: 1fr; }
  .split .media, .split.rev .media { height: auto; aspect-ratio: 4 / 5; order: 0; margin-top: 30px; }
  .split .display, .split.rev .display, .story .h-section { margin-bottom: 30px; }
  .split.rev .lead { margin-bottom: 30px; }
  .story .media { margin-top: 30px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .col.mid { padding-top: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .plist .prow { grid-template-columns: 240px 1fr; row-gap: 16px; }
  .plist .prow .round { grid-column: 2; }
  .solve { grid-template-columns: 1fr; gap: 50px; }
  .project .pgrid { grid-template-columns: 1fr; }
  .project .lead-img { height: auto; aspect-ratio: 3 / 4; }
  .contact form { padding-top: 40px; }
}

/* ── Phone (390px reference) ── */
@media (max-width: 700px) {
  :root { --gutter: 20px; --pad: 20px; }
  body { padding: 20px var(--gutter) 20px; font-size: 16px; }
  .card { padding: 24px 20px 28px; margin-bottom: 20px; }
  .site-head { margin: 0 0 30px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand svg { width: 18px; height: 22px; }
  .menu-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .menu-btn span { display: none; }
  .menu-btn svg { width: 18px; height: 12px; }
  .hero { height: 370px; }
  .hero .site-head { left: 20px; right: 20px; top: 24px; }
  .hero h1 { left: 14px; top: 54px; max-width: 300px; font-size: 27px; letter-spacing: -0.3px; line-height: 1.25; }
  .eyebrow { font-size: 14px; margin-bottom: 12px; }
  .display, .split.rev .display { font-size: 24px; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 30px; }
  .h-page, .h-section { font-size: 30px; letter-spacing: -0.3px; }
  .h-item { font-size: 22px; }
  .h-value { font-size: 22px; }
  .lead { font-size: 18px; line-height: 1.5; }
  .desc { font-size: 16px; }
  .split, .split.rev { padding: 24px 20px 20px; min-height: 0; gap: 0; }
  .split .text { padding: 0 0 0 6px; }
  .split .media, .split.rev .media { height: auto; aspect-ratio: 310 / 207; margin: 110px 0 0; }
  .split.rev .media { aspect-ratio: 310 / 280; margin-top: 40px; order: 1; }
  .mission-media img { object-position: 50% 50%; }
  .split.rev .lead { margin-bottom: 24px; }
  .split .round { margin-top: 10px; }
  .rows { margin-top: 24px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; min-height: 0; }
  .row .num { font-size: 14px; }
  .mosaic { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .mosaic .col { gap: 20px; }
  .tile, .tile.tall, .tile.med { height: 310px; }
  .tile.tall { height: 310px; }
  .tile .n { left: 24px; bottom: 60px; font-size: 32px; }
  .tile .t { left: 24px; bottom: 30px; font-size: 16px; }
  .mosaic + .center { margin-top: 40px; }
  .intro { padding-bottom: 0; }
  .intro .h-page { margin-bottom: 24px; }
  .wide-media { margin: 24px -4px -8px; height: auto; aspect-ratio: 4 / 3; }
  .story { padding: 24px 20px 20px; min-height: 0; }
  .story .text { padding-top: 0; }
  .story .media { height: auto; aspect-ratio: 4 / 3; margin-top: 28px; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .plist .prow { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .plist .thumb { width: 100%; height: auto; aspect-ratio: 310 / 220; }
  .plist .prow .round { grid-column: 1; }
  .solve { gap: 40px; margin-top: 30px; }
  .solve .item { grid-template-columns: 1fr; gap: 18px; }
  .solve .pic { width: 100%; height: auto; aspect-ratio: 1; }
  .project { padding: 20px; }
  .project .h-page { padding: 4px 0 20px; }
  .project .lead-img { height: auto; aspect-ratio: 3 / 4; }
  .project .side-img, .project .full-img { height: auto; aspect-ratio: 4 / 3; margin-top: 20px; }
  .project .facts h3 { font-size: 22px; }
  .project .facts p { margin-bottom: 24px; }
  .contact { min-height: 0; }
  .contact .lead { margin: 24px 0 10px; }
  .contact form { grid-template-columns: 1fr; padding-top: 20px; }
  .photo-card { height: 300px; }
  .address { min-height: 0; padding: 28px 20px; font-size: 16px; }
  .site-foot { grid-template-columns: 1fr; padding: 30px 20px 30px; min-height: 0; gap: 24px; }
  .site-foot .legal { padding-top: 40px; }
  .menu-panel { padding: 24px 20px; }
  .menu-panel nav { margin-top: 60px; gap: 14px; }
  .menu-panel .small { left: 20px; bottom: 30px; flex-direction: column; gap: 10px; }
}
