/* ============================================================
   Minted Signals · site styles
   Palette and type follow the deck system: forest, moss, sage,
   stone, ink, fog. Display serif set light. Inter for the rest.
   The field: a sparse grid of dots with the four deck marks
   (build, scale, partner, systems) scattered through it. It pings
   once on load, then only stirs under the cursor.
   ============================================================ */

:root {
  --forest: #0F2B22;
  --moss: #345B48;
  --sage: #A3B29E;
  --stone: #E7E2D7;
  --ink: #0D0E0E;
  --fog: #F0F5F2;

  --line: rgba(15, 43, 34, 0.14);
  --line-strong: rgba(15, 43, 34, 0.30);
  --sage-soft: rgba(163, 178, 158, 0.30);

  --serif: "Test Domaine Text Light", "Domaine Text Light", "Domaine Text",
    "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 6vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; display: block; }
::selection { background: var(--forest); color: var(--stone); }

/* the four marks, used inline via <use href="#g-…"> */
.mark { display: inline-block; width: 14px; height: 14px; color: var(--sage); }
.mark svg { width: 100%; height: 100%; display: block; stroke: currentColor; fill: none; stroke-width: 9; stroke-linecap: square; }

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss); }
.on-forest .eyebrow { color: var(--sage); }

.display { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 7.6vw, 104px); line-height: 0.98; letter-spacing: -0.016em; margin: 0; max-width: 12ch; color: var(--ink); }
.display .accent, .title .accent, .lead .accent { color: var(--moss); }

.title { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -0.012em; margin: 0; max-width: 22ch; text-wrap: balance; color: var(--ink); }
.tagline { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.38; max-width: 38ch; margin: 0; color: var(--ink); }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--moss); max-width: 52ch; margin: 0; }

/* ------------------------------------------------------------
   Wordmark, buttons, links
   ------------------------------------------------------------ */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.55em; white-space: nowrap; color: var(--ink); }
