/* ============================================================
   EMINE YILDIZ — Moda & Tekstil Tasarımı
   Palette: ink teal · turquoise · Ottoman gold
   ============================================================ */

:root {
  --ink:        #061417;
  --ink-2:      #0a2026;
  --ink-3:      #0e2c33;
  --teal-line:  #133b41;
  --turquoise:  #2fb6b8;
  --turquoise-2:#56e0d8;
  --turquoise-deep:#138a8f;
  --gold:       #c9a24b;
  --gold-2:     #e7cf94;
  --cream:      #f3eee2;
  --muted:      rgba(243, 238, 226, 0.60);
  --muted-2:    rgba(243, 238, 226, 0.38);
  --line:       rgba(231, 207, 148, 0.18);

  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;

  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(1.25rem, 5vw, 7rem);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 300;
  letter-spacing: 0.01em;
}
body.no-scroll { overflow: hidden; height: 100vh; }

::selection { background: var(--turquoise); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- ambient background glow ---- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 60vw at 82% -8%, rgba(47,182,184,0.10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(201,162,75,0.07), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 400;
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.005em; }
.display { font-size: clamp(3.2rem, 10.5vw, 9.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 0.98; }
.h-sec  { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 500; letter-spacing: -0.012em; }
.italic { font-style: italic; font-weight: 400; color: var(--turquoise-2); }
.gold-text { color: var(--gold-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

.clip-img { overflow: hidden; }
.clip-img img { transform: scale(1.18); transition: transform 1.6s var(--ease); will-change: transform; }
.clip-img.in img { transform: scale(1); }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.in .line-mask > span,
.line-mask.in > span { transform: none; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; background: var(--turquoise-2); transform: translate(-50%, -50%); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(86,224,216,0.6); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
.cursor-ring.grow { width: 70px; height: 70px; background: rgba(86,224,216,0.08); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: transform 1s var(--ease) 0.2s;
}
.preloader.done { transform: translateY(-100%); }
.pre-inner { text-align: center; }
.pre-monogram { width: auto; height: 132px; margin: 0 auto 1.6rem; opacity: 0; transform: scale(0.78); animation: preReveal 1s var(--ease) 0.15s forwards; }
@keyframes preReveal { to { opacity: 1; transform: scale(1); } }
.pre-name { font-family: var(--serif); font-size: 1.95rem; letter-spacing: 0.14em; color: var(--cream); opacity: 0; animation: fadeIn 1s ease 0.7s forwards; }
.pre-bar { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--turquoise), transparent); margin: 1.4rem auto 0; animation: barGrow 1.6s var(--ease) 0.3s forwards; }
@keyframes barGrow { to { width: 220px; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  background: rgba(6,20,23,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; z-index: 902; }
.logo-mark { width: auto; height: 60px; flex: none; transition: transform .5s var(--ease), filter .5s; }
.nav-logo:hover .logo-mark { transform: scale(1.08); filter: brightness(1.15) drop-shadow(0 0 8px rgba(201,162,75,0.5)); }
.nav-logo-name { display: none; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--gold-2); white-space: nowrap; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-family: var(--serif); font-weight: 500; font-size: 1.95rem; letter-spacing: 0.03em; color: var(--cream); }
.logo-word i { font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.footer-logo .logo-mark { height: 78px; }
.footer-brand .nav-logo { position: static; transform: none; display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer-name { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.05em; color: var(--cream); text-align: center; }
.nav-panel { display: flex; align-items: center; width: 100%; }
.nav-links { display: flex; gap: clamp(1rem, 1.4vw, 2rem); align-items: center; flex: 1 1 0; min-width: 0; }
.nav-left { justify-content: flex-end; padding-right: clamp(40px, 4vw, 70px); }
.nav-right { justify-content: flex-start; padding-left: clamp(40px, 4vw, 70px); }
.nav-links a {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 0.3rem 0; transition: color .3s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--turquoise-2); transition: width .4s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .nav-cta { display: inline-flex; align-items: center; line-height: 1; border: 1px solid rgba(231,207,148,0.45); padding: 0.66rem 1.15rem; border-radius: 3px; color: var(--gold-2); transition: all .4s var(--ease); }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }

.burger { display: none; width: 30px; height: 18px; position: relative; z-index: 901; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.4px; background: var(--cream); transition: all .4s var(--ease); }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 8px; } .burger span:nth-child(3) { top: 16px; }
.burger.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: clamp(2rem, 6vh, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; top: 0; left: 0; width: 100%; height: 120%; object-fit: cover; object-position: 50% 45%; filter: saturate(1.02) contrast(1.04); will-change: transform, opacity; opacity: 0; transform: scale(1.06); transition: opacity 1.8s var(--ease); }
.hero-bg img.show { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { 0% { transform: scale(1.06) translate(0,0); } 100% { transform: scale(1.2) translate(-2%, -2.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img.show { animation: none; transform: scale(1.06); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,20,23,0.62) 0%, rgba(6,20,23,0.34) 32%, rgba(6,20,23,0.82) 76%, var(--ink) 100%),
    linear-gradient(90deg, rgba(6,20,23,0.82) 0%, rgba(6,20,23,0.30) 48%, transparent 70%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.6;
  background:
    radial-gradient(40vw 40vw at 75% 25%, rgba(47,182,184,0.18), transparent 55%),
    radial-gradient(35vw 35vw at 20% 80%, rgba(86,224,216,0.10), transparent 55%);
  animation: meshFloat 14s ease-in-out infinite alternate;
}
@keyframes meshFloat { to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }

/* sheen — slow silk light sweep */
.hero-sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 38%, rgba(231,207,148,0.35) 50%, transparent 62%);
  background-size: 250% 250%; animation: sheenMove 12s ease-in-out infinite; }
@keyframes sheenMove { 0%,100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }

/* floating Ottoman motifs */
.hero-motifs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-motifs .hm { position: absolute; color: var(--gold-2); opacity: 0.16; filter: drop-shadow(0 0 14px rgba(231,207,148,0.25)); }
.hero-motifs .hm-1 { width: 120px; height: 120px; top: 16%; left: 8%;  animation: floatA 16s ease-in-out infinite; }
.hero-motifs .hm-2 { width: 78px;  height: 78px;  top: 64%; left: 18%; opacity: 0.12; animation: floatB 19s ease-in-out infinite; }
.hero-motifs .hm-3 { width: 170px; height: 170px; top: 22%; right: 10%; opacity: 0.10; animation: floatB 22s ease-in-out infinite; }
.hero-motifs .hm-4 { width: 64px;  height: 64px;  top: 72%; right: 22%; animation: floatA 14s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(35deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(22px) rotate(-30deg); } }

/* film grain */
.hero-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-content { position: relative; z-index: 3; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-portrait { flex: 0 0 auto; position: relative; width: clamp(210px, 24vw, 340px); aspect-ratio: 1; margin-bottom: 0.6rem; border-radius: 50%; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.55); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait .hp-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(231,207,148,0.55); pointer-events: none; z-index: 2; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(231,207,148,0.7); pointer-events: none; z-index: 2; }
.hero-eyebrow { margin-bottom: 1.6rem; }
.rotator-title { position: relative; display: inline-block; vertical-align: top; }
.rotator-title > span { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rotator-title > span:not(.show) { position: absolute; left: 0; top: 0; }
.rotator-title > span.show { position: relative; opacity: 1; transform: none; }
.eyebrow-static { white-space: nowrap; }
.hero h1 { margin-bottom: 1.2rem; color: var(--cream); }
.hero h1 .line-mask > span { transition-delay: .2s; }
.hero h1 .line-mask:nth-child(2) > span { transition-delay: .35s; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; max-width: 760px; }
.hero-roles { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--turquoise-2); display: flex; align-items: center; gap: 0.8rem; }
.hero-roles .rotator { position: relative; display: inline-grid; }
.hero-roles .rotator span { grid-area: 1/1; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); white-space: nowrap; }
.hero-roles .rotator span.show { opacity: 1; transform: none; }
.hero-desc { font-size: 1.05rem; color: var(--muted); max-width: 440px; line-height: 1.7; }

.scroll-cue { position: absolute; bottom: clamp(1.5rem,4vh,2.5rem); right: var(--pad); z-index: 3; display: flex; align-items: center; gap: 0.8rem; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue .bar { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--turquoise-2); animation: scrollDown 1.8s var(--ease) infinite; }
@keyframes scrollDown { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(250%);} }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; overflow: hidden; white-space: nowrap; background: var(--ink-2); }
.marquee-track { display: inline-flex; gap: 3.5rem; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.3rem); font-style: italic; color: var(--cream); display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section-pad { padding-top: clamp(5rem, 12vh, 9rem); padding-bottom: clamp(5rem, 12vh, 9rem); }
.sec-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.sec-head .eyebrow { margin-bottom: 1.4rem; }
.sec-head p { color: var(--muted); margin-top: 1.6rem; font-size: 1.05rem; max-width: 560px; }

/* ---- ornament divider (animated) ---- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: clamp(2rem,5vh,3.8rem) 0; opacity: 1; transform: none; }
.ornament .rule { height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--gold)); transition: width 1.2s var(--ease) 0.1s; }
.ornament .rule.r { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament.in .rule { width: min(30vw, 280px); }
.ornament .orn-mark { width: 50px; height: 50px; flex: none; opacity: 0; transform: rotate(-135deg) scale(0.35); transition: opacity 1s var(--ease) 0.35s, transform 1.1s var(--ease) 0.35s; }
.ornament.in .orn-mark { opacity: 0.95; transform: rotate(0) scale(1); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ornGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(201,162,75,0)); } 50% { filter: drop-shadow(0 0 8px rgba(201,162,75,0.55)); } }
  .ornament.in .orn-mark { animation: ornGlow 4.5s ease-in-out 1.5s infinite; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-imgwrap { position: relative; }
.about-imgwrap .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-imgwrap .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-imgwrap .badge {
  position: absolute; bottom: -1.6rem; left: -1.6rem; background: var(--ink-3); border: 1px solid var(--line);
  padding: 1.3rem 1.6rem; max-width: 230px;
}
.about-imgwrap .badge b { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-2); display: block; line-height: 1; }
.about-imgwrap .badge .badge-logo { height: 52px; width: auto; display: block; margin-bottom: 0.5rem; }
.about-imgwrap .badge span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.about-imgwrap .corner { position: absolute; width: 34px; height: 34px; border: 1px solid var(--gold); }
.about-imgwrap .corner.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.about-imgwrap .corner.br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.about-body h2 { margin: 0.4rem 0 1.6rem; }
.about-body p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.85; }
.about-body p strong { color: var(--cream); font-weight: 400; }
.about-sign { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--turquoise-2); margin-top: 1.5rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(3rem,7vh,5rem); }
.stat { background: var(--ink); padding: clamp(1.6rem,3.5vw,2.6rem) 1.4rem; text-align: center; }
.stat b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--cream); display: block; line-height: 1; }
.stat b .plus { color: var(--gold); display: inline; }
.stat span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; display: block; }

/* ============================================================
   Philosophy / quote
   ============================================================ */
.philosophy { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.philosophy .container { text-align: center; position: relative; z-index: 1; }
.philo-portrait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(300px, 42vw, 560px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; opacity: 0.14; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 76%); mask-image: radial-gradient(circle, #000 56%, transparent 76%); }
.philosophy blockquote { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3.6rem); line-height: 1.25; font-weight: 300; max-width: 980px; margin: 0 auto; }
.philosophy blockquote .gold-text { font-style: italic; }
.philosophy cite { display: block; margin-top: 2rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   Ottoman motif sections
   ============================================================ */
.motif-section { position: relative; overflow: hidden; isolation: isolate; }
.motif-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23e7cf94' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 75%);
}
.motif-section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(231,207,148,0.5) 22px 24px),
    linear-gradient(90deg, transparent, var(--gold) 40% 60%, transparent);
  background-blend-mode: multiply; opacity: 0.45;
}
.corner-orn { position: absolute; width: clamp(56px, 9vw, 110px); height: clamp(56px, 9vw, 110px); color: var(--gold); opacity: 0.42; z-index: 0; pointer-events: none; }
.corner-orn svg { width: 100%; height: 100%; }
.corner-orn.tl { top: 14px; left: 14px; }
.corner-orn.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner-orn.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.corner-orn.br { bottom: 14px; right: 14px; transform: scale(-1); }

.quote-mark { width: clamp(40px, 6vw, 60px); height: clamp(40px,6vw,60px); color: var(--gold); margin: 0 auto 1.6rem; opacity: 0; transform: rotate(-40deg) scale(0.6); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.quote-mark.in { opacity: 0.9; transform: rotate(0) scale(1); }

/* ---- handwritten signature ---- */
.signature { margin-top: 2.4rem; display: inline-flex; flex-direction: column; align-items: center; }
.sig-script {
  font-family: var(--script); font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; color: var(--gold-2);
  -webkit-mask-image: linear-gradient(90deg, #000 0 0);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .2s; padding: 0 .2em;
}
.signature.in .sig-script { clip-path: inset(0 0 0 0); }
.sig-flourish { width: clamp(170px, 26vw, 240px); height: 22px; color: var(--gold); stroke-width: 1.4; margin-top: -0.3rem; }
.sig-flourish path { stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ease) 1s; }
.signature.in .sig-flourish path { stroke-dashoffset: 0; }
.sig-role { margin-top: 1rem; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   Gallery
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: clamp(2rem,5vh,3rem); }
.filter-btn {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  padding: 0.7rem 1.3rem; border: 1px solid var(--line); border-radius: 100px; transition: all .35s var(--ease);
}
.filter-btn:hover { color: var(--cream); border-color: var(--turquoise-deep); }
.filter-btn.active { background: var(--turquoise); color: var(--ink); border-color: var(--turquoise); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.g-item { position: relative; overflow: hidden; cursor: pointer; background: var(--ink-2); aspect-ratio: 4 / 5; border-radius: 2px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease), filter .8s; filter: saturate(0.88) brightness(0.9); will-change: transform; }
/* cinematic gradient + vignette */
.g-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,20,23,0.18) 0%, transparent 32%, transparent 52%, rgba(6,20,23,0.92) 100%); opacity: 0.5; transition: opacity .6s var(--ease); pointer-events: none; }
/* gold inset frame that draws inward */
.g-item::after { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(231,207,148,0); transition: border-color .6s var(--ease), inset .6s var(--ease); pointer-events: none; }
.g-item:hover img { transform: scale(1.1); filter: saturate(1.12) brightness(1.02); }
.g-item:hover::before { opacity: 1; }
.g-item:hover::after { border-color: rgba(231,207,148,0.65); inset: 10px; }
.g-cap { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 3; opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-cap .t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.g-cap .c { display: block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--turquoise-2); margin-bottom: 0.35rem; }
.g-item .plus-ico { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); background: rgba(6,20,23,0.35); backdrop-filter: blur(3px); opacity: 0; transform: scale(0.6) rotate(-90deg); transition: all .55s var(--ease); z-index: 3; }
.g-item:hover .plus-ico { opacity: 1; transform: scale(1) rotate(0); }
.g-item.hide { display: none; }
.g-item.beyond { display: none; }

