/*
Theme Name: Writers Zone Studio
Theme URI: https://writerszone.in/
Author: Sana
Description: Single-page portfolio for Sana, SEO Content Writer & Strategist.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: writerszone-studio
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --card: #ffffff;
  --card-soft: #f7f7f7;
  --ink: #0d0f17;
  --ink-2: #3a3d4a;
  --muted: #6b6e7b;
  --line: #ececec;
  --line-2: #e2e2e6;
  --btn: #0d0f17;
  --btn-ink: #ffffff;
  --chip: #ffffff;
  --shadow: 0 1px 2px rgba(13, 15, 23, .04), 0 8px 24px rgba(13, 15, 23, .05);
  --tint-blue: #e3f1ff;
  --tint-orange: #fff0de;
  --tint-purple: #efeaff;
  --tint-green: #e3f7e8;
  --tint-pink: #ffe8ef;
  --heart: #f0416c;
  --display: "Bricolage Grotesque", "Bricolage Grotesque Fallback", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1320px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0f17;
  --bg-soft: #0d0f17;
  --card: #151824;
  --card-soft: #151824;
  --ink: #f4f4f6;
  --ink-2: #c9cad2;
  --muted: #9093a3;
  --line: #22263a;
  --line-2: #2a2f45;
  --btn: #f4f4f6;
  --btn-ink: #0d0f17;
  --chip: #1c2030;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --tint-blue: #16243a;
  --tint-orange: #2e2214;
  --tint-purple: #221d3a;
  --tint-green: #142a1d;
  --tint-pink: #2f1620;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }
p { margin: 0; }
b, strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--ink); color: var(--bg); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; }

section { position: relative; transition: background-color .4s var(--ease); }
.sec { padding: 120px 0; }
.sec--soft { background: var(--bg-soft); }
.sec--white { background: var(--bg); }
:root[data-theme="dark"] .sec + .sec { border-top: 1px solid var(--line); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee__track, .logos__track, .words__track { animation: none !important; }
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--btn); color: var(--btn-ink); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 15, 23, .18); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); height: 46px; padding: 0 22px; font-weight: 500; font-size: 14px; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .gm { width: 18px; height: 18px; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 96px;
  display: flex; align-items: center;
  transition: height .35s var(--ease), background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.hdr.scrolled {
  height: 80px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.04em; }
.brand svg { width: 34px; height: 34px; }
.brand svg path { stroke: var(--ink); }

.nav {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .nav { background: var(--card); }
.nav a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .3s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a svg { width: 15px; height: 15px; }
.nav__pill {
  position: absolute; z-index: 0; top: 6px; left: 0;
  height: 40px; width: 0; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
:root[data-theme="dark"] .nav__pill { background: #262b3f; }

.hdr__right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--btn); color: var(--btn-ink);
  transition: transform .35s var(--ease);
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500;
  transition: background-color .3s, color .3s;
}
:root[data-theme="dark"] .pill-btn { background: var(--card); }
.pill-btn:hover { background: var(--ink); color: var(--bg); }
.pill-btn svg { width: 16px; height: 16px; }
.burger { display: none; }

.mnav {
  position: fixed; z-index: 49; top: 76px; left: 16px; right: 16px;
  padding: 10px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(13, 15, 23, .15);
  display: grid; gap: 2px;
  opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.mnav.open { opacity: 1; transform: none; pointer-events: auto; }
.mnav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-weight: 500; }
.mnav a:hover { background: var(--bg-soft); }
.mnav a svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 6rem);
  padding: 150px 0 0;
  background: var(--bg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.hero__hi { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-2); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(64px, 10.5vw, 132px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero h1 b { font-weight: 700; }
.roles { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.role-side {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.role-side svg { width: 18px; height: 18px; }
.role-main {
  position: relative; height: 42px; padding: 0 20px; border-radius: 999px;
  display: inline-flex; align-items: center; overflow: hidden;
  font-size: 17px; font-weight: 500;
  transition: background-color .5s var(--ease), width .5s var(--ease);
}
.role-main__txt { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.role-main__txt svg { width: 16px; height: 16px; }
.role-main__txt.out { animation: roleOut .45s var(--ease) forwards; }
.role-main__txt.inn { animation: roleIn .55s var(--ease) forwards; }
@keyframes roleOut { to { transform: translateY(-120%); opacity: 0; filter: blur(4px); } }
@keyframes roleIn { from { transform: translateY(120%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
.tint-blue { background: var(--tint-blue); }
.tint-orange { background: var(--tint-orange); }
.tint-purple { background: var(--tint-purple); }
.tint-green { background: var(--tint-green); }
.tint-pink { background: var(--tint-pink); }
.hero__sub { margin-top: 24px; font-size: 18px; color: var(--muted); min-height: 1.6em; transition: opacity .35s, transform .35s var(--ease); }
.hero__sub b { color: var(--ink); font-weight: 600; }
.hero__sub.swap { opacity: 0; transform: translateY(6px); }
.hero__cta { margin-top: 40px; margin-bottom: 90px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Eyes */
.eyes {
  position: relative;
  margin-top: auto;
  display: flex; gap: 22px;
  height: 140px; /* lower part of the eyes tucks behind the next section */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.eye {
  position: relative;
  width: 196px; height: 196px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink);
  overflow: hidden;
}
:root[data-theme="dark"] .eye { background: #f4f4f6; border-color: #f4f4f6; }
.pupil {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: #0d0f17;
  transition: transform .18s ease-out;
}
.pupil::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; top: 22px; right: 18px;
}
.lid {
  position: absolute; inset: 0; background: var(--bg);
  transform-origin: top; transform: scaleY(0);
  transition: transform .45s var(--ease);
  border-bottom: 1.5px solid var(--ink);
}
:root[data-theme="dark"] .lid { background: #0d0f17; border-color: #f4f4f6; }
.eyes.blink .lid { transform: scaleY(1); transition-duration: .09s; }
.eyes.sleep .lid { transform: scaleY(.5); }
.eyes.sleep .pupil { transform: translate(0, 14px) !important; }
.eyes.surprised .pupil { transform: scale(.7) !important; }
.zzz {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; color: var(--ink-2);
  display: flex; gap: 4px; align-items: flex-end;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.eyes.sleep .zzz { opacity: 1; }
.zzz span { display: inline-block; animation: zz 2.4s ease-in-out infinite; }
.zzz span:nth-child(1) { font-size: 12px; }
.zzz span:nth-child(2) { font-size: 14px; animation-delay: .3s; }
.zzz span:nth-child(3) { font-size: 18px; animation-delay: .6s; }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-6px); opacity: 1; } }

