@import url("fonts.css");

/* =========================================================================
   Rexo Systems — Direction: PRECISE / SWISS
   International Typographic Style. Visible grid, hairline rules, grotesque
   type, monospaced coordinates. Structure and type do the work.
   ========================================================================= */

:root {
  /* palette — restrained, light-dominant */
  --paper:    #F5F3EC;
  --paper-2:  #FBFAF6;
  --ink:      #0E1B2C;
  --ink-2:    #3A4759;
  --ink-3:    #566270;
  --accent:   #1F5FD6;
  --navy:     #0E1B2C;
  --navy-2:   #0B1420;

  /* hairlines — the whole system is drawn with these */
  --rule:      rgba(14, 27, 44, 0.16);
  --rule-soft: rgba(14, 27, 44, 0.08);
  --rule-dark: rgba(255, 255, 255, 0.16);

  /* type */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* metrics */
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1360px;
  --unit: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- shared frame: everything sits inside a ruled container ------------- */
.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* the standing vertical hairlines that give the page its grid presence */
.gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gridlines::before,
.gridlines::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule-soft);
}
.gridlines::before { left: var(--gutter); }
.gridlines::after  { right: var(--gutter); }

.gridlines i {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule-soft);
}
.gridlines i.c1 { left: 25%; }
.gridlines i.c2 { left: 50%; }
.gridlines i.c3 { left: 75%; }

@media (max-width: 860px) {
  .gridlines i.c1, .gridlines i.c3 { display: none; }
}

/* utility: monospaced label / coordinate marker */
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono--ink { color: var(--ink); }
.mono--accent { color: var(--accent); }