.gallery-more { display: flex; justify-content: center; margin-top: 2.6rem; }
.gallery-more.gone { display: none; }
#loadMore .arr { transition: transform .4s var(--ease); }
#loadMore:hover .arr { transform: translateY(4px); }

/* ---- music controller ---- */
.music-ctl { position: fixed; left: 2rem; bottom: 2rem; z-index: 800; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6,20,23,0.7); backdrop-filter: blur(8px); color: var(--gold-2);
  display: grid; place-items: center; transition: all .4s var(--ease); }
.music-ctl:hover { border-color: var(--turquoise-deep); color: var(--turquoise-2); }
.music-ctl .music-note { display: grid; place-items: center; }
.music-ctl .music-note svg { width: 20px; height: 20px; }
.music-ctl .eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music-ctl .eq i { width: 3px; height: 100%; background: var(--turquoise-2); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.music-ctl .eq i:nth-child(2) { animation-delay: .2s; } .music-ctl .eq i:nth-child(3) { animation-delay: .4s; } .music-ctl .eq i:nth-child(4) { animation-delay: .15s; }
@keyframes eq { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.music-ctl.playing .eq { display: flex; }
.music-ctl.playing .music-note { display: none; }
.music-ctl.hint { animation: musicHint 2.4s var(--ease) infinite; }
@keyframes musicHint { 0%,100% { box-shadow: 0 0 0 0 rgba(47,182,184,0.4); } 50% { box-shadow: 0 0 0 8px rgba(47,182,184,0); } }
@media (max-width: 560px) { .music-ctl { left: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; } }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(4,12,14,0.94); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; max-width: 90vw; max-height: 86vh; }
.lb-stage img { max-width: 90vw; max-height: 80vh; width: auto; object-fit: contain; border: 1px solid var(--line); }
.lb-cap { text-align: center; margin-top: 1rem; }
.lb-cap .t { font-family: var(--serif); font-size: 1.4rem; }
.lb-cap .c { font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--turquoise-2); margin-top: 0.3rem; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--cream); font-size: 1.4rem; transition: all .3s; background: rgba(6,20,23,0.5); }
.lb-btn:hover { background: var(--turquoise); color: var(--ink); border-color: var(--turquoise); }
.lb-prev { left: clamp(1rem,3vw,3rem); } .lb-next { right: clamp(1rem,3vw,3rem); }
.lb-close { position: fixed; top: 1.6rem; right: 1.6rem; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--cream); transition: all .3s; }
.lb-close:hover { background: var(--gold-2); color: var(--ink); transform: rotate(90deg); }