/* ---------- Experience ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -16px 0 48px; }
.tab {
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.tab:hover { transform: translateY(-1px); }
.tab.active { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

.xp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.xp {
  perspective: 1600px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.xp.hide { display: none; }
.xp.fading { opacity: 0; transform: scale(.97); }
.xp__inner {
  position: relative; height: 100%; min-height: 300px;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.xp.flipped .xp__inner { transform: rotateY(180deg); }
.xp__face {
  position: absolute; inset: 0;
  background: var(--card); border-radius: var(--r-lg);
  padding: 34px 36px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.xp__face--front { position: relative; }
.xp__back { transform: rotateY(180deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .xp__back { background: #1f2333; color: var(--ink); border-color: var(--line-2); }
.xp__logo { height: 44px; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.xp__logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
:root[data-theme="dark"] .xp__logo img { background: #fff; border-radius: 8px; padding: 3px 6px; }
.xp h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.xp__meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14.5px; color: var(--ink-2); }
.xp__meta .co { margin-right: auto; }
.xp__meta span { display: inline-flex; align-items: center; gap: 6px; }
.xp__meta svg { width: 14px; height: 14px; }
.xp__desc { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.xp__foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; color: var(--ink-2); }
.xp__foot > span:first-child { margin-right: 6px; }
.metric {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.xp__flip {
  position: absolute; top: 26px; right: 26px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink);
  transition: transform .5s var(--ease), background-color .3s;
}
.xp__flip:hover { transform: rotate(180deg); }
.xp__flip svg { width: 16px; height: 16px; }
.xp__back .xp__flip { background: rgba(255, 255, 255, .12); color: inherit; }
.xp__back h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; opacity: .6; }
.xp__back p { margin-top: 14px; font-size: 15.5px; line-height: 1.65; opacity: .92; }
.xp__back b { color: inherit; }
.xp__tags { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.xp__tags span { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; display: inline-flex; align-items: center; }
:root[data-theme="dark"] .xp__tags span { border-color: var(--line-2); }

/* Logo marquee */
.logos { margin-top: 110px; }
.logos__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; gap: 20px; width: max-content; animation: slide 46s linear infinite; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logo-tile {
  height: 128px; min-width: 210px; padding: 24px 34px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.logo-tile:hover { transform: translateY(-4px) rotate(-1deg); }
.logo-tile img { max-height: 64px; max-width: 170px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logo-tile:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .logo-tile { background: #f4f4f6; }
@keyframes slide { to { transform: translateX(-50%); } }
.logos__cap { margin: 34px auto 0; max-width: 480px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.edu__badge {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 30px;
  transition: transform .5s var(--ease);
}
.edu:hover .edu__badge { transform: translateY(-4px) rotate(-6deg); }
.edu h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.edu__meta { margin-top: 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14.5px; }
.edu__meta span { display: inline-flex; align-items: center; gap: 6px; }
.edu__meta svg { width: 14px; height: 14px; }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; grid-template-rows: auto auto auto; gap: 34px 24px; align-items: center; }
.tools__head { grid-column: 2; grid-row: 2; text-align: center; }
.tools__head h2 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.tools__head p { margin-top: 14px; color: var(--muted); }
.tgroup { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tgroup--top { grid-column: 2; grid-row: 1; flex-direction: column; }
.tgroup--bottom { grid-column: 2; grid-row: 3; flex-direction: column-reverse; }
.tgroup--left { grid-column: 1; grid-row: 2; }
.tgroup--right { grid-column: 3; grid-row: 2; flex-direction: column-reverse; }
.tlabel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.tlabel svg { width: 15px; height: 15px; }
.ticons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ti {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center;
  animation: bob 5s ease-in-out infinite; animation-delay: var(--bd, 0s);
  transition: transform .3s var(--ease);
}
.ti i {
  width: 24px; height: 24px;
  background: var(--c, var(--ink));
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ti b { font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: -.04em; color: var(--c, var(--ink)); }
.ti::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 4px);
  background: var(--btn); color: var(--btn-ink);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.ti:hover { animation-play-state: paused; transform: scale(1.12); }
.ti:hover::after { opacity: 1; transform: translate(-50%, 0); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Case studies ---------- */
.work__viewport { overflow: hidden; padding: 6px 0 12px; }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: slide 50s linear infinite; }
.work__viewport:hover .marquee__track { animation-play-state: paused; }
.case {
  position: relative; flex: none;
  width: 440px; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card-soft);
  isolation: isolate;
}
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13, 15, 23, .88)); opacity: .75; transition: opacity .5s; }
.case__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 26px; color: #fff; }
.case__kick { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.case h3 { color: #fff; margin-top: 6px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.case__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.case__more > div { overflow: hidden; }
.case__more p { margin-top: 10px; font-size: 14px; line-height: 1.55; opacity: .88; }
.case__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0d0f17; font-size: 13.5px; font-weight: 600; }
.case:hover img { transform: scale(1.06); }
.case:hover::after { opacity: 1; }
.case:hover .case__more { grid-template-rows: 1fr; }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proc {
  position: relative; overflow: hidden;
  min-height: 430px; border-radius: var(--r-lg);
  background: #0d0f17; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 36px 30px 38px;
  isolation: isolate;
}
.proc__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.proc__art::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(35% 30% at 80% 10%, rgba(255, 255, 255, .08), transparent 70%);
  transition: transform 1.2s var(--ease);
}
.proc__art::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.proc:hover .proc__art::before { transform: translate(6%, 8%) scale(1.1); }
.proc__num { position: absolute; top: 26px; left: 30px; font-family: var(--display); font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .25); }
.proc__icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0d0f17; display: grid; place-items: center; margin-bottom: 22px; transition: transform .6s var(--ease); }
.proc:hover .proc__icon { transform: rotate(-12deg) scale(1.08); }
.proc__icon svg { width: 22px; height: 22px; }
.proc h3 { color: #fff; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.proc p { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .78); line-height: 1.6; max-width: 320px; }
:root[data-theme="dark"] .proc { background: #151824; border: 1px solid var(--line); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  background: var(--card-soft); border-radius: var(--r-lg);
  padding: 34px 26px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
:root[data-theme="dark"] .svc { border-color: var(--line); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.svc__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; transition: transform .6s var(--ease); }
.svc:hover .svc__icon { transform: scale(1.1) rotate(8deg); }
.svc__icon svg { width: 22px; height: 22px; }
.svc h3 { font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.svc > p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 8px; width: 100%; }
.svc li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.svc li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #16a34a; }
.svc__foot { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; width: 100%; }
.svc__pill { flex: 1; min-width: 0; height: 50px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
:root[data-theme="dark"] .svc__pill { background: var(--chip); }
.svc__pill b { color: var(--ink); }
.svc__go { width: 50px; height: 50px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.svc__go svg { width: 16px; height: 16px; }
.svc__go:hover { transform: rotate(45deg); }
.inds { margin-top: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14.5px; }
.inds > span:first-child { margin-right: 6px; }
.ind { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; position: relative; transition: transform .3s var(--ease); }
.ind:hover { transform: translateY(-3px) scale(1.08); }
.ind::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: var(--btn); color: var(--btn-ink); font-size: 12px; white-space: nowrap; padding: 5px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.ind:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Results ---------- */
.res-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.res-grid--b { margin-top: 20px; grid-template-columns: 1.6fr 1fr; }
.rcard { background: var(--card); border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--line); }
.rcard h3 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.rcard > p { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.rlabel { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.rlabel i { width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-style: normal; }
.rlabel svg { width: 14px; height: 14px; }
.rlist { list-style: none; padding: 0; margin: 14px 0 0; }
.rlist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.rlist li:last-child { border-bottom: 0; }
.rlist li b { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; }
.stat { background: var(--bg-soft); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; transition: transform .5s var(--ease); }
:root[data-theme="dark"] .stat { background: var(--chip); }
.stat:hover { transform: translateY(-4px); }
.stat:nth-child(1) { background: var(--tint-blue); }
.stat:nth-child(2) { background: var(--tint-orange); }
.stat:nth-child(3) { background: var(--tint-purple); }
.stat:nth-child(4) { background: var(--tint-green); }
.stat__n { font-family: var(--display); font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stat__l { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.langs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--bg-soft); font-size: 14.5px; color: var(--ink-2); }
:root[data-theme="dark"] .lang { background: var(--chip); }
.lang i { width: 30px; height: 30px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink); }
.lang b { font-weight: 600; }
.now { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }
.now li { display: flex; gap: 12px; align-items: flex-start; }
.now li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Articles ---------- */
.art-top { display: flex; justify-content: center; margin: -24px 0 40px; }
.total { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--tint-green); font-weight: 600; font-size: 15px; }
.total svg { width: 16px; height: 16px; color: #16a34a; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.art {
  background: var(--card-soft); border-radius: var(--r-lg); padding: 18px 18px 22px;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .4s;
}
:root[data-theme="dark"] .art { border-color: var(--line); }
.art:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.art.hide { display: none; }
.art__thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center;
}
.art__thumb img { max-width: 46%; max-height: 40%; width: auto; object-fit: contain; transition: transform .7s var(--ease); }
.art:hover .art__thumb img { transform: scale(1.08); }
.art__thumb::before { content: ""; position: absolute; inset: 22px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(13, 15, 23, .08); transition: transform .7s var(--ease); }
.art:hover .art__thumb::before { transform: scale(1.03) rotate(-1.5deg); }
.art__thumb img { position: relative; }
.art__niche { position: absolute; top: 12px; left: 12px; z-index: 1; height: 28px; padding: 0 12px; border-radius: 999px; background: #0d0f17; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.art h3 { margin: 20px 4px 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.art__tags { margin: 12px 4px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.art__tags span { font-size: 12.5px; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.art__foot { margin-top: auto; padding: 22px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.art__foot .btn--ghost { height: 42px; }
.clicks { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.clicks b { color: var(--ink); font-weight: 600; }
.clicks::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.c-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; }
.c-info h3 { font-size: 32px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.c-info > p { margin-top: 14px; color: var(--muted); }
.c-avail { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tint-green); font-size: 14px; font-weight: 500; align-self: flex-start; }
.c-links { margin-top: 28px; display: grid; gap: 10px; }
.c-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg-soft); transition: transform .4s var(--ease), background-color .3s; }
:root[data-theme="dark"] .c-link { background: var(--chip); }
.c-link:hover { transform: translateX(4px); }
.c-link i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-style: normal; }
.c-link i svg { width: 18px; height: 18px; }
.c-link small { display: block; color: var(--muted); font-size: 12.5px; }
.c-link span { font-weight: 500; font-size: 15px; word-break: break-all; }
.c-link > svg { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.c-info .btn { margin-top: auto; align-self: flex-start; }
.c-info .c-links + .btn { margin-top: 28px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 16px; outline: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  appearance: none; -webkit-appearance: none;
}
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { background: var(--chip); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6e7b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); background-color: var(--card); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13.5px; color: var(--muted); }
.form__msg { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; }
.form__msg.ok { display: block; background: var(--tint-green); }
.form__msg.err { display: block; background: var(--tint-pink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Word marquee ---------- */
.words { padding: 70px 0 0; background: var(--bg-soft); }
.words__band { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.words__track { display: flex; align-items: center; width: max-content; animation: slide 38s linear infinite; }
.words__track span { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.03em; color: var(--ink-2); padding: 0 28px; white-space: nowrap; }
.words__track span.plus { color: var(--muted); font-weight: 300; padding: 0; }

/* ---------- Footer CTA ---------- */
.foot { background: var(--bg-soft); padding: 80px 0 90px; }
.cta {
  position: relative;
  background: #0d0f17; color: #fff;
  border-radius: 36px;
  padding: 80px 32px 40px;
  text-align: center;
  overflow: visible;
}
:root[data-theme="dark"] .cta { background: #151824; border: 1px solid var(--line); }
.cta h2 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.cta > p { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.cta__btns { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta .btn--light { background: #fff; color: #0d0f17; }
.cta .btn--light:hover { transform: translateY(-2px); }
.cta .btn--outline { border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.cta .btn--outline:hover { background: rgba(255, 255, 255, .1); }
.socials { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: #fff; color: #0d0f17; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.sign { margin-top: 30px; font-family: var(--script); font-size: 66px; line-height: 1; color: #fff; opacity: .95; }
.cta__bottom { margin-top: 26px; display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .7); }
.cta__photo {
  position: absolute; left: 44px; bottom: -36px;
  width: 190px; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  border: 6px solid var(--bg-soft);
  transform: rotate(-6deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
  transition: transform .7s var(--ease);
}
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; filter: grayscale(1) contrast(1.05); transition: filter .7s; }
.cta:hover .cta__photo { transform: rotate(-2deg) translateY(-8px); }
.cta:hover .cta__photo img { filter: none; }

/* WordPress admin bar (logged-in only) */
.admin-bar .hdr { top: 32px; }
.admin-bar .mnav { margin-top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } .admin-bar .mnav { margin-top: 46px; } }

/* Floating action button */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 40; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(13, 15, 23, .25); transition: transform .4s var(--ease); }
.fab__btn:hover { transform: scale(1.07); }
.fab__btn svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.fab.open .fab__btn svg { transform: rotate(90deg); }
.fab__menu {
  position: absolute; right: 0; bottom: 70px; width: 250px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px;
  box-shadow: 0 24px 60px rgba(13, 15, 23, .18);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.fab.open .fab__menu { opacity: 1; transform: none; pointer-events: auto; }
.fab__menu p { padding: 10px 12px 6px; font-size: 13px; color: var(--muted); }
.fab__menu a, .fab__menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-size: 14.5px; font-weight: 500; text-align: left; }
.fab__menu a:hover, .fab__menu button:hover { background: var(--bg-soft); }
.fab__menu svg { width: 18px; height: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--btn); color: var(--btn-ink);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 0 14px; }
  .nav a svg { display: none; }
}
@media (max-width: 960px) {
  .nav, .hdr__right .pill-btn { display: none; }
  .burger { display: inline-grid; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
  :root[data-theme="dark"] .burger { background: var(--card); }
  .xp-grid, .art-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc { min-height: 300px; }
  .res-grid, .res-grid--b, .contact { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .tools__head { grid-column: 1; grid-row: 1; }
  .tgroup--top, .tgroup--left, .tgroup--right, .tgroup--bottom { grid-column: 1; grid-row: auto; flex-direction: column; }
  .cta__photo { display: none; }
}
@media (max-width: 720px) {
  .wrap, .hdr__in { padding: 0 16px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 40px; }
  .hdr { height: 72px; }
  .hdr.scrolled { height: 64px; }
  .mnav { top: 70px; }
  .hero { padding-top: 120px; min-height: calc(100svh - 5rem); }
  .hero__sub { font-size: 16px; padding: 0 8px; }
  .role-main { font-size: 15px; padding: 0 16px; }
  .role-side { width: 38px; height: 38px; }
  .eyes { height: 98px; gap: 14px; }
  .hero__cta { margin-bottom: 64px; }
  .eye { width: 136px; height: 136px; }
  .pupil { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .pupil::after { width: 15px; height: 15px; top: 15px; right: 12px; }
  .xp-grid, .art-grid, .edu-grid, .svc-grid { grid-template-columns: 1fr; }
  .edu-grid { gap: 40px; }
  .xp__face { padding: 28px 24px; }
  .xp__inner { min-height: 340px; }
  .xp__meta .co { width: 100%; }
  .logos { margin-top: 72px; }
  .logo-tile { height: 100px; min-width: 160px; padding: 18px 24px; }
  .logo-tile img { max-height: 50px; max-width: 130px; }
  .case { width: 300px; }
  .case .case__more { grid-template-rows: 1fr; }
  .case__more p { display: none; }
  .rcard, .c-info, .form { padding: 26px 22px; }
  .form { grid-template-columns: 1fr; }
  .stat { min-height: 130px; padding: 20px; }
  .cta { padding: 60px 20px 34px; border-radius: 28px; }
  .sign { font-size: 54px; }
  .foot { padding: 50px 0 60px; }
  .fab { right: 16px; bottom: 16px; }
  .tabs { margin-top: -8px; }
}
