/* ==========================================================================
   Papu Bhattacharya — portfolio
   Brand: orange #FD853A on ink navy, warm paper. Type: Instrument Serif / Geist.
   ========================================================================== */

:root {
  --orange: #fd853a;
  --orange-deep: #d9691f;
  --orange-soft: rgba(253, 133, 58, 0.12);
  --ink: #0b1020;
  --navy: #101828;
  --slate: #1d2939;
  --steel: #344054;
  --muted: #475467;
  --mist: #667085;
  --line: rgba(16, 24, 40, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #fbf8f4;
  --sand: #f4eee6;
  --white: #ffffff;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --script: "Smooch", cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.h-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.1vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-section {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
.h-section span, .h-display em, .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: -0.01em;
}
.h-display em { font-size: 1.08em; }
.h-section span { font-size: 1.1em; }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; min-height: 54px;
  border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s;
  will-change: transform; isolation: isolate; overflow: hidden;
}
.btn .btn-ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); flex: none; overflow: hidden;
  transition: background 0.3s, color 0.3s;
}
.btn .btn-ico svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover { box-shadow: 0 18px 40px -16px rgba(253, 133, 58, 0.75); }
.btn:hover .btn-ico svg { animation: ico-fly 0.55s var(--ease); }
@keyframes ico-fly {
  0% { transform: translate(0, 0); } 45% { transform: translate(18px, -18px); }
  46% { transform: translate(-18px, 18px); } 100% { transform: translate(0, 0); }
}
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost .btn-ico { background: var(--navy); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light .btn-ico { background: var(--orange); color: var(--ink); }
.btn--plain { padding: 0 26px; justify-content: center; }
.on-dark .btn--ghost { --fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.on-dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.on-dark .btn--ghost .btn-ico { background: var(--white); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--navy);
  position: relative; padding-bottom: 4px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: currentColor;
  transform-origin: right; transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.link-arrow:hover::after, a:hover > .link-arrow::after, .card-link:hover .link-arrow::after { transform-origin: left; transform: scaleX(1); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg, .card-link:hover .link-arrow svg { transform: translate(3px, -3px); }
.on-dark .link-arrow { color: var(--white); }

/* ---------- Progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), #ffb27a); transform-origin: left; transform: scaleX(0); }

.nav {
  position: fixed; top: 16px; left: 50%; z-index: 100;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  transition: transform 0.6s var(--ease), top 0.4s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 8px 10px; border-radius: 999px;
  background: rgba(11, 16, 32, 0.86); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 48px -24px rgba(11, 16, 32, 0.55);
  color: var(--white);
}
.nav-group { display: flex; align-items: center; gap: 4px; }
.nav-group--end { justify-content: flex-end; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav-link.is-active { background: var(--orange); color: var(--ink); }
.nav-link svg { width: 18px; height: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 2px 18px; }
.brand img { width: 42px; height: 42px; transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-name { font-family: var(--script); font-size: 1.75rem; line-height: 0.82; color: var(--white); display: flex; flex-direction: column; letter-spacing: 0.01em; }
.brand-name small { font-size: 0.62em; opacity: 0.8; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); justify-self: end; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle span + span { margin-top: 5px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.schedule {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 18px 40px -14px rgba(253, 133, 58, 0.9);
  transition: transform 0.5s var(--ease);
}
.schedule::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--orange); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.22, 1.6); opacity: 0; } }
.schedule svg { width: 18px; height: 18px; }
.schedule:hover { transform: translateY(-4px) scale(1.03); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(128px, 15vh, 170px) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 520px at 78% 30%, rgba(253, 133, 58, 0.2), transparent 62%), radial-gradient(700px 400px at 0% 0%, rgba(253, 133, 58, 0.09), transparent 60%);
}
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--paper)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 8vh, 96px); }
.hello {
  position: relative; display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid var(--navy); font-weight: 500; font-size: 0.98rem; margin-bottom: 28px; background: rgba(255, 255, 255, 0.6);
}
.hello svg { position: absolute; right: -30px; top: -24px; width: 34px; height: 34px; color: var(--orange); }
.hello svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.7s 1s var(--ease) forwards; }
.hello svg path:nth-child(2) { animation-delay: 1.1s; } .hello svg path:nth-child(3) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero-role { font-size: 0.56em; letter-spacing: -0.03em; color: var(--slate); line-height: 1.1; padding-top: 0.25em; }
.hero-quote { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin: 36px 0 36px; max-width: 520px; }
.hero-quote svg { width: 40px; height: 40px; color: var(--orange); flex: none; }
.hero-quote p { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--steel); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; align-self: end; justify-self: center; width: min(100%, 520px); aspect-ratio: 3 / 3.75; }
.hero-arch {
  position: absolute; inset: 14% 4% 0 4%; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #ff9d5c 0%, var(--orange) 45%, var(--orange-deep) 100%);
  transform-origin: bottom; animation: arch 1.3s 0.15s var(--ease) both;
}
.hero-arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%); }
@keyframes arch { from { transform: scaleY(0.3); opacity: 0; } }
.hero-ring { position: absolute; inset: 6% -6% -8% -6%; border-radius: 999px 999px 0 0; border: 1.5px dashed rgba(16, 24, 40, 0.22); border-bottom: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; animation: photo 1.4s 0.3s var(--ease) both; filter: drop-shadow(0 30px 40px rgba(11, 16, 32, 0.25)); }
@keyframes photo { from { transform: translateY(8%); opacity: 0; } }
.stat-card {
  position: absolute; right: -4%; bottom: 16%; z-index: 2; min-width: 210px; padding: 18px 22px; border-radius: 20px; text-align: right;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -28px rgba(11, 16, 32, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: float 6s ease-in-out infinite, fade-up 1s 0.9s var(--ease) both;
}
.stars { display: inline-flex; gap: 3px; color: var(--orange); }
.stars svg { width: 16px; height: 16px; }
.stat-card .years { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.stat-card .experince { font-size: 0.86rem; color: var(--muted); max-width: 20ch; margin-left: auto; line-height: 1.35; }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

.ticker { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 20px 0; position: relative; z-index: 1; }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--navy); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .lede { color: rgba(255, 255, 255, 0.72); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; }
.glow-top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(253, 133, 58, 0.16), transparent 60%);
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }

/* ---------- Highlights (two ways) ---------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 133, 58, 0.28), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.way {
  display: flex; flex-direction: column; min-height: 420px; padding: clamp(28px, 3.4vw, 46px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-dark);
  transition: transform 0.7s var(--ease), border-color 0.4s;
}
.way:hover { transform: translateY(-8px); border-color: rgba(253, 133, 58, 0.55); }
.way-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 60px; }
.tag { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(253, 133, 58, 0.5); color: var(--orange); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.way-ico { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--orange); color: var(--ink); transition: transform 0.8s var(--ease); }
.way:hover .way-ico { transform: rotate(-8deg) scale(1.08); }
.way-ico svg { width: 30px; height: 30px; }
.way h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.way p { color: rgba(255, 255, 255, 0.72); margin-bottom: 30px; max-width: 48ch; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 130px; display: grid; gap: 24px; }
.services-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); min-height: 320px;
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.4s;
}
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.service:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(16, 24, 40, 0.4); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service:nth-child(even) { translate: 0 36px; }
.service-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); margin-bottom: 28px; transition: background 0.4s, color 0.4s, transform 0.7s var(--ease); }
.service:hover .service-ico { background: var(--orange); color: var(--ink); transform: rotate(-8deg); }
.service-ico svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Portfolios ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 12px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); overflow: hidden; min-height: 400px; text-align: left; width: 100%;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.case:hover { transform: translateY(-8px); box-shadow: 0 50px 80px -48px rgba(16, 24, 40, 0.5); }
.case-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--orange); }
.case-ico svg { width: 22px; height: 22px; }
.case h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.case-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.case-meta dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--mist); text-transform: uppercase; align-self: center; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-meta dd.impact { font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.1; color: var(--orange-deep); }
.case p { color: var(--muted); font-size: 0.96rem; }
.case .link-arrow { margin-top: auto; align-self: flex-start; }
.case-cover { position: relative; align-self: stretch; }
.case-cover img {
  position: absolute; top: 8%; left: 6%; width: 150%; max-width: none; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 30px 50px -24px rgba(16, 24, 40, 0.45); transform: rotate(5deg); transform-origin: top left;
  transition: transform 0.9s var(--ease);
}
.case:hover .case-cover img { transform: rotate(1deg) translate(-8%, -4%) scale(1.04); }

.modal { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); height: min(92vh, 1200px); max-width: none; max-height: none; overflow: visible; }
.modal::backdrop { background: rgba(11, 16, 32, 0.72); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.modal-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; background: var(--ink); color: #fff; }
.modal-head h3 { font-size: 1rem; font-weight: 500; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background 0.3s, transform 0.5s var(--ease); flex: none; }
.modal-btn:hover { background: var(--orange); color: var(--ink); transform: rotate(90deg); }
a.modal-btn:hover { transform: none; }
.modal-btn svg { width: 18px; height: 18px; }
.modal iframe { flex: 1; width: 100%; border: 0; background: #f2f2f2; }
.modal-titles { margin-right: auto; min-width: 0; }
.modal-titles h3 { margin: 0; }
.modal-titles p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.62); white-space: pre-wrap; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--white); }
.modal-foot .btn { min-height: 46px; }
.modal-foot .btn .btn-ico { width: 32px; height: 32px; }
.modal--sheet { width: min(860px, 94vw); height: auto; max-height: 92vh; }
.modal--sheet .modal-card { height: auto; max-height: 92vh; }
.sheet { padding: clamp(28px, 4vw, 52px); overflow-y: auto; display: grid; gap: 22px; }
.sheet-head { display: flex; align-items: center; gap: 20px; }
.sheet-head .h-section { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.sheet h4 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-deep); font-weight: 500; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-list { display: grid; gap: 12px; }
.sheet-list li { position: relative; padding-left: 34px; color: var(--slate); }
.sheet-list li::before { content: ""; position: absolute; left: 0; top: 0.36em; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 5px #fde3d1, inset 0 0 0 9px var(--orange); }
.sheet-closing { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; color: var(--navy); }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.exp-side { position: sticky; top: 120px; display: grid; gap: 32px; }
.portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--slate); }
.portrait img { width: 100%; height: 115%; object-fit: cover; object-position: center top; will-change: transform; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line-dark); }
.timeline-fill { position: absolute; left: 7px; top: 10px; width: 1.5px; height: calc(100% - 20px); background: var(--orange); transform-origin: top; transform: scaleY(0); }
.job { position: relative; padding: 0 0 clamp(36px, 5vw, 60px); }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -44px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid rgba(255, 255, 255, 0.35); transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.job.is-in::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(253, 133, 58, 0.2); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 14px; }
.job-head h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.job-date { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); }
.job h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.45rem; color: var(--orange); margin-bottom: 10px; line-height: 1.2; }
.job p { color: rgba(255, 255, 255, 0.72); max-width: 60ch; }

/* ---------- Why hire me ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-photo { position: relative; isolation: isolate; }
.why-photo .portrait { aspect-ratio: 4 / 5; background: var(--sand); }
.why-photo::before { content: ""; position: absolute; inset: 8% -5% -5% 12%; border-radius: var(--radius-lg); background: var(--orange); z-index: -1; transform: rotate(4deg); transition: transform 1.2s var(--ease); }
.why-photo.is-in::before { transform: rotate(-3deg); }
.why-copy { display: grid; gap: 28px; justify-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-block: 1px solid var(--line); }
.stat { padding: 28px 16px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat h3 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

/* ---------- Blogs ---------- */
.blogs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.blog {
  grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); min-height: 320px;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), background 0.5s, color 0.5s;
}
.blog:nth-child(-n + 2) { grid-column: span 3; }
.blog:hover { transform: translateY(-8px); background: var(--ink); color: var(--white); box-shadow: 0 40px 70px -40px rgba(16, 24, 40, 0.6); }
.blog-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--orange-deep); margin-bottom: 22px; transition: all 0.5s var(--ease); }
.blog:hover .blog-ico { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(-10deg); }
.blog-ico svg { width: 22px; height: 22px; }
.blog h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.blog p { color: var(--muted); font-size: 0.97rem; transition: color 0.5s; }
.blog:hover p { color: rgba(255, 255, 255, 0.7); }
.blog .link-arrow { margin-top: auto; align-self: flex-start; color: inherit; }

