/* ==========================================================================
   FishyHam Studios — site styles
   Palette sampled directly from the supplied logo artwork:
   ground #09090D (logo PNG background), rose #C9776D, cream #F3F1EC.
   The ground token deliberately matches the artwork background so the
   raster logo/wordmark sit on the page with no visible box.
   ========================================================================== */

:root {
  /* "only" tells browsers with their own dark mode (Samsung Internet,
     Chrome auto-dark) not to repaint the site: it is already dark. */
  color-scheme: dark only;

  /* colour */
  --abyss:      #050507;
  --ground:     #09090D;
  --surface:    #101117;
  --surface-2:  #15161D;
  --rose:       #C9776D;
  --rose-light: #E3A79B;
  --rose-deep:  #7E4340;
  --cream:      #F3F1EC;
  --muted:      #98908E;
  --line:       rgba(227, 167, 155, 0.14);
  --line-soft:  rgba(227, 167, 155, 0.07);

  /* type */
  --display: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --body:    "Spline Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* rhythm */
  --gutter: 24px;
  --band:   clamp(64px, 7.5vw, 108px);
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rose-light);
  outline-offset: 3px;
}

::selection { background: var(--rose-deep); color: var(--cream); }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rose);
  color: var(--abyss);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; font-weight: 400; }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #C8C0BD;
  max-width: 62ch;
}

.dim { color: var(--muted); }
.rose { color: var(--rose-light); }

/* Mono utility label — the spec-sheet voice used throughout */
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- section rails -------------------------------------------- */

.band { padding-block: var(--band); border-top: 1px solid var(--line-soft); }
.band--deep { background: var(--abyss); }

.band-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.band-head .tag { padding-top: 0.7em; display: flex; align-items: center; gap: 10px; }
.band-head .lede { margin-top: 18px; }

/* Stacked variant: label, headline, then body in one column. Breaks up
   the repeated label-left / headline-right header across sections. */
.band-head--stack { grid-template-columns: 1fr; gap: 14px; max-width: 65ch; }
.band-head--stack .tag { padding-top: 0; }

@media (max-width: 800px) {
  .band-head { grid-template-columns: 1fr; gap: 14px; }
  .band-head .tag { padding-top: 0; }
}

/* ---------- header ---------------------------------------------------- */

.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(9, 9, 13, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: rgba(9, 9, 13, 0.94); }

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img.mark { width: 46px; }
.brand img.word { width: 132px; }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a.link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #BFB7B4;
  padding-block: 6px;
  position: relative;
  transition: color 0.2s ease;
}
.nav a.link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--rose);
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a.link:hover { color: var(--cream); }
.nav a.link:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--rose-deep);
  border-radius: var(--radius);
  color: var(--rose-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--rose); border-color: var(--rose); color: var(--abyss); }

.btn--solid { background: var(--rose); border-color: var(--rose); color: var(--abyss); }
.btn--solid:hover { background: var(--rose-light); border-color: var(--rose-light); }