/* ============================================================
   Technique / process
   ============================================================ */
.technique { background: var(--ink-2); }
.tech-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.tech-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tech-imgs .clip-img { aspect-ratio: 3/4; }
.tech-imgs .clip-img img { width: 100%; height: 100%; object-fit: cover; }
.tech-imgs .clip-img:first-child { margin-top: 2.5rem; }
.steps { counter-reset: step; }
.step { display: flex; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { counter-increment: step; font-family: var(--serif); font-size: 2.4rem; color: var(--gold-2); line-height: 1; flex: none; width: 3rem; }
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   Book
   ============================================================ */
.book { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%); border-top: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem,7vw,7rem); align-items: center; }
.book-visual { display: grid; place-items: center; perspective: 1600px; }
.book-3d { position: relative; width: min(280px, 70vw); aspect-ratio: 3/4.4; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(6deg); transition: transform .8s var(--ease); }
.book-visual:hover .book-3d { transform: rotateY(-8deg) rotateX(2deg); }
.book-cover {
  position: absolute; inset: 0; border-radius: 4px 8px 8px 4px; overflow: hidden;
  background: linear-gradient(135deg, #0c343a, #07181c 70%);
  border: 1px solid var(--teal-line);
  box-shadow: -28px 34px 60px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.6rem;
}
.book-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(255,255,255,0.05)); }
.book-cover .pattern { position: absolute; inset: 0; opacity: 0.16; background-size: 90px; }
.book-cover .shimmer { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(231,207,148,0.35) 48%, transparent 62%); transform: translateX(-120%); }
.book-visual:hover .shimmer { animation: shimmer 1.1s var(--ease) forwards; }
@keyframes shimmer { to { transform: translateX(120%); } }
.book-cover .bk-top { font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); z-index: 2; }
.book-cover .bk-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; z-index: 2; color: var(--cream); }
.book-cover .bk-author { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--turquoise-2); z-index: 2; }
.book-cover .bk-medal { width: 50px; height: 50px; color: var(--gold); z-index: 2; }