/* ---------- Testimonials ---------- */
.quotes { columns: 3 320px; column-gap: 20px; }
.quote {
  break-inside: avoid; margin-bottom: 20px; padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  display: grid; gap: 20px; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), background 0.4s;
}
.quote:hover { transform: translateY(-6px); background: var(--white); box-shadow: 0 40px 70px -44px rgba(16, 24, 40, 0.45); }
.quote-rate { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.86rem; color: var(--navy); }
.quote blockquote { font-size: 1.02rem; line-height: 1.62; color: var(--slate); }
.quote footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--orange); font-family: var(--serif); font-style: italic; font-size: 1.3rem; flex: none; }
.quote cite { font-style: normal; font-weight: 600; display: block; letter-spacing: -0.01em; }
.quote footer span { color: var(--mist); font-size: 0.9rem; }

/* ---------- CTA / forms ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 760px; height: 760px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 133, 58, 0.4), transparent 65%); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta-grid--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cta .heading { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 40px; }
.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 20px 22px; border-radius: 18px; font: inherit; color: inherit; resize: vertical;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(253, 133, 58, 0.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.field-error { display: block; color: #ff8f8f; font-size: 0.86rem; padding: 6px 6px 0; min-height: 0; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-status { min-height: 1.6em; color: var(--orange); font-weight: 500; }
.form--light .field input, .form--light .field textarea { background: var(--white); border-color: var(--line); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: var(--mist); }
.form--light .field input:focus, .form--light .field textarea:focus { background: var(--white); }
.form--light .field-error { color: #c2281d; }
.form--light .form-status { color: var(--orange-deep); }
.cta-photo .portrait { aspect-ratio: 4 / 5; }

/* ---------- Footer ---------- */
.footer { background: #070b17; color: var(--white); padding: clamp(64px, 8vw, 110px) 0 36px; position: relative; overflow: hidden; }
.connect { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
.connect h2 { font-size: clamp(2.6rem, 8vw, 7.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.7fr 1fr; gap: clamp(32px, 5vw, 80px); }
.footer .brand { padding: 0; margin-bottom: 22px; }
.footer .brand img { width: 56px; height: 56px; }
.footer .brand-name { font-size: 2.3rem; }
.footer p { color: rgba(255, 255, 255, 0.66); max-width: 46ch; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: all 0.5s var(--ease); }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-5px) rotate(-8deg); }
.socials svg { width: 18px; height: 18px; }
.footer h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 500; margin-bottom: 22px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.82); display: inline-flex; align-items: center; gap: 12px; transition: color 0.3s, transform 0.5s var(--ease); }
.footer-links a:hover { color: var(--orange); transform: translateX(6px); }
.footer-links svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: clamp(150px, 20vh, 210px) 0 clamp(48px, 7vw, 90px); background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 133, 58, 0.38), transparent 65%); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; }
.page-hero .industry { display: inline-flex; margin-top: 28px; }
.prose { display: grid; gap: 22px; max-width: 78ch; font-size: 1.08rem; color: var(--steel); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--navy); margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.9rem; color: var(--orange-deep); margin-top: 22px; line-height: 1.15; }
.prose ul { display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 30px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 14px; height: 1.5px; background: var(--orange); }
.prose a { color: var(--orange-deep); border-bottom: 1px solid currentColor; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-grid--single { grid-template-columns: minmax(0, 1fr); }
.article-figure { position: sticky; top: 120px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); padding: 14px; box-shadow: 0 40px 70px -48px rgba(16, 24, 40, 0.5); }
.article-figure img { width: 100%; border-radius: 12px; }
.article-figure--wide { position: static; margin-bottom: clamp(32px, 5vw, 56px); }