.btn--ghost { border-color: var(--line); color: #C8C0BD; }
.btn--ghost:hover { background: transparent; border-color: var(--rose); color: var(--rose-light); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: calc(72px + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a.link { padding-block: 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
  .nav .btn { margin-top: 20px; justify-content: center; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--cream); transition: transform 0.3s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .brand img.word { width: 108px; }
}

/* ---------- hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 96px);
}

.hero-waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  pointer-events: none;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

.hero-word {
  width: min(460px, 100%);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  font-weight: 200;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
.hero h1 em { font-style: normal; color: var(--rose-light); }

.hero .lede { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.hero-fish {
  position: relative;
  justify-self: center;
  width: min(520px, 100%);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.hero-fish img { width: 100%; }
.hero-fish::after {
  content: "";
  position: absolute;
  inset: -8% 0%;
  background: radial-gradient(ellipse at 55% 50%, rgba(201, 119, 109, 0.17), transparent 70%);
  filter: blur(46px);
  z-index: -1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes swim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.1deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-fish img { animation: swim 7s ease-in-out 1.2s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-word, .hero h1, .hero .lede, .hero-actions, .hero-fish { animation: none; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-fish { grid-row: 1; width: min(400px, 88%); }
  .hero-copy { align-items: flex-start; }
}

/* capability strip */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(16, 17, 23, 0.5);
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding-block: 18px;
}
.strip li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip li::before { content: ""; width: 4px; height: 4px; background: var(--rose-deep); transform: rotate(45deg); }

/* ---------- divisions ------------------------------------------------- */

.divisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.division {
  position: relative;
  background: var(--ground);
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.35s ease;
}
.division::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.division:hover, .division:focus-within { background: var(--surface); }
.division:hover::before, .division:focus-within::before { transform: scaleX(1); }

/* Game Dev carries the widest remit, so it takes the wide cell */
.division--feature { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: clamp(24px, 4vw, 64px); }
.division--feature .division-body { flex: 1; display: flex; flex-direction: column; gap: 18px; }

.division-icon {
  width: 40px; height: 40px;
  color: var(--rose);
  flex: none;
}
.division-icon svg { width: 100%; height: 100%; display: block; }

.division h3 { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; font-size: 1.05rem; }
.division p { color: #B8B0AD; font-size: 0.95rem; }

.division-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  margin-top: auto;
}
.division-list li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.division-list li::before { content: "—"; color: var(--rose-deep); }

@media (max-width: 900px) {
  .divisions { grid-template-columns: 1fr; }
  .division--feature { grid-column: span 1; flex-direction: column; }
}

/* ---------- slate / catalogue ----------------------------------------- */

.slate { border-top: 1px solid var(--line); }

.slate-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 1fr 70px;
  gap: 20px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s ease, padding-left 0.3s ease;
}
.slate-row--head {
  padding-block: 12px;
  border-bottom-color: var(--line);
}
.slate-row--head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.slate-row:not(.slate-row--head):hover { background: var(--surface); padding-left: 18px; }

.slate-title { font-family: var(--display); font-size: 1.22rem; font-weight: 400; letter-spacing: 0.02em; }
.slate-title small { display: block; font-family: var(--body); font-size: 0.82rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

.slate-meta { font-family: var(--mono); font-size: 0.74rem; color: #ADA5A3; letter-spacing: 0.04em; }
.slate-year { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #C0B8B5;
  white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.chip--live    { color: #8FC7A6; border-color: rgba(143, 199, 166, 0.3); }
.chip--build   { color: var(--rose-light); border-color: rgba(227, 167, 155, 0.32); }
.chip--beta    { color: #D8B87C; border-color: rgba(216, 184, 124, 0.3); }
.chip--concept { color: var(--muted); }

/* the open slot — we publish external work, so the slate shows a vacancy */
.slate-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(227, 167, 155, 0.035) 9px 18px);
}
.slate-open p { font-family: var(--display); font-size: 1.15rem; color: #C8C0BD; }

@media (max-width: 860px) {
  .slate-row--head { display: none; }
  .slate-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 20px; }
  .slate-row .slate-title { grid-column: 1 / -1; }
  .slate-year { text-align: left; }
  .slate-row:not(.slate-row--head):hover { padding-left: 8px; }
}

/* ---------- pipeline (a real sequence, so the numbers earn their place) -- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.stage {
  background: var(--abyss);
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.stage h3 { font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.stage p { font-size: 0.9rem; color: #ABA3A1; }
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(24px, 2.6vw, 34px);
  right: -1px;
  width: 1px; height: 26px;
  background: var(--rose-deep);
}

@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage::after { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- studio ----------------------------------------------------- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.studio-copy { display: flex; flex-direction: column; gap: 22px; }
.studio-copy p { color: #BFB7B4; max-width: 60ch; }

.credo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-soft); }
.credo li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.credo dt, .credo .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.credo .v { color: #BFB7B4; font-size: 0.95rem; }
@media (max-width: 640px) { .credo li { grid-template-columns: 1fr; } }

.studio-logo { justify-self: center; width: min(380px, 100%); }
.studio-logo img { width: 100%; }
@media (max-width: 880px) { .studio { grid-template-columns: 1fr; } .studio-logo { width: min(300px, 80%); } }

/* ---------- footer ----------------------------------------------------- */

.site-foot { background: var(--abyss); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 32px; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.6fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.foot-brand img { width: 210px; }
.foot-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.foot-tag b { color: var(--rose); font-weight: 500; }

.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col .tag { color: var(--muted); }
.foot-col a { font-size: 0.9rem; color: #BFB7B4; transition: color 0.2s ease; width: fit-content; }
.foot-col a:hover { color: var(--rose-light); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #6F6866;
}

@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 480px) { :root { --gutter: 16px; } }

/* Step labels removed: the step name carries the order. First step keeps the accent. */
.stage:first-child h3 { color: var(--rose-light); }

/* Wordmark PNG has a solid near-black ground; lighten drops it over the hero glow. */
.hero-word, .brand img.word, .foot-brand img { mix-blend-mode: lighten; }