.book-body h2 { margin-bottom: 1.4rem; }
.book-body p { color: var(--muted); margin-bottom: 1.1rem; line-height: 1.8; }
.book-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.8rem 0; }
.book-meta div span { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.book-meta div b { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 0.9rem; padding: 1.05rem 2rem; border-radius: 100px;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold-2); transition: all .4s var(--ease); position: relative; overflow: hidden;
}
.btn span { position: relative; z-index: 2; }
.btn .arr { transition: transform .4s var(--ease); position: relative; z-index: 2; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--ink); border-color: var(--gold-2); }
.btn:hover::before { transform: translateY(0); }
.btn:hover .arr { transform: translateX(5px); }
.btn.solid { background: var(--turquoise); border-color: var(--turquoise); color: var(--ink); }
.btn.solid::before { background: var(--turquoise-2); }
.btn.solid:hover { color: var(--ink); }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--gold), var(--turquoise-deep), transparent); }
.tl-item { position: relative; padding-left: 3rem; padding-bottom: 2.6rem; opacity: 0; transform: translateX(-20px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.tl-item.in { opacity: 1; transform: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold); background: var(--ink); }
.tl-item .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--turquoise-2); transform: scale(0); transition: transform .5s var(--ease); }
.tl-item.in .dot::after { transform: scale(1); }
.tl-year { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--turquoise-2); text-transform: uppercase; }
.tl-item h3 { font-size: 1.55rem; margin: 0.35rem 0 0.3rem; }
.tl-item .place { color: var(--gold-2); font-size: 0.9rem; letter-spacing: 0.04em; }
.tl-item p { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); }

