/* IVOR India — radiograph / light-box theme */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --film: #000000;      /* page */
  --white: #ffffff;     /* exposed */
  --box: #eef1f3;       /* light-box glow */
  --silver: #9a9a9a;    /* secondary text */
  --graphite: #2e2e2e;  /* rules, fields */
  --body: #cfcfcf;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--film);
  color: var(--body);
  font: 400 1.0625rem/1.65 "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--white); color: var(--film); padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.bar.is-solid { background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); padding-block: .7rem; }
.bar__logo img { width: clamp(118px, 13vw, 168px); height: auto; }
.bar__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: .95rem; letter-spacing: .02em; }
.bar__nav a { color: var(--white); text-decoration: none; }
.bar__nav a:hover { text-decoration: underline; }
.bar__call { border: 1px solid rgba(255,255,255,.5); padding: .45rem .9rem; border-radius: 2rem; }
.bar__call:hover { background: var(--white); color: var(--film) !important; text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-content: end;
  color: var(--white);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) contrast(1.05);
}
.hero::after { /* legibility fade at the bottom */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
/* scanner beam sweeping down the film */
.hero__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, rgba(238,241,243,0) 46%, rgba(238,241,243,.16) 49.6%, rgba(255,255,255,.55) 50%, rgba(238,241,243,.16) 50.4%, rgba(238,241,243,0) 54%, transparent 100%);
  background-size: 100% 220%;
  animation: scan 3.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 0%; } }

.hero__copy {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(1.5rem, 3vw, 2.25rem);
  max-width: 62rem;
}
.hero__title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--white);
  text-wrap: balance;
}
.hero__sub {
  margin: 1.1rem 0 0; max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: #dcdcdc;
}
.hero__title, .hero__sub { transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease); }
.hero.is-swapping .hero__title,
.hero.is-swapping .hero__sub { opacity: 0; transform: translateY(.35em); filter: blur(4px); }

.hero__controls {
  position: relative; z-index: 2;
  display: flex; align-items: end; gap: 1.5rem;
  padding: 0 var(--pad) clamp(1.5rem, 3vw, 2.5rem);
}
.reel { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; flex: 1; }
.reel li { flex: 1; min-width: 0; }
.reel button {
  all: unset; cursor: pointer; display: block; width: 100%;
  font-size: .8125rem; color: var(--silver); letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel button[aria-current="true"] { color: var(--white); }
.reel button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.reel__bar { display: block; height: 2px; background: rgba(255,255,255,.22); margin-bottom: .55rem; overflow: hidden; }
.reel__bar i { display: block; height: 100%; width: 0; background: var(--white); }
.pause {
  all: unset; cursor: pointer; font-size: .8125rem; color: var(--white);
  border: 1px solid rgba(255,255,255,.4); border-radius: 2rem; padding: .35rem .85rem;
}
.pause:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Light box ---------- */
.lightbox {
  background: var(--box); color: var(--film);
  padding-block: clamp(4.5rem, 11vw, 9rem);
  box-shadow: inset 0 0 160px rgba(255,255,255,.9);
}
.lightbox__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--pad); }
.lightbox__logo { grid-column: 1 / span 6; width: 100%; max-width: 560px; height: auto; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.lightbox__lead {
  grid-column: 1 / span 9; margin: 0;
  font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.14; letter-spacing: -.01em;
  text-wrap: balance;
}
.lightbox__body { grid-column: 6 / span 6; margin: clamp(2rem, 4vw, 3rem) 0 0; color: #333; max-width: 38rem; }

/* ---------- Services ---------- */
.work { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2rem, 5vw, 4rem); }
.work__h { margin: 0; font-weight: 300; font-size: clamp(2rem, 4vw, 3.25rem); color: var(--white); letter-spacing: -.01em; }
.work__hint { margin: .5rem 0 0; color: var(--silver); font-size: .9375rem; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

.svc {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--pad);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--graphite);
}
.work .wrap + .svc { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc__text { grid-column: 1 / span 5; max-width: 34rem; }
.svc__name {
  margin: 0 0 1.25rem; color: var(--white);
  font-weight: 250; font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -.02em;
}
.svc__text p { margin: 0; }
.svc__scope { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.svc__scope li { font-size: .875rem; color: var(--white); border: 1px solid #555; border-radius: 2rem; padding: .25rem .8rem; }
.svc__link { margin-top: 1.5rem !important; }
.svc__link a { color: var(--white); }

/* the film: radiograph by default, develops into a photograph */
.film {
  grid-column: 6 / span 7; margin: 0;
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #000; cursor: crosshair;
  outline: 1px solid #262626; outline-offset: 0;
}
.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.film__p { opacity: 0; }
.film:hover .film__p, .film:focus-visible .film__p, .film.is-dev .film__p { opacity: 1; }
.film:hover img, .film.is-dev img { transform: scale(1.025); }
.film:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(4.5rem, 10vw, 8rem); border-top: 1px solid var(--graphite); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--pad); }
.contact__grid > div { grid-column: 1 / span 6; }
.contact__h { margin: 0 0 2.5rem; color: var(--white); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.lines { margin: 0; display: grid; gap: 1.25rem; }
.lines div { display: grid; gap: .1rem; }
.lines dt { color: var(--silver); font-size: .875rem; }
.lines dd { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--white); }
.lines a { text-decoration: none; }
.lines a:hover { text-decoration: underline; }

.enquiry { grid-column: 8 / span 5; display: grid; gap: .35rem; align-self: end; }
.enquiry label { font-size: .875rem; color: var(--silver); margin-top: .9rem; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid #555; border-radius: 0;
  padding: .55rem 0; width: 100%;
}
.enquiry select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff'/%3E%3C/svg%3E") no-repeat right .2rem center; }
.enquiry select option { color: #000; }
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-bottom-color: var(--white); }
.enquiry ::placeholder { color: #6b6b6b; }
.enquiry__err { margin: .75rem 0 0; color: var(--white); font-size: .9375rem; }
.enquiry__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.enquiry button {
  font: inherit; font-size: .9375rem; cursor: pointer;
  background: var(--white); color: var(--film);
  border: 1px solid var(--white); border-radius: 2rem; padding: .7rem 1.4rem;
}
.enquiry button.ghost { background: transparent; color: var(--white); border-color: #666; }
.enquiry button:hover { background: var(--box); color: var(--film); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--graphite); padding-block: 2.5rem; color: var(--silver); font-size: .875rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.foot img { width: 220px; height: auto; opacity: .85; }
.foot p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lightbox__logo, .lightbox__lead, .lightbox__body,
  .svc__text, .film, .contact__grid > div, .enquiry { grid-column: 1 / -1; }
  .svc { gap: 2rem; }
  .film { order: -1; }
}
@media (max-width: 640px) {
  .bar__nav a:not(.bar__call) { display: none; }
  .bar__call { font-size: .8125rem; padding: .4rem .8rem; }
  .reel { gap: .4rem; }
  .reel button { font-size: 0; }               /* bars only on small screens */
  .reel__bar { margin-bottom: 0; }
  .hero__controls { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scan { animation: none; opacity: 0; }
  .film img, .hero__title, .hero__sub { transition: none; }
}
