/* i4interiors — Design 1: editorial one-page scroll */

:root {
  --bone:  #f7f4f0;
  --paper: #ffffff;
  --ink:   #16140f;
  --muted: #7a7168;
  --line:  #e5ded5;
  --brass: #b08e6a;
  --maxw:  1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- shared type ---------- */
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .01em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.lede { color: var(--muted); font-size: 17px; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--ink);
  color: #f3efe9;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 11px 16px;
}
.topbar a { color: inherit; text-decoration: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,240,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: .16em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

.navtoggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--ink);
}
.navtoggle svg { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 100px 24px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,.5), rgba(10,9,7,.34) 45%, rgba(10,9,7,.62));
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 {
  font-size: clamp(42px, 8vw, 78px);
  margin: 0 0 18px;
  font-weight: 300;
}
.hero p {
  font-size: clamp(14px, 2.4vw, 17px);
  letter-spacing: .05em;
  margin: 0 auto 34px;
  max-width: 50ch;
  color: rgba(255,255,255,.88);
}

/* ---------- statement ---------- */
.statement { padding: clamp(64px, 11vw, 116px) 0; text-align: center; }
.statement blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(26px, 4.6vw, 44px);
}
.statement blockquote em { font-style: normal; color: var(--brass); }

/* ---------- about ---------- */
.about {
  background: var(--paper);
  padding: clamp(64px, 10vw, 110px) 0;
  border-block: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about__figure { position: relative; isolation: isolate; }
.about__figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about__figure::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 55%;
  height: 55%;
  border: 1px solid var(--brass);
  z-index: -1;
}
.about h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 22px; }
.about p { color: var(--muted); margin: 0 0 18px; }
.about p:last-of-type { margin-bottom: 30px; }

/* ---------- services ---------- */
.services { padding: clamp(64px, 10vw, 110px) 0; text-align: center; }
.services h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 8px; }
.services__lede { margin: 0 auto 54px; max-width: 52ch; }
.services .wrap { max-width: 1760px; padding-inline: 24px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}
.svc { background: var(--paper); border: 1px solid var(--line); }
.svc__shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.svc__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.svc__shot:hover img { transform: scale(1.04); }
.svc__body { padding: 22px 20px 26px; }
.svc h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.svc p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- work ---------- */
.work { padding: clamp(64px, 10vw, 110px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.work__head { text-align: center; margin-bottom: 48px; }
.work__head h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 8px; }
.work .wrap { max-width: 1760px; padding-inline: 24px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-grid figure { margin: 0; overflow: hidden; }
.work__shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.work-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.work-grid figure:hover img { transform: scale(1.05); }
.work__more { text-align: center; margin-top: 48px; }

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: #f1ece5;
  padding: clamp(64px, 10vw, 112px) 0;
  text-align: center;
}
.contact h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 18px; color: #fff; }
.contact p { color: rgba(241,236,229,.72); max-width: 48ch; margin: 0 auto 14px; }
.contact__lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 40px;
  margin: 34px 0 40px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact__lines a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; }

.footer {
  background: var(--ink);
  color: rgba(241,236,229,.5);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 26px 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: inherit; text-decoration: none; }

/* ---------- image lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  place-content: center;
  place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop {
  background: rgba(22, 20, 15, .88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox[open] .lightbox__figure { animation: card-in .28s ease both; }
.lightbox[open]::backdrop { animation: fade-in .28s ease both; }
.lightbox__figure {
  margin: 0;
  cursor: zoom-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
}
.lightbox__figure img {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 118px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45);
  cursor: default;
}
.lightbox__figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(241, 236, 229, .72);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(241, 236, 229, .28);
  background: rgba(22, 20, 15, .5);
  color: #f1ece5;
  cursor: pointer;
}
.lightbox__close:hover { border-color: #f1ece5; }

/* ---------- contact card (modal) ---------- */
.card {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(22, 20, 15, .3);
}
.card::backdrop {
  background: rgba(22, 20, 15, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.card[open] { animation: card-in .28s ease both; }
.card[open]::backdrop { animation: fade-in .28s ease both; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .card[open], .card[open]::backdrop { animation: none; }
  .lightbox[open] .lightbox__figure, .lightbox[open]::backdrop { animation: none; }
}

.card__inner { position: relative; padding: 42px 38px 34px; }
.card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}
.card__close:hover { color: var(--ink); }

.card h2 { font-size: clamp(26px, 5vw, 32px); margin: 0 0 10px; }
.card > .card__inner > p { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.card__rows { border-top: 1px solid var(--line); margin: 0 0 6px; }
.card__row {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.card__label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  flex: 0 0 100%;
  margin-bottom: 4px;
}
.card__value { font-size: 15px; word-break: break-word; }
.card__row a.card__value { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.card__row a.card__value:hover { border-color: var(--brass); }

.card__copy {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.card__copy:hover { border-color: var(--ink); color: var(--ink); }
.card__copy.is-done { border-color: var(--brass); color: var(--brass); }

@media (max-width: 480px) {
  .card__inner { padding: 36px 24px 26px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .svc-grid, .work-grid { grid-template-columns: 1fr; }
  .svc__shot img, .work-grid img { aspect-ratio: 4/3; }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }

  .navtoggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .work-grid { gap: 8px; }
  .contact__lines { flex-direction: column; gap: 14px; }
}