.wordmark .wm-a { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }
.wordmark .wm-b { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss); line-height: 1; }
.on-forest .wordmark { color: var(--stone); }
.on-forest .wordmark .wm-b { color: var(--sage); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; background: var(--forest); color: var(--stone); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; line-height: 1; border-radius: 2px; white-space: nowrap; transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.btn:hover { background: var(--moss); transform: translateY(-1px); }
.btn .arr { font-family: var(--serif); font-size: 15px; line-height: 1; }
.on-forest .btn { background: var(--stone); color: var(--forest); }
.on-forest .btn:hover { background: var(--fog); }

.link { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--forest); border-bottom: 1px solid var(--sage); padding-bottom: 2px; transition: border-color 0.2s; }
.link:hover { border-color: var(--forest); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(240, 245, 242, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .bar { max-width: var(--max); margin: 0 auto; padding: 20px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--moss); }
.nav a.btn { color: var(--stone); padding: 10px 16px; font-size: 12px; margin-left: 8px; border-bottom: 0; }
.nav a.btn:hover { color: var(--stone); background: var(--moss); }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.stone { background: var(--stone); }
.section .head { margin-bottom: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.section .head .lead { margin-top: 2px; }

/* ------------------------------------------------------------
   Hero with the field
   ------------------------------------------------------------ */
.hero { position: relative; min-height: calc(100svh - 66px); display: flex; flex-direction: column; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; width: 100%; flex: 1; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.hero .content { grid-column: 2; display: flex; flex-direction: column; gap: 30px; position: relative; }
/* a soft halo in the page color sits behind the text so the field stays quiet around it */
.hero .content::before { content: ""; position: absolute; inset: -40px -64px; background: var(--fog); opacity: 0.94; border-radius: 120px; filter: blur(56px); z-index: -1; pointer-events: none; }
.hero .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero.short { min-height: 0; }
.hero.short .wrap { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero.short .display { max-width: 15ch; font-size: clamp(40px, 6.6vw, 90px); }

/* ------------------------------------------------------------
   Origin: one centered sentence
   ------------------------------------------------------------ */
.origin { padding: clamp(72px, 10vw, 140px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.origin .big { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.01em; max-width: 24ch; margin: 0; }
.origin .big .accent { color: var(--moss); }
.origin .sub { font-size: 14px; color: var(--moss); max-width: 44ch; line-height: 1.6; }

/* ------------------------------------------------------------
   Services: four textured cards. On hover each mark turns into
   its counterpart: the x becomes a plus, the plus becomes an x,
   the star turns a quarter, the arrow lifts to point straight up.
   ------------------------------------------------------------ */
.services .title { max-width: 20ch; }
.services .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 0; }
.services .row { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 32px; border: 1px solid var(--line-strong); position: relative; overflow: hidden; background: var(--stone); }
.services .row::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(circle, rgba(163, 178, 158, 0.6) 0 1px, transparent 1.5px); background-size: 24px 24px; background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%); }
.services .row > * { position: relative; }
.services .row .mark { width: 22px; height: 22px; margin: 0 0 8px; transition: color 0.3s, transform 0.55s var(--ease); }
.services .row .mark svg { stroke-width: 6; }
.services .row .desc { padding-top: 0; }
.services .row:hover { background: var(--fog); }

/* ------------------------------------------------------------
   Rows: services, portfolio
   ------------------------------------------------------------ */
.rows { border-top: 1px solid var(--moss); }
.row { display: grid; grid-template-columns: 40px minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 0 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.row .mark { margin-top: 12px; transition: color 0.3s, transform 0.4s var(--ease); }
.row:hover .mark { color: var(--moss); transform: scale(1.2) rotate(90deg); }
.row[data-mark="scale"]:hover .mark, .row[data-mark="systems"]:hover .mark { transform: scale(1.2) rotate(45deg); }
.row[data-mark="build"]:hover .mark { transform: scale(1.2) rotate(90deg); }
.row[data-mark="partner"]:hover .mark { transform: scale(1.2) rotate(-45deg); }
.row .name { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.row .name a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.row .name a:hover { border-color: var(--moss); }
.row .desc { max-width: 52ch; padding-top: 6px; }
.row .desc .domain { display: inline-block; font-size: 12px; letter-spacing: 0.06em; color: var(--moss); margin-top: 6px; }
.row:hover { background: rgba(240, 245, 242, 0.7); }
.section.stone .row:hover { background: var(--fog); }
.tag { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); background: var(--sage-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.row.with-status { grid-template-columns: 40px minmax(0, 0.9fr) minmax(0, 1.2fr) auto; align-items: center; }
.row.with-status .mark { margin-top: 0; }
.row.with-status .desc { padding-top: 0; }
.row.with-status .status { justify-self: end; }

/* ------------------------------------------------------------
   Three-up
   ------------------------------------------------------------ */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three .cell { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.three .cell .who { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--moss); }
.three .cell h3 { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.three .cell p { max-width: 30ch; font-size: 14px; color: var(--ink); }

/* ------------------------------------------------------------
   Proof grid
   ------------------------------------------------------------ */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.proof .cell { display: flex; flex-direction: column; padding: 26px 26px 24px; min-height: 200px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background 0.3s; }
.proof .cell:hover { background: var(--fog); }
.proof .logo { height: 20px; width: auto; max-width: 110px; object-fit: contain; object-position: left center; opacity: 0.72; filter: grayscale(1); transition: opacity 0.3s; }
.proof .logo.tall { height: 24px; }
.proof .cell:hover .logo { opacity: 1; }
.proof .n { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 3.8vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--forest); margin-top: auto; padding-top: 34px; }
.proof .d { font-size: 13px; line-height: 1.45; color: var(--ink); margin-top: 10px; max-width: 28ch; }
.proof .d b { color: var(--moss); font-weight: 600; }

/* ------------------------------------------------------------
   Team
   ------------------------------------------------------------ */
.section.team { position: relative; overflow: hidden; }
.section.team .wrap { position: relative; z-index: 1; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.tm .shot { width: 100%; aspect-ratio: 1 / 1; background: rgba(251, 250, 246, 0.6); border: 1px solid var(--sage-soft); border-radius: 10px; overflow: hidden; margin-bottom: 14px; transition: background 0.5s var(--ease), transform 0.6s var(--ease), border-color 0.5s; }
.tm .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(0.25); transition: filter 0.4s var(--ease); }
.tm .nm { transition: color 0.4s; }
/* a signal reaching a person: the frame clears, the photo comes to color, the name warms */
.tm:hover .shot, .tm.lit .shot { background: rgba(251, 250, 246, 0.12); border-color: var(--sage); transform: translateY(-3px); }
.tm:hover .shot img, .tm.lit .shot img { filter: grayscale(0); }
.tm:hover .nm, .tm.lit .nm { color: var(--moss); }
.tm .nm { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.tm .role { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); margin-top: 5px; }
.tm .bio { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin-top: 10px; max-width: 34ch; }

.logos { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.logos .xlabel { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--moss); margin-right: 8px; }
.logos .set { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.logos img { height: 22px; width: auto; opacity: 0.7; filter: grayscale(1); }

/* ------------------------------------------------------------
   Close: forest, with the field
   ------------------------------------------------------------ */
.close { position: relative; background: var(--forest); color: var(--stone); overflow: hidden; }
.close .wrap { position: relative; z-index: 1; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); pointer-events: none; }
.close .text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: max-content; max-width: 100%; }
.close .text > * { pointer-events: auto; }
.close .text::before { content: ""; position: absolute; inset: -40px -64px; background: var(--forest); opacity: 0.9; border-radius: 120px; filter: blur(56px); z-index: -1; pointer-events: none; }
.close h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.016em; margin: 0; max-width: 18ch; text-wrap: balance; color: var(--stone); }
.close h2 .accent { color: var(--sage); }
.close p { color: rgba(231, 226, 215, 0.82); max-width: 52ch; font-size: 16px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--forest); color: var(--sage); border-top: 1px solid rgba(163, 178, 158, 0.22); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .links a { color: var(--sage); transition: color 0.2s; }
.site-footer .links a:hover { color: var(--stone); }
.site-footer .copy { color: rgba(163, 178, 158, 0.7); }

/* ------------------------------------------------------------
   404
   ------------------------------------------------------------ */
.notfound { min-height: calc(100svh - 66px); display: flex; align-items: center; }
.notfound .wrap { display: flex; flex-direction: column; gap: 26px; padding-top: 80px; padding-bottom: 80px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .content { grid-column: 1; }
  .row { grid-template-columns: 30px minmax(0, 1fr); }
  .row .desc { grid-column: 2; }
  .row.with-status { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .row.with-status .desc { grid-column: 2 / span 2; }
  .row.with-status .status { grid-column: 3; grid-row: 1; }
  .three { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .site-header .bar { flex-wrap: wrap; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
  .nav { gap: 18px; width: 100%; justify-content: space-between; }
  .nav a { font-size: 11px; letter-spacing: 0.12em; }
  .nav a.btn { margin-left: 0; padding: 9px 14px; }
  .hero { min-height: 0; }
  .display { max-width: 11ch; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .row .mark { display: none; }
  .services .rows { grid-template-columns: 1fr; gap: 12px; }
  .services .row { padding: 24px 20px 26px; }
  .services .row .mark { display: block; }
  .row .desc { grid-column: 1; }
  .row.with-status { grid-template-columns: 1fr; }
  .row.with-status .desc, .row.with-status .status { grid-column: 1; grid-row: auto; justify-self: start; }
  .three { grid-template-columns: 1fr; gap: 22px; }
  .proof { grid-template-columns: 1fr; }
  .proof .cell { min-height: 0; padding: 22px 20px; }
  .proof .n { padding-top: 22px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .tm .nm { font-size: 17px; }
  .tm .bio { font-size: 12.5px; }
  .logos .set { gap: 22px; }
  .logos img { height: 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
