/* Image Touch — static site
   Fonts: Fraunces (display), Inter (text) */

:root {
  --bg: #0f1113;
  --bg-alt: #16191c;
  --surface: #1b1f23;
  --ink: #f4f2ee;
  --ink-soft: #a7aeb4;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e2703a;
  --accent-dark: #c85e2c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 19, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#nav.scrolled {
  background: rgba(15, 17, 19, 0.9);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s var(--ease);
}
#nav.scrolled .nav-inner { height: 64px; }
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
#nav nav { display: flex; gap: 34px; align-items: center; }
#nav nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
#nav nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  color: var(--ink) !important;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenburns 24s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 19, 0.2) 0%, rgba(15, 17, 19, 0.55) 55%, rgba(15, 17, 19, 0.95) 100%);
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 88px;
  max-width: 820px;
}
.hero-text > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-text .eyebrow { animation-delay: 0.15s; }
.hero-text h1 { animation-delay: 0.3s; }
.hero-text .lede { animation-delay: 0.45s; }
.hero-text .hero-actions { animation-delay: 0.6s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-text h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin-bottom: 20px;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  opacity: 0.92;
  max-width: 640px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(226, 112, 58, 0.35);
}
.btn.ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; box-shadow: none; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  max-width: 640px;
  margin-bottom: 48px;
}
.note {
  margin-top: 44px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 640px;
}

/* ---------- Services grid ---------- */
.grid.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.grid.services article {
  flex: 0 1 calc((100% - 32px) / 3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.grid.services article:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 112, 58, 0.5);
  background: #1f2428;
}
.grid.services h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.grid.services p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -24px 0 36px;
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filters button:hover { border-color: var(--ink-soft); color: var(--ink); }
.filters button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  background: var(--surface);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery figure.in { opacity: 1; transform: none; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-img img { border-radius: 16px; box-shadow: var(--shadow); }
.about-text h2 { margin-bottom: 24px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact h2 { margin-bottom: 20px; }
.contact > div > p { color: var(--ink-soft); }
.contact-list { list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-list a { font-weight: 500; color: var(--accent); }
.contact-list a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: #0b0c0e;
  color: var(--ink-soft);
  padding: 34px 0;
  font-size: 0.88rem;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--ink); }
footer a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.services article { flex-basis: calc((100% - 16px) / 2); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 76px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  #nav nav { display: none; }
  #nav nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  #nav nav.open a { padding: 12px 0; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
  .grid.services article { flex-basis: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
  .foot-inner { flex-direction: column; text-align: center; }
}
