/* Design language modeled on the Thick and Thin reference:
   flat colour fields, Futura-style caps, italic serif connectors. */

:root {
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --nav-logo: #FFD3B3;
  --nav-and: #F0EAD6;
  --nav-link: #F0EAD6;
}

html { -webkit-text-size-adjust: 100%; }
body[data-snap] { overflow-x: hidden; }
body[data-snap].snap-on { overflow: hidden; }
body[data-snap].snap-on::-webkit-scrollbar { display: none; }

h1, h2, h3, .caps { text-transform: uppercase; }

/* Italic serif connector ("and") */
.and {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Headline scale mirrors the reference ratios */
.h-primary   { font-size: clamp(2.4rem, 6.5vw, 4.15rem); line-height: 1.1; }
.h-secondary { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; }
.h-tertiary  { font-size: clamp(1.6rem, 4vw, 2.55rem); line-height: 1.2; }
.h-quaternary{ font-size: clamp(1.3rem, 3vw, 1.92rem); line-height: 1.2; }
.h-giant     { font-size: clamp(3.5rem, 10vw, 9.5rem); line-height: 0.95; }

/* Full-viewport story sections */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.panel-inner { width: 100%; max-width: 64rem; padding: 7rem 1.5rem 4rem; }
.split { display: grid; grid-template-columns: 1fr; }
.split > * { min-height: 60svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 2rem 3rem; }
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split > * { min-height: 100vh; padding: 6rem 3.5rem 3rem; }
}
.split .cover { padding: 0; }
.split .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split .cover { position: relative; }
.split .cover::after { content: ""; position: absolute; inset: 0 0 auto; height: 11rem; background: linear-gradient(rgba(3,3,3,.65), transparent); pointer-events: none; }
.split .cover { overflow: hidden; }
.split .cover img { transform: scale(1.12); transition: transform 1.8s var(--ease-expo); }
.split .cover.in img { transform: none; }

/* Highlighter block (box-decoration clone wraps across lines) */
.highlight {
  display: inline;
  background: #EBBA51;
  box-shadow: 15px 0 0 #EBBA51, -15px 0 0 #EBBA51;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 1.55;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 45;
  height: 3px;
  background: var(--nav-logo);
  transform: scaleX(0);
  transform-origin: left;
  transition: background-color 0.5s ease;
  pointer-events: none;
}

/* Nav — recoloured per section, tucks away on long pages while scrolling down */
.site-nav { pointer-events: none; transition: transform 0.6s var(--ease-expo); }
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav > * { pointer-events: auto; }
.brand { color: var(--nav-logo); transition: color 0.5s ease; }
.brand .and { color: var(--nav-and); transition: color 0.5s ease; }
.brand .and span { display: inline-block; }
.brand:hover .and span,
.brand:focus-visible .and span { animation: letter-wave 0.7s var(--ease-expo) calc(var(--i) * 55ms) both; }
@keyframes letter-wave {
  0%   { transform: none; }
  35%  { transform: translateY(-0.2em) rotate(-6deg); }
  100% { transform: none; }
}
.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-link);
  transition: color 0.5s ease, opacity 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-expo);
}
.nav-link:hover::after,
.nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }

/* Close icon */
.close-x { position: relative; width: 32px; height: 32px; }
.close-x::before, .close-x::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40px; height: 2px; background: #F0EAD6;
}
.close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-expo);
}
.mobile-menu.is-open { clip-path: inset(0); }

/* Masked line rise (used in panels and menus) */
.panel-line { overflow: hidden; }
.panel-line > span,
.panel-line > a > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease-expo); transition-delay: calc(var(--i, 0) * 45ms + 150ms); }
.is-open .panel-line > span,
.is-open .panel-line > a > span { transform: none; }

/* Page wipe */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #DE503B;
  pointer-events: none;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-wipe.is-covering { transform: none; }