/* ============================================================
   Services
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--ink); padding: clamp(2rem,3.5vw,3rem); transition: background .5s var(--ease); position: relative; overflow: hidden; }
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--turquoise); transition: width .5s var(--ease); }
.service:hover { background: var(--ink-2); }
.service:hover::before { width: 100%; }
.service .ico { width: 40px; height: 40px; color: var(--turquoise-2); margin-bottom: 1.4rem; }
.service h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.service p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.service .idx { position: absolute; top: 1.5rem; right: 1.6rem; font-family: var(--serif); font-size: 0.95rem; color: var(--muted-2); }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); }
.contact-left h2 { margin: 1rem 0 1.6rem; }
.contact-left p { color: var(--muted); max-width: 400px; margin-bottom: 2.4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.ci-row { display: flex; align-items: center; gap: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.ci-row:hover { padding-left: 0.6rem; }
.ci-row .ico { width: 22px; height: 22px; color: var(--gold-2); flex: none; }
.ci-row span { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); display: block; }
.ci-row a, .ci-row p { font-size: 1.05rem; color: var(--cream); }

.form { display: grid; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--cream);
  font-family: var(--sans); font-size: 1rem; padding: 0.9rem 0; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field label { position: absolute; left: 0; top: 0.9rem; color: var(--muted); pointer-events: none; transition: all .35s var(--ease); font-size: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turquoise); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  top: -0.85rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--turquoise-2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: clamp(3rem,7vh,5rem) 0 2.5rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand .nav-logo { font-size: 2.2rem; }
.footer-brand p { color: var(--muted); margin-top: 0.8rem; max-width: 320px; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer-nav a:hover { color: var(--turquoise-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.footer-bottom a:hover { color: var(--turquoise-2); }

.to-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 800; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6,20,23,0.7); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--gold-2); opacity: 0; pointer-events: none; transition: all .4s var(--ease); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--gold-2); color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses to the burger menu earlier — the full row + 5-language
   switch needs ~1200px to sit cleanly around the centered monogram. */
