/* Annamalai Colour Lab & Studio, Pattukkottai
   Palette: wall green + brass (taken from the gold frames and the green wall in the shop's own pictures) */

:root {
  --wall: #0f2b23;
  --wall-2: #16382e;
  --plaster: #eceee9;
  --plaster-2: #dfe4dc;
  --ink: #10231d;
  --ink-2: #47574e;
  --ivory: #eef0e8;
  --ivory-2: #b7c5bb;
  --brass: #c9a24d;
  --brass-lt: #e6d09a;
  --brass-dk: #765818;
  --line-d: rgba(238, 240, 232, 0.18);
  --line-l: rgba(16, 35, 29, 0.18);

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tamil: "Noto Serif Tamil", "Latha", "Nirmala UI", serif;

  --max: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sec--light :focus-visible { outline-color: var(--wall); }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.i--s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(72px, 9vw, 128px); scroll-margin-top: var(--nav-h); }
.sec--dark { background: var(--wall); color: var(--ivory); --hair: var(--line-d); --soft: var(--ivory-2); }
.sec--light { background: var(--plaster); color: var(--ink); --hair: var(--line-l); --soft: var(--ink-2); }
.soft { color: var(--soft); }

.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.head p { max-width: 50ch; }
@media (min-width: 900px) {
  .head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
}
.copy { display: grid; gap: 20px; align-content: start; }
.copy p { max-width: 46ch; }

/* thin brass keyline offset from a picture, like a mount */
.keyline { outline: 1px solid var(--brass); outline-offset: 9px; }
.sec--light .keyline { outline-color: var(--brass-dk); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-lt); }
.btn--line { border-color: rgba(238, 240, 232, .55); color: var(--ivory); }
.btn--line:hover { border-color: var(--brass); color: var(--brass-lt); }
.btn--wall { background: var(--wall); color: var(--ivory); }
.btn--wall:hover { background: var(--wall-2); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--ivory); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(15, 43, 35, .97); color: var(--ivory);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-stuck { border-color: var(--line-d); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font: 400 1.6rem/1 var(--serif); }
.brand span { display: none; font-size: .85rem; color: var(--ivory-2); }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { border-color: var(--brass); }
.nav__cta { display: none; min-height: 42px; padding: 0 18px; font-size: .95rem; }
.burger { width: 48px; height: 48px; margin-right: -10px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.burger i { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s; }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--wall); color: var(--ivory); padding: 24px var(--gut) 120px; overflow-y: auto; display: none; }
.menu.is-open { display: block; }
.menu a:not(.btn) { display: block; padding: 14px 0; font: 400 1.9rem/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line-d); }
.menu .btns { margin-top: 28px; }
.menu .btn { flex: 1 1 200px; }

@media (min-width: 560px) { .brand span { display: inline; } }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger, .menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { background: var(--wall); color: var(--ivory); padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(40px, 6vw, 80px); min-height: 100svh; display: flex; align-items: flex-end; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 56px); align-items: end; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero__ta { font: 500 clamp(1rem, 1.8vw, 1.2rem)/1.5 var(--tamil); color: var(--brass); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 7rem); line-height: .96; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
.hero__lead { margin-top: 28px; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 34ch; }
.hero__sub { margin-top: 10px; color: var(--ivory-2); font-size: .98rem; }
.hero .btns { margin-top: 32px; }

.hero__art { position: relative; }
.hero__frames { display: flex; align-items: flex-end; justify-content: center; }
.hero__frames img { height: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .35)); }
.hf--big { width: 64%; }
.hf--small { width: 37%; margin-right: -5%; position: relative; z-index: 2; }
.hero__cap { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--brass); font-size: .92rem; color: var(--ivory-2); }

/* the one orchestrated moment: the frames go up on the wall */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Services index ---------- */
.svc { border-top: 1px solid var(--hair); }
.svc a { display: grid; gap: 4px 32px; padding: 22px 6px; border-bottom: 1px solid var(--hair); text-decoration: none; transition: background-color .2s; }
.svc a:hover { background: rgba(201, 162, 77, .14); }
.svc p { color: var(--soft); }
.svc .fact { font-weight: 600; color: var(--brass-dk); }
@media (min-width: 800px) {
  .svc a { grid-template-columns: minmax(240px, .85fr) 1.4fr minmax(180px, .6fr); align-items: baseline; padding-block: 26px; }
  .svc .fact { text-align: right; }
}

/* ---------- Lists ---------- */
.lines { border-top: 1px solid var(--hair); }
.lines li { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lines li span { color: var(--soft); font-size: 1rem; }

/* ---------- Framing ---------- */
.ladder { display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 14px; --k: 6.2px; -webkit-overflow-scrolling: touch; }
.ladder figure { margin: 0; flex: none; scroll-snap-align: center; }
.ladder img { height: calc(var(--h) * var(--k)); width: auto; max-width: none; }
.ladder figcaption { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--brass); font-weight: 600; color: var(--brass-lt); }
.ladder-note { margin-top: 6px; font-size: .9rem; }
@media (min-width: 900px) { .ladder { --k: 10.4px; justify-content: center; overflow: visible; } .ladder-note { display: none; } }
.framing__gold { margin-top: clamp(64px, 9vw, 112px); }

.lit { position: relative; width: min(100%, 460px); aspect-ratio: 955 / 1120; margin-inline: auto; }
.lit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lit__on { opacity: 0; transition: opacity .7s ease; }
.lit.is-on .lit__on { opacity: 1; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--ivory); }
.switch i { position: relative; width: 44px; height: 24px; border: 1px solid var(--brass); border-radius: 12px; transition: background-color .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); transition: transform .3s, background-color .3s; }
.switch[aria-pressed="true"] i { background: var(--brass); }
.switch[aria-pressed="true"] i::after { transform: translateX(20px); background: var(--wall); }

