/* ==========================================================================
   INSAME — inner pages
   Work index, service pages, about, contact, project enquiry.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */

.phead { padding-top: calc(var(--nav-h) + clamp(3.5rem, 11vh, 8rem)); }
.phead__top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.phead__top .rule-fill { flex: 1; height: 1px; background: var(--rule); }
.phead h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-mega);
  line-height: .94;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.phead h1 em { font-style: italic; color: var(--bronze); }
.phead .lead { margin-top: clamp(1.5rem, 3vh, 2.25rem); }

/* --------------------------------------------------------------------------
   WORK — filterable index

   Deliberately not a six-up grid of equal cards. Tiles vary in span so the
   page reads as a considered layout; the filter reflows them without a
   library by toggling a class.
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.filter {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  padding: .55rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color .4s var(--e-out), border-color .4s var(--e-out), background-color .4s var(--e-out);
}
.filter:hover { color: var(--ink); border-color: var(--stone); }
.filter.is-on { color: var(--ivory); background: var(--near-black); border-color: var(--near-black); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
}

.tile { position: relative; grid-column: span 4; }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }

/* Filtering: hidden tiles collapse out of the grid entirely rather than
   fading in place, so the composition re-forms instead of leaving holes. */
.tile.is-out { display: none; }

.tile__plate { overflow: hidden; background: var(--limestone); }
.tile__plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--e-out);
}
.tile:hover .tile__plate img { transform: scale(1.045); }

.tile__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--rule);
}
.tile__name { font-size: var(--t-sm); font-weight: 500; }
.tile__meta { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }

.work-note {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .tile, .tile--wide, .tile--half { grid-column: span 6; }
}
@media (max-width: 560px) {
  .tile, .tile--wide, .tile--half { grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   SERVICES — long-form blocks
   -------------------------------------------------------------------------- */

.sblock {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 9vh, 6.5rem);
  border-bottom: 1px solid var(--rule);
}
.sblock__media { grid-column: 1 / 7; }
.sblock__body { grid-column: 8 / 13; }
.sblock:nth-of-type(even) .sblock__media { grid-column: 7 / 13; order: 2; }
.sblock:nth-of-type(even) .sblock__body { grid-column: 1 / 6; order: 1; }

.sblock__plate { overflow: hidden; background: var(--limestone); }
.sblock__plate img { width: 100%; height: 100%; object-fit: cover; }

.sblock h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: .75rem 0 1.25rem;
}
.sblock__list { margin: 1.75rem 0; }
.sblock__list li {
  display: flex;
  gap: .9rem;
  padding-block: .7rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-sm);
  color: var(--stone);
}
.sblock__list li::before { content: "—"; color: var(--bronze); flex: 0 0 auto; }
.sblock__from {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  padding-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .sblock { display: block; padding-block: clamp(2.5rem, 6vh, 4rem); }
  .sblock__media, .sblock__body,
  .sblock:nth-of-type(even) .sblock__media, .sblock:nth-of-type(even) .sblock__body { grid-column: auto; }
  .sblock__body { margin-top: 1.75rem; }
}

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }

.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.creds li {
  padding: clamp(1.5rem, 4vh, 2.25rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 4vh, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}
.creds li:nth-child(odd) { border-right: 1px solid var(--rule); }
.creds li:nth-child(even) { padding-left: clamp(1rem, 2.5vw, 2rem); }
.creds strong { display: block; font-weight: 500; margin-bottom: .5rem; }
.creds p { color: var(--stone); font-size: var(--t-sm); }
@media (max-width: 640px) {
  .creds { grid-template-columns: 1fr; }
  .creds li:nth-child(odd) { border-right: 0; }
  .creds li:nth-child(even) { padding-left: 0; }
}

.awards { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.awards img { height: clamp(46px, 6vw, 64px); width: auto; opacity: .5; filter: grayscale(1); transition: opacity .4s var(--e-out), filter .4s var(--e-out); }
.awards img:hover { opacity: 1; filter: none; }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.contact-detail { border-top: 1px solid var(--rule); }
.contact-detail li { padding-block: 1.35rem; border-bottom: 1px solid var(--rule); }
.contact-detail .k {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .45rem;
}
.contact-detail .v { font-size: var(--t-md); }
.contact-detail a:hover { color: var(--bronze); }

/* --------------------------------------------------------------------------
   ENQUIRY — multi-step project brief

   Same five-step model, validation and submission path as the previous site;
   only the surface changed. Progress is a hairline, not a candy bar.
   -------------------------------------------------------------------------- */

.enq { max-width: 820px; }
.enq__bar { height: 1px; background: var(--rule); margin-block: 1.5rem .75rem; }
.enq__fill { height: 1px; background: var(--bronze); width: 20%; transition: width .7s var(--e-io); }
.enq__count { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }

.enq__step { display: none; padding-top: clamp(2rem, 5vh, 3rem); }
.enq__step.is-on { display: block; animation: stepIn .6s var(--e-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enq__step.is-on { animation: none; } }

.enq__step h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.enq__step > p { color: var(--stone); margin-bottom: 2.25rem; }

.enq__field { margin-bottom: clamp(1.75rem, 4vh, 2.5rem); }
.enq__field > label,
.enq__legend {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .9rem;
}

/* Selectable options — pills, not radio cards in a grid of boxes. */
.opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt {
  padding: .75rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--stone);
  transition: color .35s var(--e-out), border-color .35s var(--e-out), background-color .35s var(--e-out);
}
.opt:hover { color: var(--ink); border-color: var(--stone); }
.opt.is-sel { background: var(--near-black); border-color: var(--near-black); color: var(--ivory); }

.enq__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 620px) { .enq__row { grid-template-columns: 1fr; } }

.enq__nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.enq__nav button[disabled] { opacity: .35; pointer-events: none; }

/* Review */
.review__group {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.review__group h3 {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: .6rem;
}
.review__items { font-size: var(--t-sm); line-height: 1.85; }
.review__edit { font-size: var(--t-sm); color: var(--bronze); border-bottom: 1px solid currentColor; align-self: flex-start; }

/* --------------------------------------------------------------------------
   INSAMEVISION page — extra blocks beyond the shared vision.css
   -------------------------------------------------------------------------- */

.iv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
.iv-cols h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  margin-bottom: .85rem;
}
.iv-cols .numeral { display: block; margin-bottom: 1.1rem; }
.iv-cols p { color: var(--stone-dim); font-size: var(--t-sm); }
@media (max-width: 780px) { .iv-cols { grid-template-columns: 1fr; } }

.iv-faq { border-top: 1px solid var(--rule); }
.iv-faq details { border-bottom: 1px solid var(--rule); }
.iv-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.iv-faq summary::-webkit-details-marker { display: none; }
.iv-faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--bronze);
  transition: transform .4s var(--e-out);
  flex: 0 0 auto;
}
.iv-faq details[open] summary::after { transform: rotate(45deg); }
.iv-faq details p { padding-bottom: 1.75rem; color: var(--stone); max-width: 62ch; }
