/* Debabrata Bhuyan – founder site
   Palette: Mahanadi teal, slate ink, cool paper, a little brass.
   Type: Spectral (serif, headings and name), Public Sans (text). */
:root {
  --ink: #1b2430;
  --ink-2: #4a5866;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #1f5f66;
  --teal-deep: #164a50;
  --teal-pale: #e3eeee;
  --brass: #b88a2e;
  --brass-text: #7d5c14;
  --line: #d3dcdb;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gut: clamp(1.2rem, 4vw, 2.5rem);
  --block: clamp(4rem, 9vw, 7.5rem);
  --top-h: 70px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left, 0px)), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -80px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 4px; }
.skip:focus { top: 1rem; color: #fff; }

/* Monogram */
.mono { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--teal); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; border-bottom: 3px solid var(--brass); flex-shrink: 0; }
.mono-sm { width: 30px; height: 30px; font-size: .85rem; border-bottom-width: 2px; vertical-align: middle; margin-right: .5rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 246, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem; height: var(--top-h); }
.mark { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.mark-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
#nav { margin-left: auto; }
#nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; align-items: center; }
#nav a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: 4px; }
#nav a:hover { background: var(--teal-pale); }
#nav a.nav-cta { background: var(--teal); color: var(--paper); margin-left: .4rem; }
#nav a.nav-cta:hover { background: var(--teal-deep); }
.menu { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; cursor: pointer; }
.menu i, .menu i::before, .menu i::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s, background-color .2s; }
.menu i::before, .menu i::after { content: ""; position: absolute; left: 0; }
.menu i::before { top: -6px; } .menu i::after { top: 6px; }
.menu[aria-expanded="true"] i { background: transparent; }
.menu[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu { display: block; }
  #nav { position: fixed; inset: var(--top-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .8rem var(--gut) 1.4rem; display: none; }
  #nav.is-open { display: block; }
  #nav ul { flex-direction: column; align-items: stretch; }
  #nav a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  #nav a.nav-cta { margin: .8rem 0 0; text-align: center; border-radius: 4px; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid var(--teal); transition: background-color .2s, color .2s; text-align: center; }
.btn-solid { background: var(--teal); color: var(--paper); }
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--paper); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.4rem + 6.4vw, 6.6rem); line-height: .98; letter-spacing: -0.03em; margin-bottom: .35em; }
.hero-role { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 1.4rem; }
.hero-lede { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.45rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 400px; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; background: var(--teal); }
.portrait-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); z-index: -1; }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 14vw, 9rem); color: var(--paper); letter-spacing: -0.04em; }
.portrait-mono::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 26%; height: 4px; background: var(--brass); }
.portrait figcaption { margin-top: 1.6rem; font-size: .92rem; color: var(--ink-2); }
.credentials { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: .98rem; }
.credentials span { display: inline-flex; align-items: center; gap: .7rem; }
.credentials span + span::before { content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 240px; }
}

/* One orchestrated load moment: the name rises into place */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .hero h1 { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .js-ready .hero-role, .js-ready .hero-lede, .js-ready .hero-actions { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .js-ready .portrait-frame { animation: frame 1.1s .1s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes frame { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Blocks */
.block { padding: var(--block) 0; }
.block-tint { background: var(--white); border-block: 1px solid var(--line); }
.block-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block-head p { color: var(--ink-2); font-size: 1.12rem; }

/* Areas of work index (signature element) */
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.index-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.index-list button { position: relative; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .85rem 0 .85rem 1.4rem;
  font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color .2s, padding-left .25s; }
.index-list button::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--line); transform: rotate(45deg); transition: background-color .2s, width .25s; }
.index-list button:hover { color: var(--ink); }
.index-list button[aria-selected="true"] { color: var(--teal); padding-left: 2.2rem; }
.index-list button[aria-selected="true"]::before { background: var(--brass); width: 22px; height: 2px; margin-top: -1px; transform: none; }
.index-panels { position: sticky; top: calc(var(--top-h) + 1.5rem); }
.panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: clamp(1.5rem, 3vw, 2.4rem); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--teal); }
.panel p { font-size: 1.06rem; }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; gap: .6rem; }
.facts li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.panel-link { font-weight: 600; display: inline-block; padding-block: .3rem; }
.no-js .index-list { display: none; }
.no-js .index { grid-template-columns: 1fr; }
.no-js .index-panels { position: static; display: grid; gap: 1rem; }
.no-js .panel[hidden] { display: block; }
@media (max-width: 860px) {
  .index { grid-template-columns: 1fr; }
  .index-panels { position: static; }
  .index-list button { font-size: 1.25rem; padding: .8rem 0 .8rem 1.2rem; }
  .index-list button[aria-selected="true"] { padding-left: 1.9rem; }
}

/* Ventures */
.ventures { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ventures li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, .6fr); gap: 1.5rem 2.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.v-name h3 { margin-bottom: .2rem; }
.v-name p { margin: 0; font-weight: 600; color: var(--brass-text); font-size: .95rem; }
.v-what { margin: 0; color: var(--ink-2); }
.v-link { font-weight: 600; justify-self: end; text-align: right; }
.v-muted { color: var(--ink-2); font-weight: 500; }
@media (max-width: 820px) {
  .ventures li { grid-template-columns: 1fr; gap: .5rem; }
  .v-link { justify-self: start; text-align: left; }
}

/* Journey */
.journey-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); }
.journey-grid .block-head { position: sticky; top: calc(var(--top-h) + 1.5rem); align-self: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--teal); line-height: 1; padding-top: .1rem; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid .block-head { position: static; }
  .timeline li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1rem; }
  .when { font-size: 1.45rem; }
}

/* Odisha */
.block-teal { background: var(--teal); color: var(--paper); }
.block-teal h2 { color: var(--paper); }
.odisha-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); }
.odisha-lede { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); line-height: 1.55; }
.block-teal p:not(.odisha-lede) { color: #cfe2e2; font-size: 1.08rem; max-width: 38em; }
.odisha-grid h2 { position: relative; padding-top: 1.2rem; }
.odisha-grid h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; background: var(--brass); }
@media (max-width: 820px) { .odisha-grid { grid-template-columns: 1fr; } }

/* Contact */
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.routes li > div { flex: 1 1 320px; }
.routes h3 { margin-bottom: .25rem; font-size: 1.25rem; }
.routes p { margin: 0; color: var(--ink-2); }
.routes .btn { flex: 0 0 auto; min-width: 230px; }
@media (max-width: 560px) { .routes .btn { width: 100%; min-width: 0; } }
.elsewhere { margin-top: 3rem; }
.elsewhere h3 { font-size: 1.15rem; }
.elsewhere ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.elsewhere a { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem .95rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; border-radius: 4px; }
.elsewhere a:hover { border-color: var(--teal); color: var(--teal); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 max(2rem, env(safe-area-inset-bottom, 0px)); font-size: .92rem; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; align-items: center; }
.foot p { margin: 0; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.lost .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); font-weight: 600; color: var(--teal); line-height: 1; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print { .top, .hero-actions, .routes .btn { display: none !important; } }
