/* sathishkumarbalan.com — photography portfolio. Dark, minimal, image-first. No frameworks. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/fraunces-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --ink: #f2efe9;
  --ink-2: #c9c4bb;
  --muted: #8d877d;
  --line: #26262a;
  --accent: #d9b77e;          /* warm gold, like late light */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------------- Header ---------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(12, 12, 13, .82); backdrop-filter: blur(12px) saturate(140%); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.brand-sub { font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 99px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav .nav-cta { border: 1px solid rgba(242, 239, 233, .35); color: var(--ink); margin-left: 8px; }
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; background: rgba(12, 12, 13, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 99px; border-bottom: 1px solid rgba(242, 239, 233, .35); }
}

/* ---------------- Hero slideshow ---------------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 65%),
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.75) 100%); }
@media (max-width: 640px) { .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 25%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.82) 100%); } }
.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(88px, 14vh, 150px); }
.hero-kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(242, 239, 233, .9); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero h1 { margin-top: 16px; font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: .98; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { color: var(--accent); }
.hero-lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(242, 239, 233, .95); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 99px; font: 500 15px var(--sans); letter-spacing: .02em; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-outline { border: 1px solid rgba(242, 239, 233, .5); color: var(--ink); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.hero-meta { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 34px; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.hero-title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(242, 239, 233, .92); }
.hero-credit { font-size: 11.5px; color: rgba(242, 239, 233, .6); letter-spacing: .04em; }
.hero-dots { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; position: relative; }
.hero-dots button[aria-selected="true"]::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: progress var(--dur, 7s) linear forwards; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { position: absolute; left: clamp(20px, 4vw, 48px); bottom: 30px; width: 22px; height: 36px; border: 1.5px solid rgba(242,239,233,.55); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) {
  .hero-meta { left: 20px; right: auto; text-align: left; bottom: 70px; }
  .hero-content { bottom: 130px; }
  .scroll-cue { display: none; }
  .hero-dots { left: 20px; transform: none; bottom: 40px; }
}

/* ---------------- Statement ---------------- */
.statement { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 70px); }
.statement-text { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; color: var(--ink); font-weight: 300; }
.statement-text em { color: var(--accent); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { background: none; border: 1px solid var(--line); color: var(--ink-2); font: 500 13.5px var(--sans); padding: 8px 16px; border-radius: 99px; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--ink); border-color: #44444a; }
.filter.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Gallery: masonry columns */
.gallery { columns: 3 340px; column-gap: 14px; }
.tile { break-inside: avoid; margin: 0 0 14px; transition: opacity .35s; }
.tile.is-hidden { display: none; }
.tile a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ph, #1c1c1f); aspect-ratio: var(--ar); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), filter .6s; }
.tile a:hover img { transform: scale(1.045); }
.tile figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.tile a:hover figcaption, .tile a:focus-visible figcaption { opacity: 1; transform: none; }
.tile .t { font-family: var(--serif); font-size: 1.15rem; }
.tile .c { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,239,233,.75); white-space: nowrap; }
@media (hover: none) { .tile figcaption { opacity: 1; transform: none; padding-top: 28px; } }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .collections { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .collections { grid-template-columns: repeat(2, 1fr); } }
.collection { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--ph); text-decoration: none; }
.collection img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.collection:hover img { transform: scale(1.06); }
.collection::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75)); }
.collection .label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-family: var(--serif); font-size: 1.35rem; display: flex; flex-direction: column; }
.collection small { font: 500 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(242,239,233,.72); margin-top: 4px; }

/* Approach */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillars article { background: var(--bg); padding: clamp(28px, 4vw, 44px); }
.pillars .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.pillars h3 { margin-top: 18px; }
.pillars p { margin-top: 12px; color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--ink-2); font-size: 1.08rem; }
.about-copy p + p { margin-top: 14px; }
.about-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.about-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.about-list span { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding-top: 3px; }
.about-quote { margin: 0; padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--accent); }
.about-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; }
.about-quote footer { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { background: radial-gradient(80% 120% at 50% 0%, #1b1813, var(--bg) 70%); border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 18px; }
.lead { color: var(--ink-2); font-size: 1.12rem; }
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 13.5px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.credits { margin-top: 18px; font-size: 12px; line-height: 1.6; color: #6d685f; }
.credits a { color: #8a847a; text-decoration: underline; text-decoration-color: #3a3a3f; text-underline-offset: 3px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, .96); color: var(--ink); }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 28px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lightbox figcaption > span:first-child { font-family: var(--serif); font-size: 1.25rem; }
.lb-credit { font-size: 12px; color: var(--muted); }
.lb-btn { position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--ink); width: 48px; height: 48px; border-radius: 99px; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox figure { padding: 60px 12px 24px; } .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* Reveal on scroll (JS adds .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide img, .tile img, .collection img, .reveal { transition: none !important; animation: none !important; transform: none !important; }
  .reveal { opacity: 1; }
  .scroll-cue span, .hero-dots button::after { animation: none !important; }
}
