:root {
  --black: #141414;
  --intro-black: #0D0D0D;
  --paper: #F2EDE4;
  --accent: #E4572E;
  --accent-hover: #F2803D;
  --grey: #6E6E6E;
  --grey-dark: #5A5A5A;
  --border-light: #D9CFC0;
  --menu-text: #D8D2C6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
}

a { color: inherit; text-decoration: none; }
a.accent-link:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--paper); }

/* ============ INTRO ============ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--intro-black);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  padding: 0 28px;
  text-align: center;
}
.intro-overlay.is-hidden { display: none; }

.intro-word-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 42px;
}
.intro-word { color: var(--paper); }
.intro-rest-wrap { animation: introFadeIn 1.2s ease-in-out both; }
.intro-rest { color: var(--paper); font-style: italic; font-weight: 500; }
.intro-pt {
  animation: introFadeIn 1.2s ease-in-out both;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-top: 12px;
  text-transform: uppercase;
}

.intro-final { position: relative; }
.intro-final-word {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--paper);
  display: inline-block;
  opacity: 0;
  animation: introFadeIn 1.4s ease-in-out both;
}
.intro-final-dot {
  color: var(--accent);
  display: inline-block;
  opacity: 0;
  animation: introDotFadeIn 0.53s ease 1.4s both;
}
.intro-tagline {
  font-size: 13px;
  color: var(--grey);
  margin-top: 20px;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: introFadeIn 1.2s ease-in-out 2s both;
}
.intro-btn {
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 12px 24px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 28px;
  opacity: 0;
  animation: introFadeIn 1.2s ease-in-out 3s both;
}
.intro-btn:hover { background: var(--paper); color: var(--black); }
.intro-restart {
  cursor: pointer;
  position: absolute;
  right: 6px;
  bottom: -42px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--grey-dark);
  text-transform: uppercase;
  opacity: 0;
  animation: introFadeIn 1.2s ease-in-out 3s both;
}

@media (min-width: 768px) {
  .intro-overlay { padding: 0; }
  .intro-word-row { font-size: 76px; }
  .intro-pt { font-size: 12px; }
  .intro-final-word { font-size: 76px; }
  .intro-tagline { font-size: 16px; margin-top: 26px; white-space: nowrap; max-width: none; }
  .intro-btn { font-size: 11px; padding: 13px 34px; margin-top: 34px; }
  .intro-restart { right: -40px; bottom: -32px; font-size: 11px; }
}

@keyframes introFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introDotFadeIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes heroSymbolOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.85); } }
@keyframes heroSymbolIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes heroDotIn { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

/* ============ LAYOUT ============ */
.page {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--black);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 5;
  gap: 20px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}
.accent { color: var(--accent); }
.nav-links {
  display: none;
  gap: 44px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--menu-text);
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--menu-text);
  border: 1px solid #3A3A3A;
  padding: 9px 18px;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--accent); color: var(--paper); }

@media (min-width: 900px) {
  .nav { padding: 36px 72px; }
  .logo { font-size: 28px; }
  .nav-links { display: flex; }
  .nav-cta { font-size: 13px; padding: 10px 22px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 640px;
  height: 92vh;
  max-height: 900px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.35), rgba(20,20,20,0.78) 72%, #141414 100%),
    url("img/hero.jpg") center 28% / cover no-repeat,
    #1a1a1a;
}
.hero-symbol {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 96px;
  height: 96px;
  display: none;
}
.hero-symbol-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242,237,228,0.35);
  animation: heroSymbolOut 0.9s ease 0.6s both;
}
.hero-symbol-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  animation: heroSymbolIn 1s ease 1.2s both;
}
.hero-symbol-dot { opacity: 0; animation: heroDotIn 0.7s ease 2.1s both; }