/* cards: fade in on reveal, then keep their own hover timing */
.service[data-reveal], .case[data-reveal], .way[data-reveal], .blog[data-reveal], .quote[data-reveal] {
  transition: opacity 1s var(--ease) var(--d, 0s), transform 0.8s var(--ease), box-shadow 0.7s var(--ease), background 0.5s, color 0.5s, border-color 0.4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .services-grid, .exp-grid, .why-grid, .cta-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .services-intro, .exp-side, .article-figure { position: static; }
  .hero-copy { padding-bottom: 12px; }
  .hero-visual { width: min(86%, 440px); }
  .exp-side .portrait { aspect-ratio: 16 / 11; max-width: 560px; }
  .why-photo { max-width: 460px; }
  .cta-photo { display: none; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .blog, .blog:nth-child(-n + 2) { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-bar { grid-template-columns: auto 1fr; padding: 8px 8px 8px 6px; }
  .nav-bar .brand { order: -1; padding-left: 10px; }
  .nav-toggle { display: flex; }
  .nav-group {
    position: fixed; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0;
    background: #0b1020; padding: 0 12px;
    opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 0.4s, transform 0.5s var(--ease);
  }
  .nav-group--start { border-radius: 26px 26px 0 0; padding-top: 12px; }
  .nav-group--end { top: calc(76px + 12px + 3 * 54px); border-radius: 0 0 26px 26px; padding-bottom: 12px; }
  .nav.is-open .nav-group { opacity: 1; pointer-events: auto; transform: none; }
  .nav-link { padding: 15px 20px; font-size: 1.05rem; height: 54px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { min-height: 340px; }
  .section-head--split { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-cards { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(even) { translate: none; }
  .service { min-height: 0; }
  .case { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .case-cover { height: 190px; order: -1; margin: -24px -24px 6px; overflow: hidden; background: var(--sand); }
  .case-cover img { width: 86%; left: 7%; top: 14%; transform: rotate(-2deg); }
  .blog, .blog:nth-child(-n + 2) { grid-column: 1 / -1; min-height: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; }
  .stat h3 { min-width: 3.2ch; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-card { right: -2%; bottom: 8%; min-width: 0; padding: 14px 16px; }
  .stat-card .years { font-size: 1.9rem; }
  .schedule { right: 14px; bottom: 14px; padding: 12px 18px 12px 14px; font-size: 0.88rem; }
  .timeline { padding-left: 34px; }
  .job::before { left: -34px; }
  .hello svg { right: -26px; }
  .modal { width: 100vw; height: 100dvh; }
  .modal-card { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .ticker-track { animation: none; }
}
