/* Saltshard, direction A "Cleave": dark slate, one light source, hairlines, Sora.
   Layout: one column of sections, each a rule, an eyebrow, a statement and a register. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
}

:root {
  --slate: #0d1117;
  --slate-2: #10151c;
  --salt: #eef0f2;
  --salt-soft: #dfe4e9;
  --body: #b7c0ca;
  --mist: #9aa5b1;
  --cobalt: #4d6bff;
  --cobalt-light: #8ea2ff;
  --hair: rgba(238, 240, 242, 0.1);
  --hair-strong: rgba(238, 240, 242, 0.3);
  --font: "Sora", "Segoe UI", system-ui, sans-serif;
  --wrap: 1312px;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--slate);
  color: var(--salt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  min-height: 100%;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--cobalt-light); outline-offset: 4px; }

.skip {
  position: absolute; left: 24px; top: -80px; z-index: 30;
  background: var(--salt); color: var(--slate); padding: 10px 14px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Lighting: one fixed source top-left, one that follows the pointer. The only gradients on the page. */
.light { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.light-fixed {
  left: -240px; top: -360px; width: 1200px; height: 1000px;
  background: radial-gradient(closest-side, rgba(238, 240, 242, 0.055) 0%, rgba(238, 240, 242, 0.035) 35%, rgba(238, 240, 242, 0.012) 70%, rgba(238, 240, 242, 0) 100%);
}
.light-pointer {
  left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: 0;
  background: radial-gradient(closest-side, rgba(142, 162, 255, 0.07), rgba(142, 162, 255, 0));
}

/* Nav */
.nav-band { position: relative; z-index: 2; }
.nav {
  position: relative;
  height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav::after {
  content: ""; position: absolute; left: var(--gutter-l); right: var(--gutter-r); bottom: 0; height: 1px; background: var(--hair);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; color: var(--salt);
}
.menu { display: flex; gap: 2px; }
.menu a {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
  text-decoration: none; font-size: 13px; font-weight: 400; color: var(--mist); letter-spacing: 0.02em;
  transition: color 0.3s;
}
.menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--salt);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease);
}
.menu a:hover, .menu a:focus-visible { color: var(--salt); }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu-btn {
  display: none; height: 44px; padding: 0 16px; background: transparent; color: var(--salt);
  border: 1px solid var(--hair-strong); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer;
}
.progress {
  position: absolute; left: var(--gutter-l); right: var(--gutter-r); bottom: -1px; height: 1px;
  background: var(--cobalt-light); transform: scaleX(0); transform-origin: 0 50%;
}

main { position: relative; z-index: 1; }

/* Hero: the name alone, cut once */
.hero {
  min-height: 816px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 56px;
  padding-top: 120px; padding-bottom: 96px;
}
.name { position: relative; align-self: flex-start; cursor: default; }
.word {
  margin: 0; font-weight: 200; font-size: clamp(64px, 12.2vw, 176px); line-height: 1;
  letter-spacing: -0.05em; color: var(--salt); white-space: nowrap;
}
.name-high { position: relative; clip-path: polygon(0 0, 84% 0, 16% 100%, 0 100%); }
.name-low { position: absolute; inset: 0; clip-path: polygon(84% 0, 100% 0, 100% 100%, 16% 100%); }
.name-cut { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.name-cut [data-cut] { stroke: var(--hair-strong); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.name-cut [data-glint] { stroke: var(--cobalt-light); stroke-width: 1.5; stroke-dasharray: 0.16 1; stroke-dashoffset: 1.16; opacity: 0; }
.hero-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Type roles */
.eyebrow { margin: 0; font-size: 12px; font-weight: 400; color: var(--mist); letter-spacing: 0.04em; }
.lead {
  margin: 0; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3;
  letter-spacing: -0.02em; color: var(--salt); text-wrap: balance;
}
.lead.sm { font-size: clamp(26px, 2.4vw, 34px); }
.body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); font-weight: 300; }
.body.lg { font-size: 16px; max-width: 440px; }
.body.dim { color: var(--mist); font-size: 13px; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 26px;
  background: var(--salt); color: var(--slate); text-decoration: none; font-weight: 500; font-size: 13px;
  letter-spacing: 0.01em; border-radius: 999px; will-change: transform;
}
.textlink {
  display: inline-flex; align-items: center; height: 46px; color: var(--salt); text-decoration: none;
  font-weight: 300; font-size: 14px; border-bottom: 1px solid rgba(238, 240, 242, 0.35);
  transition: border-color 0.3s;
}
.textlink:hover { border-color: var(--salt); }
.ghost {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: transparent;
  color: var(--salt); border: 1px solid var(--hair-strong); font: inherit; font-size: 13px; border-radius: 999px;
  cursor: pointer; transition: border-color 0.3s;
}
.ghost:hover { border-color: var(--salt); }
.ghost.sm { height: 36px; padding: 0 16px; font-size: 12px; }