@media (min-width: 700px) {
  .hero-symbol { display: block; }
}
@media (min-width: 1100px) {
  .hero-symbol { right: 150px; top: 150px; width: 220px; height: 220px; }
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 72px) 56px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 96px);
  line-height: 1.08;
  max-width: 1100px;
  margin: 0;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  align-items: center;
}
.btn-solid {
  background: var(--accent);
  color: var(--black);
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: inline-block;
}
.btn-solid:hover { background: var(--accent-hover); }
.link-underline {
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

@media (min-width: 900px) {
  .hero-content { padding: 0 72px 90px; }
  .hero-eyebrow { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { margin-top: 44px; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid #2A2A2A;
  border-bottom: 1px solid #2A2A2A;
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--grey);
  padding: 0 20px;
}
.marquee-track .dot { color: #3A3A3A; }

@media (min-width: 900px) {
  .marquee { padding: 22px 0; }
  .marquee-track { gap: 60px; font-size: 22px; white-space: nowrap; flex-wrap: nowrap; }
}

/* ============ ABOUT ============ */
.about {
  padding: 72px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.about.is-visible { opacity: 1; transform: translateY(0); }
.symbol-svg { width: 90px; height: 90px; }
.about-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 20px;
}
.about-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
}
.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: #B8B0A2;
  margin-top: 24px;
  max-width: 640px;
}
.about-text strong { color: var(--paper); }

@media (min-width: 900px) {
  .about { padding: 150px 72px; grid-template-columns: 0.9fr 1.1fr; gap: 100px; }
}

/* ============ WORK ============ */
.work {
  padding: 0 clamp(20px, 5vw, 72px) 90px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.work.is-visible { opacity: 1; transform: translateY(0); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
}
.see-all {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-transform: uppercase;
  white-space: nowrap;
}
.see-all:hover { color: var(--paper); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.work-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-card {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.work-card--main { height: 360px; }
.placeholder-1 { background: linear-gradient(to top, rgba(20,20,20,0.85), rgba(20,20,20,0) 55%), url("img/allos.jpg") center / cover no-repeat, #1a1a1a; }
.placeholder-2 { background: linear-gradient(to top, rgba(20,20,20,0.85), rgba(20,20,20,0) 55%), url("img/jantar.jpg") center 20% / cover no-repeat, #1a1a1a; }
.placeholder-3 { background: linear-gradient(to top, rgba(20,20,20,0.85), rgba(20,20,20,0) 55%), url("img/fgv.jpg") center 22% / cover no-repeat, #1a1a1a; }
.work-card-info { position: absolute; left: 24px; bottom: 24px; }
.work-card-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
}
.work-card-title--sm { font-size: 18px; }
.work-card-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 6px;
}

@media (min-width: 900px) {
  .work { padding: 0 72px 150px; }
  .section-head { margin-bottom: 50px; }
  .work-grid { grid-template-columns: 1.4fr 1fr; gap: 20px; }
  .work-card-stack { gap: 20px; }
  .work-card { height: 270px; }
  .work-card--main { height: 560px; }
  .work-card-info { left: 36px; bottom: 36px; }
  .work-card-title { font-size: 28px; }
  .work-card-title--sm { font-size: 20px; }
}

/* ============ PORTFOLIO ============ */
.portfolio { padding: 72px clamp(20px,5vw,72px) 40px; }
.portfolio .section-head { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.portfolio .section-head.is-visible { opacity: 1; transform: none; }
.portfolio .section-head .see-all { color: var(--grey); }
.pf-group { margin-bottom: 60px; opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.pf-group.is-visible { opacity: 1; transform: none; }
.pf-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #2A2A2A; }
.pf-head h3 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(20px,3vw,30px); margin: 0; }
.pf-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.pf-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pf-item { display: block; aspect-ratio: 4/5; overflow: hidden; background: #1a1a1a; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s ease; }
.pf-item:hover img { transform: scale(1.04); opacity: .9; }
@media (min-width: 700px) { .pf-grid { grid-template-columns: repeat(4,1fr); gap: 12px; } }
@media (min-width: 900px) { .portfolio { padding: 120px 72px 60px; } .pf-group { margin-bottom: 90px; } }

/* ============ SERVICES ============ */
.services {
  background: var(--paper);
  color: var(--black);
  padding: 72px clamp(20px, 5vw, 72px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.services.is-visible { opacity: 1; transform: translateY(0); }
.services h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
}
.service {
  background: var(--paper);
  padding: 32px 24px;
}
.service-icon { width: 40px; height: 40px; }
.service h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  margin: 20px 0 0;
}
.service p {
  font-size: 14px;
  color: var(--grey-dark);
  margin-top: 12px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .services { padding: 140px 72px; }
  .services h2 { margin-bottom: 70px; }
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service { padding: 44px 36px; }
  .service-icon { width: 44px; height: 44px; }
  .service h3 { font-size: 24px; margin-top: 24px; }
}

/* ============ CONTACT ============ */
.contact {
  padding: 96px clamp(20px, 5vw, 72px);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.contact.is-visible { opacity: 1; transform: translateY(0); }
.contact-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
}
.contact-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  margin: 20px auto 0;
  max-width: 1000px;
  line-height: 1.2;
}
.contact-title em { font-style: italic; color: var(--accent); }
.btn-contact { margin-top: 36px; }

@media (min-width: 900px) {
  .contact { padding: 160px 72px; }
  .contact-title { margin-top: 24px; }
  .btn-contact { margin-top: 44px; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid #2A2A2A;
  padding: 40px clamp(20px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer .logo { font-size: 20px; }
.footer-meta { font-size: 12px; color: var(--grey); margin-top: 10px; }
.footer-meta a:hover { color: var(--accent); }
.footer-legal {
  font-size: 11px;
  color: var(--grey-dark);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .footer {
    padding: 50px 72px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .footer-legal { text-align: right; }
}
