/* ============ Ece Ok — ece-ok.com ============ */
/* Halcyone-inspired: huge display typography, clean grotesk, eyebrow-labeled sections */

:root {
  --bg: #fbfbfa;
  --bg-soft: #f2f2f0;
  --ink: #191b1f;
  --ink-soft: #6b7076;
  --line: #e5e5e2;
  --accent: #191b1f;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #101114;
  --bg-soft: #191b1f;
  --ink: #f2f2f0;
  --ink-soft: #9ba0a6;
  --line: #26282d;
  --accent: #f2f2f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

#theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

#theme-toggle:hover { border-color: var(--ink); }

:root[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }

/* ---------- Layout ---------- */

main { max-width: 90rem; margin: 0 auto; padding: 0 2rem; }

.section { padding: 7rem 0 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 24em;
  margin-bottom: 2.5rem;
}

.section-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2.5rem;
  max-width: 64rem;
}

/* ---------- Hero ---------- */

.hero { padding-top: 3.5rem; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 21.5vw, 21rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-align: center;
  margin: 2rem 0 3rem;
}

.hero-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.hero-statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3fb950;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.8; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Awards strip ---------- */

.awards-strip {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}

.awards-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.awards-track span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.awards-track em {
  font-style: normal;
  color: var(--ink);
  margin-left: 0.3rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .awards-track { animation: none; }
  .hero-name { font-size: clamp(4rem, 18vw, 18rem); }
}

/* ---------- Prose ---------- */

.prose { max-width: 40em; }
.prose p + p { margin-top: 1.1rem; }
.prose a { color: var(--ink); }

.arrow-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.arrow-link:hover { border-color: var(--ink); }

.muted { color: var(--ink-soft); }

/* ---------- Stats ---------- */

.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border-top: 1px solid var(--line);
}

.stat { padding: 2rem 1rem 0 0; }

.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Project list ---------- */

.project-list { list-style: none; }

.project-row {
  display: grid;
  grid-template-columns: 15rem 1fr auto;
  align-items: center;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.project-row:not(:has(.project-media)) {
  grid-template-columns: 1fr auto;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.4rem;
  background: var(--bg-soft);
  margin: 0;
}

.project-media a { display: block; height: 100%; }

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.project-row:hover .project-media img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.project-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed { cursor: pointer; }

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s;
}

.video-embed:hover .play-badge { background: rgba(0, 0, 0, 0.45); }

.credits {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.project-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.project-body p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46em;
}

.project-year {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-soft) !important;
  flex-shrink: 0;
}

/* ---------- Paribu Studio gallery ---------- */

.studio-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.studio-item {
  margin: 0;
}

.studio-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 0.4rem;
  background: var(--bg-soft);
  transition: transform 0.4s ease;
}

.studio-item:hover img { transform: scale(1.02); }

.studio-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Numbered list (experience) ---------- */

.numbered-list { list-style: none; }

.numbered-list li {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-width: 2.5rem;
  padding-top: 0.35rem;
}

.numbered-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.numbered-meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 0.6rem;
}

.numbered-list li > div > p:last-child {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46em;
}

/* ---------- Credentials ---------- */

.credentials {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.credentials .eyebrow { margin-bottom: 0.6rem; }
.credentials p { font-size: 0.95rem; }
.credentials a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.credentials a:hover { border-color: var(--ink); }

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

.section-contact {
  text-align: center;
  padding-bottom: 3rem;
}

.section-contact .eyebrow { margin-bottom: 1rem; }

.contact-headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 18em;
  margin: 0 auto 1.5rem;
}

.section-contact .prose { margin: 0 auto; color: var(--ink-soft); }

.contact-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Blog ---------- */

.post-list { list-style: none; }

.post-list li {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}

.post-list a { text-decoration: none; color: var(--ink); }

.post-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.015em;
}

.post-list h3:hover { color: var(--ink-soft); }

.post-date {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Article pages */

.article { padding-top: 4.5rem; max-width: 64rem; }

.article h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}

.article .hero-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38em;
}

.article .prose { margin-top: 2.5rem; }

.article .prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

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

.site-footer {
  margin-top: 7rem;
  border-top: 1px solid var(--line);
  padding: 3rem 2rem 2rem;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 10rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  color: var(--bg-soft);
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
}

.footer-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  main { padding: 0 1.25rem; }
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.8rem; }
  .section { padding-top: 4.5rem; }
  .hero-name { margin: 1.25rem 0 2rem; }
  .project-row,
  .project-row:not(:has(.project-media)) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project-year { order: -1; margin-bottom: -0.5rem; }
  .numbered-list li { gap: 1rem; }
}