/* ---------- Before / after ---------- */
.ba { position: relative; width: min(100%, 420px); aspect-ratio: 640 / 854; margin-inline: auto; overflow: visible; --pos: 50%; touch-action: pan-y; }
.ba__stage { position: absolute; inset: 0; overflow: hidden; background: var(--plaster-2); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ivory); pointer-events: none; }
.ba__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--wall); border: 2px solid var(--ivory); }
.ba__tag { position: absolute; bottom: 12px; padding: 4px 10px; background: var(--wall); color: var(--ivory); font-size: .85rem; font-weight: 600; pointer-events: none; }
.ba__tag--l { left: 12px; } .ba__tag--r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within .ba__line::after { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Printing ---------- */
.printer { width: 100%; max-width: 520px; margin-inline: auto; mix-blend-mode: multiply; }

/* ---------- Gifts ---------- */
.gift { display: grid; gap: 28px; align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--hair); }
.gift:first-of-type { margin-top: 0; }
@media (min-width: 900px) {
  .gift { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .gift--rev { grid-template-columns: .85fr 1.15fr; }
  .gift--rev > :first-child { order: 2; }
}
.gift .copy { gap: 16px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; font-family: var(--serif); }
.price strong { font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--brass-lt); }
.price s { font-size: 1.4rem; color: var(--ivory-2); }
.tag { display: inline-block; border: 1px solid var(--brass); color: var(--brass-lt); padding: 3px 12px; font: 600 .9rem/1.4 var(--sans); }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; }
.strip button { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; }
.strip img { height: clamp(220px, 30vw, 330px); width: auto; max-width: none; }
.gift--mirror { display: block; }
.gift--mirror .copy { margin-bottom: 28px; }

/* ---------- Albums, paper, trade ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 400; }
.tbl thead th { font-weight: 600; color: var(--soft); font-size: .95rem; border-bottom-color: var(--ink); }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.tbl tbody th { font-weight: 500; }
.paper { margin-top: clamp(56px, 8vw, 104px); }
.paper__imgs { display: flex; gap: 30px; padding: 10px; align-items: flex-end; }
.paper__imgs img { width: auto; min-width: 0; flex: 0 1 auto; }
.paper__imgs img:first-child { height: clamp(180px, 26vw, 300px); }
.paper__imgs img:last-child { height: clamp(240px, 36vw, 420px); }

.spec { display: grid; column-gap: 56px; }
@media (min-width: 720px) { .spec { grid-template-columns: repeat(2, 1fr); } }
.spec > div { padding: 18px 0; border-top: 1px solid var(--hair); }
.spec dt { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-lt); }
.spec dd { margin-top: 4px; }
.ply { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; --k: 3.2px; margin-top: 8px; }
.ply i { display: block; flex: none; width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k)); background: rgba(201, 162, 77, .12); border: 1px solid rgba(201, 162, 77, .7); }

/* ---------- Gallery ---------- */
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 16px; } }
.tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--plaster-2); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
@media (min-width: 900px) { .tile { margin-bottom: 16px; } }
.tile img { width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.03); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(15, 43, 35, .9); color: var(--ivory); font-size: .92rem; text-align: left; transform: translateY(100%); transition: transform .3s; }
.tile:hover span, .tile:focus-visible span { transform: none; }

/* ---------- Why ---------- */
.why { display: grid; gap: 0; }
.why > div { padding: 22px 0 26px; border-top: 1px solid var(--hair); }
.why h3 { margin-bottom: 8px; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(36px, 6vw, 72px); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact h2 { margin-bottom: 20px; }
.contact .btns { margin-top: 28px; }
.details > div { display: grid; gap: 2px; padding: 18px 0; border-top: 1px solid var(--hair); }
.details > div:last-child { border-bottom: 1px solid var(--hair); }
.details dt { font-size: .92rem; color: var(--soft); }
.details dd { font-size: 1.2rem; }
.details a { text-decoration-color: var(--brass-dk); text-underline-offset: 4px; }
.details a:hover { text-decoration-color: currentColor; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 1rem; font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--wall); color: var(--ivory-2); padding: 40px 0 48px; border-top: 1px solid var(--line-d); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot b { font: 400 1.3rem/1 var(--serif); color: var(--ivory); }

/* ---------- Floating contact ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--wall); border-top: 1px solid var(--line-d); }
.dock a { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; text-decoration: none; }
.dock a:first-child { color: var(--ivory); }
.dock a:last-child { background: var(--brass); color: var(--ink); }
.fab { display: none; }
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; background: var(--brass); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: background-color .2s; }
  .fab:hover { background: var(--brass-lt); }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; display: none; grid-template-rows: minmax(0, 1fr) auto; padding: 16px; background: rgba(8, 22, 18, .96); color: var(--ivory); touch-action: pan-y; }
.lb.is-open { display: grid; }
.lb__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 40px 0 0; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .3s; }
.lb__img.is-in { opacity: 1; }
.lb__bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: .95rem; }
.lb__btn { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(15, 43, 35, .85); border: 1px solid var(--line-d); border-radius: 50%; cursor: pointer; }
.lb__btn:hover { border-color: var(--brass); }
.lb__close { top: 12px; right: 12px; }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; } .lb__prev { left: auto; right: 68px; } .lb__next { right: 12px; } .lb__bar { padding-right: 124px; min-height: 48px; align-items: center; } }