/* Sections */
.section { padding-bottom: 140px; }
#about { padding-top: 40px; padding-bottom: 120px; }
.rule { height: 1px; background: var(--hair); }
.grid { display: grid; gap: 80px; padding-top: 64px; }
.g75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.g48 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid.center { align-items: center; }
.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.col.sticky { position: sticky; top: 40px; }
.register { gap: 0; padding-top: 36px; }
.register-plain { padding-top: 36px; gap: 20px; }
.row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0;
  border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.6;
}
.row.last { border-bottom: 1px solid var(--hair); }
.row span:first-child { color: var(--mist); }
.row span:last-child { color: var(--salt-soft); font-weight: 300; }

/* The block */
.block-art { display: flex; justify-content: center; }
.block-art svg { width: 100%; max-width: 720px; height: auto; overflow: visible; }
.shard { fill: rgba(238, 240, 242, 0.03); stroke: rgba(238, 240, 242, 0.35); stroke-width: 1; will-change: transform; }
.shard-label { font-size: 13px; fill: var(--mist); opacity: 0; font-family: var(--font); }
.shard-label.is-rest { opacity: 1; fill: var(--salt-soft); }
.cutline { stroke: var(--cobalt-light); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Salty-charts */
.tabs { display: flex; gap: 20px; border-top: 1px solid var(--hair); padding-top: 8px; }
.tab {
  height: 40px; padding: 0 4px; background: transparent; border: 0; border-bottom: 1px solid transparent;
  color: var(--mist); font: inherit; font-size: 13px; cursor: pointer; transition: color 0.3s;
}
.tab[aria-selected="true"] { color: var(--salt); border-bottom-color: var(--salt); }
.tab:hover { color: var(--salt); }
.frame { padding: 10px; border: 1px solid var(--hair); background: var(--slate-2); }
.frame-inner { position: relative; border: 1px solid rgba(238, 240, 242, 0.08); overflow: hidden; aspect-ratio: 16 / 10; }
.frame-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame-inner img.is-hidden { opacity: 0; }
.caption { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--mist); padding: 14px 2px 0; flex-wrap: wrap; }

/* Contact and footer */
.contact { padding-bottom: 0; }
.contact .grid { padding-bottom: 96px; }
.email-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.email { font-size: 18px; color: var(--salt); text-decoration: none; border-bottom: 1px solid rgba(238, 240, 242, 0.35); transition: border-color 0.3s; }
.email:hover { border-color: var(--salt); }
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 56px;
  font-size: 12px; color: var(--mist); position: relative; z-index: 1;
}
.foot::before { content: ""; position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: 0; height: 1px; background: var(--hair); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }

/* Tablet: two columns become one where the register would get cramped */
@media (max-width: 1024px) {
  .grid { gap: 48px; }
  .g75, .g48 { grid-template-columns: minmax(0, 1fr); }
  .col.sticky { position: static; }
  .register, .register-plain { padding-top: 0; }
  .section { padding-bottom: 96px; }
  .hero { min-height: 0; padding-top: 96px; padding-bottom: 72px; }
}

/* Phone: menu folds, rows stack, type steps down */
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .menu {
    display: none; position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: 84px;
    flex-direction: column; gap: 0; background: var(--slate-2); border: 1px solid var(--hair); padding: 8px; z-index: 5;
  }
  .menu.is-open { display: flex; }
  .menu a { height: 48px; padding: 0 12px; }
  .menu a::after { display: none; }
  .hero { padding-top: 64px; padding-bottom: 56px; gap: 36px; }
  .word { font-size: clamp(52px, 13.5vw, 96px); }
  .hero-copy { align-items: flex-start; }
  .actions { align-items: flex-start; }
  .textlink { align-self: flex-start; }
  .tab, .ghost.sm, .email { min-height: 44px; }
  .email { display: inline-flex; align-items: center; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .grid { padding-top: 40px; gap: 36px; }
  .section { padding-bottom: 72px; }
  #about { padding-top: 24px; padding-bottom: 72px; }
  .contact .grid { padding-bottom: 56px; }
  .light-fixed { width: 700px; height: 600px; left: -200px; top: -240px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu a::after, .textlink, .ghost, .tab { transition: none; }
}