@media (max-width: 1200px) {
  .nav-logo { position: static; transform: none; gap: 0.6rem; }
  .nav-logo .logo-mark { height: 50px; }
  .nav-logo-name { display: inline; }
  .nav-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 2.6rem;
    background: rgba(6,20,23,0.97); backdrop-filter: blur(16px);
    transform: translateY(-101%); transition: transform .6s var(--ease); z-index: 899;
  }
  .nav-panel.open { transform: none; }
  .nav-links { flex-direction: column; gap: 2.6rem; flex: 0; }
  .nav-left, .nav-right { padding: 0; }
  .nav-links a { font-size: 1rem; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  .about-grid, .tech-grid, .book-grid, .contact-grid, .timeline-grid { grid-template-columns: 1fr; }
  .about-imgwrap { max-width: 420px; margin: 0 auto 2.5rem; }
  .tech-imgs { max-width: 480px; margin: 0 auto 2.5rem; }
  .book-visual { margin-bottom: 2rem; }
  .book-3d { transform: rotateY(-12deg) rotateX(4deg); }
  .stats { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1.8rem; }
  .hero-portrait { order: -1; width: clamp(150px, 42vw, 210px); margin-bottom: 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  :root { --pad: 1.3rem; }
  .hero-desc { display: none; }
}

/* ============================================================
   Blog (index section cards)
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2rem, 5vh, 3.5rem); }
.blog-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .6s var(--ease), border-color .6s, box-shadow .6s; }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(231,207,148,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.blog-link { display: block; color: inherit; }
.blog-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: saturate(0.9); }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem 0; }
.blog-cat { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--turquoise-2); }
.blog-date { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted); }
.blog-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; font-weight: 500; padding: 0.7rem 1.5rem 0; }
.blog-excerpt { color: var(--muted); font-size: 0.92rem; line-height: 1.65; padding: 0.7rem 1.5rem 0; }
.blog-more { display: inline-block; padding: 1.1rem 1.5rem 1.6rem; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }
.blog-more i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.blog-card:hover .blog-more i { transform: translateX(6px); }

/* ============================================================
   Article (blog post pages)
   ============================================================ */
.article-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--pad); background: rgba(6,20,23,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.article-nav .nav-logo { position: static; transform: none; }
.article-nav .logo-mark { height: 46px; width: auto; }
.article-back { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.article-back:hover { color: var(--gold-2); }
.article-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) brightness(0.78); }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,23,0.55) 0%, rgba(6,20,23,0.2) 38%, rgba(6,20,23,0.96) 100%); }
.article-hero .container { position: relative; z-index: 2; padding-top: 8rem; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.article-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.08; font-weight: 500; margin: 1rem 0; max-width: 18ch; }
.article-byline { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); }
.article-byline b { color: var(--cream); font-weight: 500; }
.article-body { max-width: 768px; margin: 0 auto; padding: clamp(3rem, 7vh, 5rem) var(--pad); position: relative; z-index: 2; }
.article-body > p { font-size: 1.08rem; line-height: 1.9; color: #ccd5d5; margin-bottom: 1.5rem; }
.article-body > p.lead { font-size: 1.22rem; color: var(--cream); line-height: 1.8; }
.article-body > p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.6rem; line-height: 0.78; float: left; padding: 0.08em 0.14em 0 0; color: var(--gold-2); }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 500; margin: 2.8rem 0 1rem; }
.article-body h3 { font-family: var(--serif); font-size: 1.32rem; margin: 1.9rem 0 0.6rem; color: var(--gold-2); }
.article-body figure { margin: 2.6rem 0; }
.article-body figure img { width: 100%; border-radius: 3px; display: block; }
.article-body figcaption { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.7rem; text-align: center; }
.article-body blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.42; font-style: italic; color: var(--gold-2); border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 2.6rem 0; }
.article-body ul { margin: 0 0 1.5rem 1.1rem; color: #ccd5d5; }
.article-body ul li { margin-bottom: 0.7rem; line-height: 1.7; padding-left: 0.4rem; }
.article-body ul li::marker { color: var(--gold); }
.article-body strong { color: var(--cream); }
.article-foot { max-width: 768px; margin: 0 auto; padding: 0 var(--pad) clamp(3rem,7vh,5rem); position: relative; z-index: 2; }
.article-foot .inner { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.article-sign { font-family: var(--script); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.article-foot .article-back { color: var(--gold-2); }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
@media (max-width: 700px) { .article-hero { min-height: 56vh; } }

/* blog filter + sort */
.blog-card.hide { display: none; }
#blogFilters { margin-top: clamp(1.4rem, 4vh, 2.4rem); margin-bottom: 0; }
#blogFilters + .blog-grid { margin-top: clamp(1.4rem, 3.5vh, 2.2rem); }

/* blog section atmospheric background */
#blog { overflow: hidden; }
.blog-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: min(96vh, 1000px);
  object-fit: cover; object-position: 50% 52%;
  opacity: 0.32; filter: grayscale(1) contrast(1.05) brightness(0.92);
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 54%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 54%, transparent 100%);
}
/* transparent "glass" card frames so the photo shows through */
.blog-card { background: rgba(6,20,23,0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(231,207,148,0.22); }
.blog-card:hover { background: rgba(6,20,23,0.44); }
.blog-thumb { opacity: 0.92; }

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; margin-left: 0.8rem; padding-left: 0.8rem; border-left: 1px solid var(--line); }
.lang-btn { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em; font-weight: 400; color: var(--muted); padding: 0.3rem 0.32rem; border-radius: 3px; transition: color .3s, background .3s; line-height: 1; }
.lang-btn:hover { color: var(--cream); }
.lang-btn.active { color: var(--ink); background: var(--gold-2); }
@media (max-width: 1200px) {
  .lang-switch { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 0.3rem; }
  .lang-btn { font-size: 0.95rem; padding: 0.4rem 0.7rem; letter-spacing: 0.16em; }
}
/* article pages language switcher (in the top bar) */
.article-nav .lang-switch { margin: 0; padding: 0; border: 0; }

/* ============================================================
   Theme toggle button
   ============================================================ */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color .3s, background .3s, transform .5s var(--ease); margin-left: 0.5rem; }
