/* =====================================================
   SUIKAWAII LABS — Light Professional
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  /* Backgrounds — warm off-white system */
  --bg:   #F4F2EE;   /* page base */
  --bg-1: #FFFFFF;   /* cards, surfaces */
  --bg-2: #EEECe8;   /* subtle recessed */
  --bg-3: #E8E5E0;   /* stronger contrast */

  /* Borders */
  --line:       rgba(0, 0, 0, 0.07);
  --line-hover: rgba(0, 0, 0, 0.13);

  /* Text */
  --t1: #0F0D13;
  --t2: rgba(15, 13, 19, 0.50);
  --t3: rgba(15, 13, 19, 0.32);

  /* Brand — watermelon, calibrated for light backgrounds */
  --red:       #C8253B;
  --red-a08:   rgba(200, 37, 59, 0.08);
  --red-a15:   rgba(200, 37, 59, 0.15);
  --red-a30:   rgba(200, 37, 59, 0.30);
  --green:     #276B3E;
  --green-a10: rgba(39, 107, 62, 0.10);

  /* Status */
  --c-live: #1A9E6A;
  --c-wip:  #C47A10;
  --c-soon: #2A72C2;

  /* Type */
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h: 66px;
  --w:     1160px;
  --px:    40px;
  --r:     10px;
  --r-lg:  18px;
  --r-xl:  24px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--t1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =====================================================
   GRAIN TEXTURE OVERLAY
   ===================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: multiply;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* =====================================================
   LOGO
   ===================================================== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--red-a30);
  flex-shrink: 0;
}

.logo__img img { width: 100%; height: 100%; object-fit: cover; }

.logo__name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.logo__name strong {
  font-weight: 700;
  color: var(--red);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  border: none;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 3px rgba(200,37,59,0.25), 0 4px 14px rgba(200,37,59,0.18);
}
.btn--primary:hover {
  background: #b8202f;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(200,37,59,0.30), 0 8px 24px rgba(200,37,59,0.22);
}

