/* ==========================================================================
   Umigame — main stylesheet
   Theme: black + crimson. To switch to black + pink, change --accent*.
   Mobile-first: base styles target phones, @media (min-width) scales up.
   ========================================================================== */

@font-face {
  font-family: "Swiss Condensed";
  src: url("../fonts/Swiss721BT-BoldCondensed.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/CaveatBrush-wordmark.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1b1b21;
  --line: #2a2a31;
  --text: #f4efe9;
  --muted: #a39ea8;
  --accent: #e11d2e;
  --accent-hover: #ff3b4c;
  --accent-ink: #ffffff;
  /* pink variant:  --accent: #ff2d87;  --accent-hover: #ff5aa0;  */

  --font-display: "Swiss Condensed", "Arial Narrow", Impact, sans-serif;
  --font-brand: "Caveat Brush", "Segoe Print", cursive; /* brush lettering, close to the logo's "umi" */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1160px;
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: 1.5rem; }
h1 em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .02em;
  border: 1.5px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-link { padding: 0 4px; color: var(--text); min-height: 44px; }
.btn-link:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-name { font-family: var(--font-brand); font-size: 2rem; line-height: 1; letter-spacing: .01em; text-transform: none; padding-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-hover); }
.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; color: var(--text);
}
.js .nav-toggle { display: block; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav: full-width panel below header */
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav ul { padding: 8px var(--gutter) 20px; }
.site-nav a {
  display: block; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .05em;
}
.site-nav a[aria-current="page"] { color: var(--accent); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 14vw, 150px) 0 clamp(56px, 12vw, 130px);
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(225, 29, 46, .28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(225, 29, 46, .12), transparent 60%),
    var(--bg);
}
.hero-bg { /* faint drifting game covers behind the hero text */
  position: absolute; inset: -25% -10%; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2vw, 18px); transform: rotate(-7deg); opacity: .22; filter: saturate(.8) brightness(.8); pointer-events: none;
}
.hero-bg .drift-row img { height: clamp(120px, 24vw, 250px); }
.hero::before { /* keep the text side calm, let the art breathe on the right */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,11,13,.78) 38%, rgba(11,11,13,.25) 100%),
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 80%, var(--bg));
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { text-transform: none; /* Title Case is written in the text itself (browsers get Turkish İ wrong) */ max-width: 26ch; font-size: clamp(2rem, 5.3vw, 3.9rem); line-height: 1.06; text-wrap: balance; } /* long slogan: smaller than the page-title size */
.hero .lead { font-size: 1.2rem; }