.theme-toggle:hover { color: var(--gold-2); transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }
@media (max-width: 1200px) {
  .theme-toggle { width: 42px; height: 42px; margin: 1.4rem 0 0; }
  .theme-toggle svg { width: 22px; height: 22px; }
}

/* ============================================================
   LIGHT THEME — warm ivory / sand · gold · petrol-green
   ============================================================ */
[data-theme="light"] {
  --ink:        #f4eee2;
  --ink-2:      #ece3d2;
  --ink-3:      #e4d9c5;
  --turquoise:  #1f7d7e;
  --turquoise-2:#136a6c;
  --turquoise-deep:#0e5557;
  --gold:       #b58a33;
  --gold-2:     #9a7322;
  --cream:      #1d2b29;
  --muted:      rgba(29,43,41,0.64);
  --muted-2:    rgba(29,43,41,0.42);
  --line:       rgba(120,90,30,0.22);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(60vw 60vw at 82% -8%, rgba(31,125,126,0.07), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(181,138,51,0.09), transparent 60%);
}
[data-theme="light"] ::selection { background: var(--turquoise); color: #fff; }

/* Hero stays image-driven & dark — re-scope the dark palette inside it */
[data-theme="light"] .hero { --ink:#061417; --cream:#f4eee2; --gold-2:#e7cf94; --turquoise-2:#56e0d8; --muted:rgba(244,238,226,0.62); }

/* Nav: light text over the dark hero; flips to dark once scrolled over ivory */
[data-theme="light"] .nav { --cream:#f6f0e4; --gold-2:#ecd49a; --turquoise-2:#56e0d8; --muted:rgba(246,240,228,0.74); }
[data-theme="light"] .nav.scrolled { background: rgba(244,238,226,0.86); border-bottom-color: var(--line); --cream:#1d2b29; --gold-2:#9a7322; --muted:rgba(29,43,41,0.66); }
[data-theme="light"] .nav-cta:hover, [data-theme="light"] .lang-btn.active, [data-theme="light"] .btn:hover, [data-theme="light"] .to-top:hover { color:#15100a; }
@media (max-width: 1200px) {
  [data-theme="light"] .nav-panel { background: rgba(244,238,226,0.98); --cream:#1d2b29; --gold-2:#9a7322; --muted:rgba(29,43,41,0.66); }
}

/* Gallery captions sit over photos — keep them light, gold reads better than turquoise */
[data-theme="light"] .gallery { --cream:#f4eee2; --gold-2:#e7cf94; }
[data-theme="light"] .g-cap { color: var(--cream); }
[data-theme="light"] .g-cap .c { color: var(--gold-2); }

/* Floating music button → ivory/gold in the light theme */
[data-theme="light"] .music-ctl {
  background: rgba(244,238,226,0.88); border-color: rgba(154,115,34,0.4); color: var(--gold-2);
}
[data-theme="light"] .music-ctl:hover { border-color: var(--turquoise-deep); color: var(--turquoise-deep); }
[data-theme="light"] .music-ctl .eq i { background: var(--gold-2); }

/* About badge: keep the petrol-green plate (not ivory), light text on it */
[data-theme="light"] .about-imgwrap .badge {
  background: var(--turquoise-deep); border-color: rgba(231,207,148,0.28);
  --gold-2:#e7cf94; --muted:rgba(244,238,226,0.78);
}

/* Philosophy quote: stays dark like the original theme */
[data-theme="light"] .philosophy {
  background: #0a2026; color: var(--cream);
  border-top-color: rgba(231,207,148,0.18); border-bottom-color: rgba(231,207,148,0.18);
  --cream:#f3eee2; --gold:#c9a24b; --gold-2:#e7cf94; --turquoise-2:#56e0d8;
  --muted:rgba(243,238,226,0.6); --line:rgba(231,207,148,0.18);
}

/* Background motif texture — make the Ottoman pattern visible on the ivory */
[data-theme="light"] .motif-section::before {
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23a9802c' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="light"] .motif-section::after { opacity: 0.55; }
[data-theme="light"] .corner-orn { opacity: 0.5; color: var(--gold); }
/* …but the philosophy plate is dark again, so restore its pale-gold pattern */
[data-theme="light"] .philosophy::before {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23e7cf94' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/g%3E%3C/svg%3E");
}

/* Blog: light glass cards + gentler photo backdrop */
[data-theme="light"] .blog-card { background: rgba(247,242,233,0.55); border-color: rgba(120,90,30,0.22); }
[data-theme="light"] .blog-card:hover { background: rgba(247,242,233,0.8); box-shadow: 0 24px 60px rgba(60,45,15,0.14); }
[data-theme="light"] .blog-bg { opacity: 0.18; }

/* Article pages */
[data-theme="light"] .article-nav { background: rgba(244,238,226,0.86); }
[data-theme="light"] .article-hero { --cream:#f4eee2; --gold-2:#e7cf94; --muted:rgba(244,238,226,0.72); }
/* Book cover sits on its own dark background — keep text light regardless of theme */
[data-theme="light"] .book-cover { --cream:#f3eee2; --gold-2:#e7cf94; --turquoise-2:#56e0d8; }
/* Big article title sits on a dark photo — use the light gold so it stays legible */
[data-theme="light"] .article-hero h1 { color: var(--gold-2); }
[data-theme="light"] .article-body > p, [data-theme="light"] .article-body ul { color:#283330; }

.article-nav-actions { display: flex; align-items: center; gap: 1.1rem; }