.btn--outline {
  background: var(--bg-1);
  color: var(--t2);
  border: 1px solid var(--line-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn--outline:hover {
  color: var(--t1);
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* =====================================================
   STATUS BADGES / TAGS
   ===================================================== */
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.badge--live { background: rgba(26,158,106,0.10);  color: var(--c-live); }
.badge--wip  { background: rgba(196,122,16,0.10);  color: var(--c-wip); }
.badge--soon { background: rgba(42,114,194,0.10);  color: var(--c-soon); }

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 1px solid var(--line-hover);
  padding: 2px 8px;
  border-radius: 4px;
}

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--live {
  background: var(--c-live);
  box-shadow: 0 0 0 3px rgba(26,158,106,0.18);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(244, 242, 238, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__menu a {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--t2);
  padding: 7px 14px;
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
}
.nav__menu a:hover {
  color: var(--t1);
  background: rgba(0,0,0,0.05);
}

.nav__btn {
  color: var(--t1) !important;
  background: var(--bg-1) !important;
  border: 1px solid var(--line-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav__btn:hover {
  border-color: var(--red-a30) !important;
  color: var(--red) !important;
  background: var(--red-a08) !important;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  max-width: var(--w);
  margin: 0 auto;
  padding: 80px var(--px) 72px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtle ambient — barely perceptible on light */
.hero::before {
  content: '';
  position: fixed;
  top: -10%; right: -5%;
  width: 700px; height: 600px;
  background: radial-gradient(ellipse, rgba(200,37,59,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  flex: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  color: var(--t1);
}

.hero__line--1 { color: var(--red); }

.hero__line-tag {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 600;
  color: var(--t3);
  letter-spacing: -0.02em;
  margin-left: 0.15em;
  vertical-align: middle;
}

.hero__lead {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--t2);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
}

/* Mascot */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__mascot-wrap {
  position: relative;
  width: 260px; height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}

.hero__mascot-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-a15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__mascot {
  width: 180px; height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(200,37,59,0.16));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero__badge {
  position: absolute;
  bottom: -12px; right: -16px;
  background: var(--bg-1);
  border: 1px solid var(--line-hover);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hero__badge-num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--t1);
}

.hero__badge-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.stat__value {
  display: block;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--t3);
  letter-spacing: 0.04em;
}

.stat__sep {
  width: 1px;
  height: 36px;
  background: var(--line-hover);
  margin: 0 36px;
  flex-shrink: 0;
}

/* =====================================================
   TICKER
   ===================================================== */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--bg-1);
}

.ticker__track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  animation: ticker 12s linear infinite;
  width: max-content;
}

.ticker__track span {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker__sep {
  color: var(--red) !important;
  font-size: 0.5rem !important;
  align-self: center;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTION
   ===================================================== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-header { margin-bottom: 52px; }

.section-header__over {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--t1);
}

/* =====================================================
   PROJECTS GRID
   ===================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line-hover);
  border: 1px solid var(--line-hover);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.project--lg { grid-row: span 2; }

/* Empty state */
.projects-empty {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.projects-empty__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t2);
}

.projects-empty__sub {
  font-size: 0.875rem;
  color: var(--t3);
}

.projects-empty__sub code {
  font-family: monospace;
  background: var(--bg);
  border: 1px solid var(--line-hover);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--red);
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  transition: background 0.2s;
  cursor: pointer;
}

.project:hover { background: var(--bg); }

/* Thumbnail — light tinted blocks */
.project__thumb {
  position: relative;
  height: 130px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  overflow: hidden;
}

.project--lg .project__thumb { height: 200px; }

.project__thumb--a { background: linear-gradient(145deg, #fce8ec, #f8d4db); }
.project__thumb--b { background: linear-gradient(145deg, #ece9f8, #e1dbf5); }
.project__thumb--c { background: linear-gradient(145deg, #e4f5ec, #d5eedd); }
.project__thumb--d { background: linear-gradient(145deg, #fef4e4, #fde9ca); }
.project__thumb--e { background: linear-gradient(145deg, #e4effe, #d5e6fb); }
.project__thumb--f { background: linear-gradient(145deg, #fce6f3, #f8d3ea); }

/* Subtle glow dot top-right */
.project__thumb::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 160px; height: 160px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}
.project__thumb--a::before { background: radial-gradient(circle, rgba(200,37,59,0.22) 0%, transparent 70%); }
.project__thumb--b::before { background: radial-gradient(circle, rgba(130,90,210,0.22) 0%, transparent 70%); }
.project__thumb--c::before { background: radial-gradient(circle, rgba(39,107,62,0.22) 0%, transparent 70%); }
.project__thumb--d::before { background: radial-gradient(circle, rgba(196,122,16,0.22) 0%, transparent 70%); }
.project__thumb--e::before { background: radial-gradient(circle, rgba(42,114,194,0.22) 0%, transparent 70%); }
.project__thumb--f::before { background: radial-gradient(circle, rgba(200,60,140,0.22) 0%, transparent 70%); }

.project__thumb--img {
  padding: 0;
  overflow: hidden;
}

.project__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.project__num {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(0,0,0,0.18);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.project__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  border-top: 1px solid var(--line);
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project__name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--t1);
  line-height: 1.2;
}

.project--lg .project__name { font-size: 1.35rem; }

.project__desc {
  font-size: 0.85rem;
  color: var(--t2);
  line-height: 1.7;
  flex: 1;
}

.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t3);
  margin-top: 4px;
  transition: color 0.15s, gap 0.18s;
  width: fit-content;
}

.project:hover .project__cta {
  color: var(--red);
  gap: 9px;
}

/* =====================================================
   STUDIO / ABOUT
   ===================================================== */
.studio__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.studio__text {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.82;
  margin-bottom: 14px;
}

.disciplines {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.discipline {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.18s;
}

.discipline:hover { padding-left: 6px; }

.discipline__n {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--t3);
  letter-spacing: 0.06em;
  min-width: 20px;
}

.discipline__name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: -0.01em;
  flex: 1;
  transition: color 0.15s;
}

.discipline:hover .discipline__name { color: var(--t1); }

.discipline__arrow {
  font-size: 0.85rem;
  color: var(--t3);
  opacity: 0;
  transition: opacity 0.18s;
}

.discipline:hover .discipline__arrow { opacity: 1; }

/* Studio card */
.studio__card {
  background: var(--bg-1);
  border: 1px solid var(--line-hover);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.studio__card-top {
  background: #0F0D13;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.studio__mascot {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.studio__card-bottom {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.studio__card-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-bottom: 4px;
}

.studio__card-role {
  font-size: 0.78rem;
  color: var(--t3);
}

/* =====================================================
   FOOTER — dark for contrast
   ===================================================== */
.footer {
  background: #0F0D13;
  padding: 56px 0 36px;
  margin-top: 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 44px;
}

.footer .logo__name       { color: rgba(237,234,245,0.9); }
.footer .logo__name strong { color: #E8324A; }
.footer .logo__img         { border-color: rgba(232,50,74,0.35); }

.footer__left { display: flex; flex-direction: column; gap: 14px; }

.footer__desc {
  font-size: 0.85rem;
  color: rgba(237,234,245,0.3);
  line-height: 1.65;
}

.footer__nav { display: flex; gap: 56px; flex-shrink: 0; }

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,234,245,0.28);
  margin-bottom: 14px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col ul li a {
  font-size: 0.875rem;
  color: rgba(237,234,245,0.45);
  transition: color 0.15s;
}
.footer__col ul li a:hover { color: rgba(237,234,245,0.9); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p      { font-size: 0.78rem; color: rgba(237,234,245,0.25); }
.footer__credit        { font-style: italic; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  :root { --px: 28px; }

  .hero__grid { grid-template-columns: 1fr 260px; gap: 32px; }
  .hero__mascot-wrap { width: 220px; height: 220px; }
  .hero__mascot      { width: 150px; height: 150px; }

  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--lg { grid-row: span 1; }

  .studio__inner { grid-template-columns: 1fr; gap: 48px; }
  .studio__card  { position: static; display: flex; flex-direction: row; }
  .studio__card-top    { padding: 0; flex: 0 0 180px; aspect-ratio: auto; }
  .studio__card-bottom { display: flex; flex-direction: column; justify-content: center; border-top: none; border-left: 1px solid var(--line); }
  .studio__mascot      { width: 100px; height: 100px; }
}

@media (max-width: 768px) {
  :root { --px: 20px; --nav-h: 60px; }

  .nav__menu a:not(.nav__btn) { display: none; }

  .hero { padding: 52px var(--px) 56px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__badge  { display: none; }
  .hero__mascot-wrap { width: 180px; height: 180px; margin: 0 auto; }
  .hero__mascot      { width: 120px; height: 120px; }
  .hero__stats       { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat__sep         { display: none; }

  .section  { padding: 64px 0; }
  .projects { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav   { gap: 32px; }
}

@media (max-width: 480px) {
  .hero__line    { font-size: 3.8rem; }
  .hero__actions { flex-direction: column; }
  .btn           { justify-content: center; }

  .studio__card { flex-direction: column; }
  .studio__card-top    { flex: none; }
  .studio__card-bottom { border-left: none; border-top: 1px solid var(--line); }
}