.page-hero {
  padding: clamp(48px, 10vw, 110px) 0 clamp(24px, 5vw, 50px);
  background: radial-gradient(ellipse 70% 100% at 90% 0%, rgba(225, 29, 46, .18), transparent 65%), var(--bg);
}
.lead-2 { margin-top: 1em; }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); margin-bottom: .3em; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 9vw, 100px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.split { display: grid; gap: 16px; }
.prose { max-width: 42rem; color: #d6d1d9; }
.prose h2 { color: var(--text); }
.mail-link { font-family: var(--font-display); font-size: clamp(1.15rem, 4.2vw, 1.7rem); color: var(--accent-hover); text-decoration: none; overflow-wrap: anywhere; display: inline-block; }
.mail-link:hover { text-decoration: underline; }

.featured-grid { display: grid; gap: 32px; align-items: center; }
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature cards (Home) ---------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-media { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: contain; }
.feature-body { display: flex; flex-direction: column; flex: 1; padding: 24px 22px 26px; }
.feature-body .tag { color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .5em; }
.feature-body h3 { font-size: 1.8rem; margin-bottom: .35em; }
.feature-body h3 a { text-decoration: none; }
.feature-lead { color: var(--text); font-weight: 600; margin-bottom: .6em; }
.feature-desc { color: var(--muted); font-size: .95rem; }
.meta-title { margin: 1.2em 0 .5em; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.meta { margin: 0 0 1.4rem; border-top: 1px solid var(--line); }
.meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; font-weight: 600; }
.feature-body .card-cta { margin-top: auto; text-decoration: none; color: var(--accent-hover); font-weight: 600; font-size: .9rem; }
.feature-body .card-cta:hover { text-decoration: underline; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.gallery-item { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(5, 5, 7, .94); padding: 56px 12px; }
.lightbox-img { max-width: min(96vw, 1400px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(20,20,24,.85); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent-hover); }
.lightbox-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
.lightbox-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
html.lightbox-open { overflow: hidden; }

/* ---------- Work page ---------- */
.work-hero-grid { display: grid; gap: 28px; align-items: center; }
.work-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.note { margin-top: 1.5rem; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: .92rem; border-radius: 0 var(--radius) var(--radius) 0; }
.work-body { display: grid; gap: 32px; }
.work-info { align-self: start; padding: 4px 0; }
.work-info .meta-title { margin-top: 0; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--text); }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.contact-card p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: clamp(56px, 10vw, 110px) 0; text-align: center; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(225, 29, 46, .25), transparent 70%), var(--bg); }
.cta-inner p { color: var(--muted); max-width: 32rem; margin-inline: auto; }
.cta .btn { margin-top: 1rem; }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 48px; }
.footer-inner { display: grid; gap: 32px; }
.footer-about { display: grid; gap: 18px; align-content: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-block { max-width: 24rem; }
.footer-block p { margin: 0 0 .3em; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.footer-block a { display: inline-block; padding: 8px 0; color: var(--accent-hover); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.footer-block a:hover { text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin: 0; line-height: 1.25; }
.footer-name { display: block; font-family: var(--font-brand); font-size: 2rem; line-height: 1; }
.footer-tag { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { text-decoration: none; color: var(--muted); display: inline-block; padding: 8px 0; }
.footer-nav a:hover { color: var(--text); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 20px;
  margin-top: 36px; padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: none; }


/* ---------- Intro / splash (Home, once per session) ---------- */
.splash { display: none; }
html.splash-on { overflow: hidden; animation: splash-unlock 0s linear 3.5s forwards; } /* failsafe if JS never runs */
html.splash-on .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--bg); color: var(--text);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
  animation: splash-failsafe .7s ease 3.2s forwards;
}
html.splash-on .splash.is-leaving { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splash-unlock { to { overflow: visible; } }

.splash-bg {
  position: absolute; inset: -20%; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2vw, 18px); transform: rotate(-7deg); opacity: .55; filter: saturate(.9) brightness(.75);
}
.drift-row { display: flex; will-change: transform; gap: clamp(10px, 2vw, 18px); width: max-content; animation: splash-drift 46s linear infinite; }
.drift-row-rev { animation-direction: reverse; animation-duration: 54s; }
.drift-row img { height: clamp(130px, 27vh, 280px); width: auto; border-radius: 8px; }
@keyframes splash-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.splash::before { /* readability vignette + warm glow */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(11,11,13,.88) 0%, rgba(11,11,13,.6) 55%, rgba(11,11,13,.2) 100%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(225,29,46,.35), transparent 70%),
    linear-gradient(to bottom, rgba(11,11,13,.7), transparent 25%, transparent 75%, rgba(11,11,13,.8));
}
.splash-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.splash-content p { margin: 0; }
.splash-logo { height: clamp(100px, 22vh, 190px); width: auto; margin: 0 auto; animation: splash-logo-in .8s cubic-bezier(.2,.7,.2,1) both; }
.splash-name { font-family: var(--font-brand); font-size: clamp(3.2rem, 11vw, 6rem); line-height: 1; margin-top: .1em !important; animation: splash-rise .7s ease .3s both; }
.splash-studios { font-size: clamp(.7rem, 1.8vw, .95rem); font-weight: 600; letter-spacing: .6em; text-indent: .6em; text-transform: uppercase; color: var(--accent); margin-top: .5em !important; animation: splash-rise .7s ease .5s both; }
@keyframes splash-logo-in { from { opacity: 0; transform: scale(.86) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; animation: splash-fill 2.4s linear forwards; }
@keyframes splash-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.splash-skip {
  position: absolute; z-index: 3; right: max(20px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: rgba(11,11,13,.6); color: var(--text); border: 1.5px solid var(--line);
  font: 600 .85rem var(--font-body); letter-spacing: .04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.splash-skip:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet ≥ 700px
   ========================================================================== */
@media (min-width: 700px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .split { grid-template-columns: 1fr 1.6fr; gap: 48px; }
  .work-body { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .work-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1.2fr auto 1.4fr; gap: 40px; align-items: start; }
  .footer-social .eyebrow { margin-bottom: .8em; }
}

/* ==========================================================================
   Desktop ≥ 960px — inline nav, no toggle
   ========================================================================== */
@media (min-width: 960px) {
  .nav-toggle { display: none !important; }
  .site-nav, .js .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 8px; padding: 0; }
  .site-nav a {
    border: 0; padding: 10px 16px; font-size: 1.15rem; border-radius: 6px; position: relative;
  }
  .site-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .feature-body { padding: 28px 26px 30px; }
  .site-nav { margin-left: auto; margin-right: 20px; }
  .header-actions { margin-left: 0; }
  .featured-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}