.wipe-inner { display: flex; flex-direction: column; align-items: center; transition: opacity 0.35s ease, transform 0.6s var(--ease-expo); }
.page-wipe.is-leaving .wipe-inner { opacity: 0; transform: translateY(-40px); }
.wipe-logo { font-size: clamp(2.4rem, 7vw, 4.75rem); line-height: 1; text-transform: uppercase; white-space: nowrap; color: #FFD3B3; }
.wipe-logo .and { color: #F0EAD6; }
.wipe-logo span { display: inline-block; opacity: 0; transform: translateY(55%); animation: wipe-letter 0.7s var(--ease-expo) forwards; animation-delay: calc(var(--i) * 45ms); }
.wipe-bar { position: relative; width: 120px; height: 2px; margin-top: 1.5rem; overflow: hidden; background: rgba(255, 211, 179, 0.25); }
.wipe-bar::after { content: ""; position: absolute; inset: 0; background: #FFD3B3; transform: translateX(-100%); animation: wipe-bar 1.1s ease-in-out infinite; }
.page-wipe.is-quick .wipe-logo span { animation: none; opacity: 1; transform: none; }
@keyframes wipe-letter { to { opacity: 1; transform: none; } }
@keyframes wipe-bar { to { transform: translateX(100%); } }
.page-wipe.is-leaving { transform: translateY(-100%); transition: transform 0.9s var(--ease-expo); }
.page-wipe.is-entering { transform: none; transition: transform 0.7s var(--ease-expo); }

/* Scroll reveal: masked rise */
.reveal {
  clip-path: inset(0 0 100% 0);
  transform: translateY(45px);
  transition: clip-path 1.1s var(--ease-expo), transform 1.1s var(--ease-expo);
  transition-delay: var(--d, 0ms);
}
.reveal.in { clip-path: inset(-10% -10% -10% -10%); transform: none; }

/* Scroll-down arrow */
.arrow-down {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  width: 28px;
  height: 56px;
  transform: translateX(-50%);
  animation: arrow-bob 2.2s ease-in-out infinite;
}
.arrow-down span { position: absolute; background: #EBBA51; }
.arrow-down .stem { left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%); }
.arrow-down .l, .arrow-down .r { bottom: 3px; width: 3px; height: 20px; left: 50%; transform-origin: bottom center; }
.arrow-down .l { transform: translateX(-50%) rotate(40deg); }
.arrow-down .r { transform: translateX(-50%) rotate(-40deg); }
@keyframes arrow-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Final link columns */
.col-link { transition: background-color 0.5s ease, color 0.5s ease; }
.col-link:hover { background-color: #26252A; color: #F0EAD6; }
.col-link > span::after {
  content: "→";
  display: block;
  margin-top: 0.75rem;
  font-size: 1.4em;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-expo);
}
.col-link:hover > span::after { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #26252A;
  color: #F0EAD6;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.btn:hover { background: #DE503B; color: #F0EAD6; }
.btn::after { content: "→"; transition: transform 0.5s var(--ease-expo); }
.btn:hover::after { transform: translateX(5px); }

/* Project cards: tilted frames straighten and lift on hover */
.work-frame {
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.9s var(--ease-expo), box-shadow 0.9s var(--ease-expo);
}
.work-card:hover .work-frame { transform: rotate(0deg) translateY(-8px); box-shadow: 0 30px 60px rgba(3, 3, 3, 0.24); }

/* Client logos: muted until hovered */
.logo-tile img { filter: grayscale(1); opacity: 0.7; transition: filter 0.5s ease, opacity 0.5s ease; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* FAQ accordion */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 3px; background: #DE503B; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease-expo); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover span:first-child { color: #DE503B; }

/* Dash-marked lists */
.tick-list li { position: relative; padding-left: 2rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 1.1rem; height: 2px; background: currentColor; opacity: 0.5; }
.work-card .work-label { transition: background-color 0.5s ease, color 0.5s ease; }
.work-card:hover .work-label { background: #DE503B; color: #F0EAD6; }

/* Contact form */
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 3px solid #26252A;
  padding: 1.6rem 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #26252A;
  outline: none;
  border-radius: 0;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field label {
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: rgba(38, 37, 42, 0.45);
  pointer-events: none;
  transition: all 0.35s var(--ease-expo);
}
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #DE503B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-expo);
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #DE503B;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(3, 3, 3, 0.25);
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(3, 3, 3, 0.3); }
.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 0.75rem);
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  background: #26252A;
  color: #F0EAD6;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-expo);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label { opacity: 1; transform: none; }
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 767px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

@media (max-width: 767px) {
  .work-frame { transform: rotate(calc(var(--rot) * 0.5)); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before, .wipe-bar::after { animation: none; }
  .wipe-logo span { animation: none; opacity: 1; transform: none; }
  .reveal, .panel-line > span, .panel-line > a > span { transition: none !important; clip-path: none !important; transform: none !important; opacity: 1 !important; }
  .arrow-down, .brand .and span { animation: none !important; }
  .split .cover img, .work-frame { transition: none !important; transform: none !important; }
}