/* section index tag (top-left of every band) */
.ix {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* =========================================================================
   HEADER — a spec-sheet masthead
   ========================================================================= */
.masthead {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.masthead__top .r { display: flex; gap: 22px; }
.masthead__top .r span:last-child { color: var(--ink); }

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a {
  padding: 6px 16px;
  color: var(--ink-2);
  border-left: 1px solid var(--rule);
  transition: color .15s ease;
}
.nav a:first-child { border-left: 0; }
.nav a:hover { color: var(--accent); }
.nav a.cta {
  color: var(--paper);
  background: var(--ink);
  border-left: 1px solid var(--ink);
}
.nav a.cta:hover { background: var(--accent); border-left-color: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .masthead__top .r.hide-sm { display: none; }
  .nav a.hide-sm { display: none; }
  .brand img { height: 24px; }
}

/* =========================================================================
   HERO — the exacting statement, set on the grid
   ========================================================================= */
.hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--ink);
}
.hero__grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
}
.hero__main {
  padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  border-right: 1px solid var(--rule);
  padding-right: clamp(20px, 4vw, 56px);
}
.hero__meta {
  padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  padding-left: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__ix {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .em { color: var(--accent); }

.hero__tagline {
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__tagline::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero__sub {
  margin: clamp(24px, 3vw, 34px) 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero__actions {
  margin-top: clamp(30px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--ink);
  width: fit-content;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background .15s ease, color .15s ease;
}
.btn .arw { font-family: var(--mono); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-left: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* the meta column — spec readout */
.spec { border-top: 1px solid var(--rule); padding-top: 14px; }
.spec:first-child { border-top: 0; padding-top: 0; }
.spec dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.spec dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.spec dd .accent { color: var(--accent); }

.hero__diagram {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1.9;
  white-space: pre;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__main { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .hero__meta { padding-left: 0; padding-top: 28px; }
  .hero__diagram { display: none; }
}

/* =========================================================================
   BELIEFS — three numbered columns, hairline-divided
   ========================================================================= */
.section-head {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: end;
  gap: 24px;
  padding: clamp(30px, 4vw, 48px) 0 clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--ink);
}
.section-head__l { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head__r {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__r { text-align: left; }
}

.beliefs {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--ink);
}
.beliefs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.belief {
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px) clamp(34px, 4vw, 56px);
  border-left: 1px solid var(--rule);
  min-height: clamp(300px, 34vw, 400px);
  display: flex;
  flex-direction: column;
}
.belief:first-child { border-left: 0; padding-left: 0; }
.belief:last-child { padding-right: 0; }
.belief__no {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: clamp(24px, 4vw, 56px);
}
.belief h3 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.belief p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
  margin-top: auto;
}
@media (max-width: 720px) {
  .beliefs__grid { grid-template-columns: 1fr; }
  .belief { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-right: 0; min-height: 0; }
  .belief:first-child { border-top: 0; }
  .belief__no { margin-bottom: 20px; }
}

/* =========================================================================
   ABOUT — the founder's letter, dark band, white logo
   ========================================================================= */
.about {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--paper-2);
  border-bottom: 1px solid var(--navy);
}
.about .frame { position: relative; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 0;
}
.about__side {
  padding: clamp(40px, 5vw, 76px) clamp(24px, 3vw, 44px) clamp(40px, 5vw, 76px) 0;
  border-right: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.about__side .ix { color: #7FA8F0; }
.about__side .mono { color: rgba(255,255,255,0.55); }
.about__logo { height: 26px; width: auto; margin-top: 8px; }
.about__stamp {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
  border-top: 1px solid var(--rule-dark);
  padding-top: 16px;
}
.about__body {
  padding: clamp(40px, 5vw, 76px) 0 clamp(40px, 5vw, 76px) clamp(28px, 4vw, 60px);
}
.about__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.9vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(24px, 3vw, 36px);
  color: #fff;
  max-width: 24ch;
}
.about__text {
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(255,255,255,0.78);
  max-width: 900px;
}
.about__text p { margin: 0 0 1em; break-inside: avoid; }
.about__sign {
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7FA8F0;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { border-right: 0; border-bottom: 1px solid var(--rule-dark); padding-right: 0; padding-bottom: 30px; }
  .about__body { padding-left: 0; }
  .about__text { columns: 1; }
}

/* =========================================================================
   ROSTER — what we build, as a spec table
   ========================================================================= */
.roster { position: relative; z-index: 1; border-bottom: 1px solid var(--ink); }
.table {
  border-top: 1px solid var(--ink);
}
.trow {
  display: grid;
  grid-template-columns: 56px 1.1fr 100px 1.4fr 2fr 150px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: clamp(22px, 2.6vw, 32px) 0;
  gap: 16px;
  transition: background .15s ease;
}
.trow:last-child { border-bottom: 0; }
.trow--live:hover { background: var(--paper-2); }
.trow .t-no {
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  color: var(--accent); letter-spacing: 0.06em;
}
.trow .t-name {
  font-weight: 600; font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
}
.t-status {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.t-status .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.t-status.is-live { color: #12813F; }
.t-status.is-live .dot { background: #12813F; box-shadow: 0 0 0 3px rgba(18,129,63,0.14); }
.t-status.is-coming { color: var(--ink-3); }
.t-status.is-coming .dot { background: var(--ink-3); }
.trow .t-url {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-2);
}
.trow .t-url a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.trow .t-url a:hover { color: var(--accent); border-color: var(--accent); }
.trow .t-desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.trow .t-action { text-align: right; }
.t-visit {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); padding: 9px 14px;
  transition: background .15s ease, color .15s ease;
}
.t-visit:hover { background: var(--ink); color: var(--paper); }
.t-visit.is-off { color: var(--ink-3); border-color: var(--rule); pointer-events: none; }

/* table head labels */
.thead {
  display: grid;
  grid-template-columns: 56px 1.1fr 100px 1.4fr 2fr 150px;
  gap: 16px;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.thead .t-action { text-align: right; }

@media (max-width: 980px) {
  .thead { display: none; }
  .trow {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "no name status"
      "no url  url"
      "no desc desc"
      "no act  act";
    row-gap: 12px;
    align-items: start;
  }
  .trow .t-no { grid-area: no; }
  .trow .t-name { grid-area: name; }
  .trow .t-status-cell, .t-status { grid-area: status; justify-self: end; }
  .trow .t-url { grid-area: url; }
  .trow .t-desc { grid-area: desc; }
  .trow .t-action { grid-area: act; text-align: left; }
}

/* =========================================================================
   CONTACT / FOOTER
   ========================================================================= */
.footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
}
.footer__cta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(44px, 6vw, 88px) 0;
  border-bottom: 1px solid var(--ink);
}
.footer__cta h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.footer__cta .mono { display: block; margin-bottom: 16px; }
.mailto {
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background .15s ease, color .15s ease;
}
.mailto:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .footer__cta { grid-template-columns: 1fr; }
  .mailto { justify-self: start; }
}

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__base .l { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__base a:hover { color: var(--accent); }
.footer__base .r { color: var(--ink-2); }

/* keyline register marks in corners of major bands */
.reg { position: absolute; width: 9px; height: 9px; pointer-events: none; z-index: 3; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--rule); }
.reg::before { left: 4px; top: 0; width: 1px; height: 9px; }
.reg::after { top: 4px; left: 0; height: 1px; width: 9px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
