/* Infinity Iris — studio site. Attention's language: black and white, square, Helvetica Neue, no web fonts. */

:root {
  --ink: #000;
  --paper: #fff;
  --secondary: #5c5c5c;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #fff; --paper: #000; --secondary: #929292; }
}
:root[data-theme="dark"] { --ink: #fff; --paper: #000; --secondary: #929292; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
img, svg, canvas { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top: the studio mark ---------- */

.top .wrap { display: flex; align-items: center; height: 72px; }
.mark { width: 28px; height: 28px; flex: none; }
.mark .tile { fill: var(--ink); }
.mark .ring { fill: var(--paper); }

/* ---------- Hero: the breathing iris ---------- */

/* The hero alone fills the first screen (below the 72 px top bar), content centred: the next section never peeks in. */
.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: grid;
  align-content: center;
  padding: clamp(8px, 3vw, 40px) 0 clamp(64px, 9vw, 128px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title iris" "lede iris";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  grid-area: title;
  font-size: clamp(76px, 12.4vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.05em;          /* optical: the I sits on the gutter */
}
.hero h1 span { display: block; }
.iris {
  grid-area: iris;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: end;
  align-self: center;
}
.lede {
  grid-area: lede;
  align-self: start;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "iris" "lede"; }
  .hero h1 { font-size: clamp(64px, 24vw, 150px); }
  .iris { justify-self: center; margin-top: clamp(12px, 4vw, 32px); max-width: 520px; }
  .lede { margin-top: clamp(12px, 4vw, 32px); max-width: 24ch; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Apps: one row per app, room for more ---------- */

.apps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.app {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "icon text status";
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 2px solid var(--ink);
}
.app-icon { grid-area: icon; width: 96px; height: 96px; border-radius: 22.5%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-icon { box-shadow: 0 0 0 1px #3a3a3a; } }
:root[data-theme="dark"] .app-icon { box-shadow: 0 0 0 1px #3a3a3a; }
.app-text { grid-area: text; display: grid; gap: 6px; }
.app h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.035em; }
.app-text p { color: var(--secondary); max-width: 34rem; }
.app-text .platform { color: var(--ink); font-size: 16px; font-weight: 500; }
.status {
  grid-area: status;
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--ink);
  padding: 8px 12px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
}
.status::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--ink); flex: none; }
@media (max-width: 720px) {
  .status { font-size: 14px; padding: 7px 10px; gap: 8px; }
  .app { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "icon text" ". status"; align-items: start; }
  .app-icon { width: 64px; height: 64px; }
  .status { justify-self: start; margin-top: 12px; white-space: normal; }
}

/* ---------- Contact ---------- */

.contact .mail {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(26px, 5.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact .mail:hover { text-decoration-thickness: 4px; }

/* ---------- Footer ---------- */

.foot { padding: 32px 0 48px; font-size: 15px; color: var(--secondary); }
.foot p { display: flex; flex-wrap: wrap; gap: 4px 0; border-top: 2px solid var(--ink); padding-top: 24px; }
.foot span + span::before { content: "·"; margin: 0 0.55em; }
