/* TurSal Studios — one-page site for Light Tricks. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--t);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--light-line); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--page), calc(100% - 44px)); margin: 0 auto; }

/* ————— header ————— */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--edge-soft);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--edge);
  background: var(--ink-top);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 750; font-size: 18px; letter-spacing: 0.01em; line-height: 1.1; }
.brand-by { display: block; font-size: var(--t-2xs); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-dim); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.01em; }
.nav a:hover { color: var(--text); text-decoration: none; }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--edge); border-radius: var(--r-sm); color: var(--text-dim); }
.menu-btn svg { margin: auto; }

/* ————— buttons and chips ————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--light);
  color: var(--ink);
}
.btn--primary:hover { background: var(--light-hover); text-decoration: none; }
.btn--ghost { border-color: var(--edge); color: var(--text-dim); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); text-decoration: none; }
.btn--sm { height: 40px; padding: 0 18px; font-size: var(--t-xs); }
.nav a.btn--primary { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-soft);
  background: transparent;
  color: var(--text-dim);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--light); }
.chip--accent { border-color: var(--light-line); color: var(--text); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--light); }

/* ————— hero ————— */

.hero { position: relative; padding: var(--s8) 0 var(--s7); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s7);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-game);
  font-size: clamp(52px, 8vw, var(--t-3xl));
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--light);
}
.hero-lede {
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 44ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s6); }
.hero-meta { margin-top: var(--s6); }
.hero-note { margin-top: 14px; font-size: var(--t-xs); color: var(--faint); }
.hero-note strong { color: var(--muted); font-weight: 600; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phone {
  position: relative;
  width: 262px;
  aspect-ratio: 9 / 16;
  padding: 9px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--edge);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone--hero { width: 286px; z-index: 3; transform: rotate(-2deg); }
.phone--back {
  position: absolute;
  width: 232px;
  opacity: 0.55;
  z-index: 1;
}
.phone--left { left: 56px; top: 70px; transform: rotate(-12deg); }
.phone--right { right: 56px; top: 46px; transform: rotate(10deg); }

/* ————— sections ————— */

.section { padding: var(--s8) 0; }
.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 14px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: var(--t-md); line-height: 1.6; text-wrap: pretty; }

/* ————— screenshots / looks ————— */

.looks {
  background: var(--ink-soft);
  border-top: 1px solid var(--edge-soft);
  border-bottom: 1px solid var(--edge-soft);
}
.look-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s7);
  align-items: start;
}
.look-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.look-stage .phone { width: 312px; }
.look-stage .look-caption { text-align: center; }
.look-caption { color: var(--muted); font-size: var(--t-sm); line-height: 1.6; }
.look-list { display: grid; gap: 10px; margin-top: 6px; }
.look-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 19px;
  border-radius: var(--r);
  border: 1px solid var(--edge-soft);
  background: var(--ink);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}
.look-item:hover { border-color: var(--edge); }
.look-item[aria-selected="true"] {
  border-color: var(--light);
  background: var(--light-soft);
}
.look-item-title { font-size: var(--t-md); font-weight: 650; color: var(--text); }
.look-item-note { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }
.look-copy > .look-caption { margin-top: 18px; }

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding: 30px 0 14px;
}
.strip figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.strip .phone { width: 100%; max-width: 196px; aspect-ratio: 9 / 18.5; margin: 0 auto; padding: 6px; border-radius: 24px; }
.strip .phone img { border-radius: 19px; object-fit: contain; background: var(--ink); }
.strip figcaption { font-size: var(--t-2xs); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }

/* ————— features ————— */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--edge-soft);
  background: var(--card);
}
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--light-soft); color: var(--light); border: 1px solid var(--light-line); }
.feature h3 { margin: 18px 0 8px; font-size: var(--t-md); font-weight: 650; letter-spacing: -0.01em; }
.feature p { font-size: var(--t-sm); color: var(--muted); line-height: 1.65; }

/* ————— notes ————— */

.notes-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.note {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--edge-soft);
  background: var(--card);
}
.note-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.note-head h3 { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; }
.note-date { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--faint); white-space: nowrap; }
.note ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: var(--t-sm); line-height: 1.7; }
.note li + li { margin-top: 8px; }
.note--quiet { background: var(--ink-soft); }
.note--quiet p { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; }
.note--quiet a { white-space: nowrap; }

/* ————— studio ————— */

.studio-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 34px;
  border-radius: var(--r-xl);
  border: 1px solid var(--edge);
  background: var(--card);
}
.avatar {
  width: 132px; height: 132px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--ink-top);
  border: 1px solid var(--edge);
}
.studio-card h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.studio-handle { color: var(--light); font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.02em; }
.studio-card p { margin-top: 14px; color: var(--text-dim); font-size: var(--t-md); line-height: 1.7; max-width: 62ch; }
.studio-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ————— support ————— */

.support { padding-bottom: var(--s9); }
.support-card {
  text-align: center;
  padding: 54px 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--edge);
  background: var(--card);
}
.support-card h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.support-card p { margin: 12px auto 0; max-width: 52ch; color: var(--muted); font-size: var(--t-md); }
.support-card .btn { margin-top: 26px; }
.support-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: var(--t-sm); }
.support-links a { color: var(--muted); }
.support-links a:hover { color: var(--text); }

/* ————— footer ————— */

.site-foot { border-top: 1px solid var(--edge-soft); padding: 30px 0 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: var(--t-xs); color: var(--faint); }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: var(--muted); }

/* ————— responsive ————— */

@media (max-width: 980px) {
  .hero { padding-top: var(--s7); }
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-art { order: -1; min-height: 0; margin-bottom: 6px; }
  .hero-art .phone--hero { width: 224px; }
  .hero-art .phone--back { width: 178px; }
  .hero-art .phone--left { left: 0; top: 44px; }
  .hero-art .phone--right { right: 0; top: 30px; }
  .hero-lede { max-width: none; }
  .look-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .look-stage { order: -1; }
  .features { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .studio-card { grid-template-columns: 1fr; padding: 26px; }
  .avatar { width: 96px; height: 96px; border-radius: 20px; font-size: 34px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .site-head .wrap { height: 62px; }
  .hero h1 { margin-top: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { margin-top: var(--s5); }
  .section { padding: var(--s7) 0; }
  .look-stage .phone { width: 250px; }
  .strip { display: flex; gap: 16px; overflow-x: auto; padding: 22px 0 10px; scrollbar-width: thin; }
  .strip figure { flex: 0 0 auto; }
  .strip .phone { width: 146px; max-width: none; aspect-ratio: 9 / 18.5; padding: 5px; border-radius: 22px; }
  .support-card { padding: 40px 18px; }
  .wrap { width: calc(100% - 32px); }
}

/* a simple mobile sheet for the nav */
.sheet {
  position: fixed;
  inset: 62px 0 auto 0;
  z-index: 39;
  display: none;
  padding: 10px 16px 18px;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--edge);
}
.sheet.open { display: grid; gap: 2px; }
.sheet a { padding: 12px 6px; color: var(--text-dim); font-size: var(--t-md); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
