/* =============================================
   TB | Graphic | Design — Portfolio
   Palette: Ivory #F7F4EE · Ink #0E0E0E · 
            Stone #8A8378 · Gold #C9A96E · White #FAFAFA
   Type: Cormorant Garamond (display) · Jost (body)
   ============================================= */

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

:root {
  --ivory: #F7F4EE;
  --ivory-dark: #EDE9E0;
  --ink: #0E0E0E;
  --ink-soft: #1A1A1A;
  --stone: #8A8378;
  --stone-light: #B8B2A8;
  --gold: #C9A96E;
  --gold-light: #DFC08C;
  --white: #FAFAFA;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Jost', system-ui, sans-serif;

  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }
.section--dark {
  background: var(--ink-soft);
  color: var(--white);
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title--light { color: var(--white); }
.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stone-light);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--full { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 0 rgba(201,169,110,0.2);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.nav.scrolled .nav__logo-img {
  height: 60px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.75);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--gold-light) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  padding: 8rem 0 2rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201,169,110,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0E0E0E 0%, #1a1612 100%);
}

/* subtle geometric line decoration */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2rem 6rem;
}

.hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-family: var(--ff-body);
  font-weight: 400;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__title .line { display: block; }
.hero__title .serif-italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  font-size: 0.9em;
}

.hero__sub {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250,250,250,0.6);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(250,250,250,0.35);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__frame {
  width: 300px;
  height: 380px;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 32px 64px rgba(14,14,14,0.15);
}

.about__frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius);
  pointer-events: none;
}

.about__monogram-img {
  width: 120px;
  height: auto;
}

.about__tag {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  text-transform: uppercase;
}

.about__body {
  color: var(--stone);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about__pillars {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ivory-dark);
}

.pillar { display: flex; flex-direction: column; gap: 0.2rem; }
.pillar__num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.pillar__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── PORTFOLIO ── */
.portfolio { background: var(--ivory-dark); }

.portfolio__filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.5rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: var(--transition);
}
.filter:hover,
.filter.active {
  color: var(--ink);
  border-color: var(--ink);
}
.filter.active {
  background: var(--ink);
  color: var(--white);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pcard {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(14,14,14,0.12); }
.pcard.hidden { display: none; }

.pcard__img {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcard:hover .pcard__img img {
  transform: scale(1.06);
}

/* Portfolio card backgrounds — subtle brand-tinted backdrop behind the real logo image */
.pcard__img--1 {
  background: linear-gradient(135deg, #0E0E0E 0%, #1a1a1a 100%);
}

.pcard__img--2 {
  background: linear-gradient(135deg, #F0EBE3 0%, #E5DDD4 100%);
}

.pcard__img--3 {
  background: linear-gradient(135deg, #1C2340 0%, #2A3358 100%);
}

.pcard__img--4 {
  background: linear-gradient(135deg, #E8F0E0 0%, #D4E4C8 100%);
}

.pcard__img--5 {
  background: linear-gradient(135deg, #FAF8F5 0%, #F0ECE5 100%);
}

.pcard__img--6 {
  background: linear-gradient(135deg, #FFF0F3 0%, #FFD6DE 100%);
}

.pcard__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
  opacity: 0;
}
.pcard:hover .pcard__overlay {
  background: rgba(14,14,14,0.7);
  opacity: 1;
}

.pcard__cat {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.pcard__name {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}

.pcard__info {
  padding: 1.25rem 1.5rem;
}
.pcard__info h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.pcard__info p {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.5;
}

.portfolio__more {
  text-align: center;
  margin-top: 3.5rem;
}

/* ── SERVICES ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.scard {
  padding: 2.5rem 2rem;
  background: var(--ink-soft);
  transition: var(--transition);
  border: 1px solid transparent;
}
.scard:hover {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.2);
}

.scard__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.scard__title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.scard__body {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(250,250,250,0.5);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.scard__includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.scard__includes span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* ── WHY ── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.why-item {
  padding: 3rem;
  border-bottom: 1px solid var(--ivory-dark);
  border-right: 1px solid var(--ivory-dark);
  transition: var(--transition);
}
.why-item:nth-child(2n) { border-right: none; }
.why-item:nth-child(3),
.why-item:nth-child(4) { border-bottom: none; }
.why-item:hover { background: var(--white); }

.why-item__line {
  width: 2rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.why-item__title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.why-item__body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
}

.why__testimonial {
  margin-top: 5rem;
  padding: 3rem;
  background: var(--white);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(14,14,14,0.06);
}

.why__testimonial blockquote p {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}

.why__testimonial cite {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── CONTACT ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact__desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250,250,250,0.55);
  line-height: 1.8;
  margin: 1.5rem 0 2.5rem;
}

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(250,250,250,0.7);
  transition: color 0.25s;
}
.social-link:hover { color: var(--gold); }

/* Form */
.contact__form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.5);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250,250,250,0.2);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--ink-soft); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: none;
}
.form-success.visible { display: block; }

.form-error {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #E37B6B;
  letter-spacing: 0.05em;
  display: none;
}
.form-error.visible { display: block; }

/* ── FOOTER ── */
.footer {
  background: #080808;
  padding: 2rem 0;
  border-top: 1px solid rgba(201,169,110,0.15);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo-img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(250,250,250,0.3);
  letter-spacing: 0.05em;
}

.footer__ig {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.45);
  transition: color 0.25s;
}
.footer__ig:hover { color: var(--gold); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }

  /* Mobile Nav */
  .nav__logo-img { height: 56px; }
  .nav.scrolled .nav__logo-img { height: 46px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav__cta { padding: 0.75rem 1.8rem !important; }

  .hero__title { font-size: clamp(3rem, 14vw, 5.5rem); }
  .hero__btns { flex-direction: column; align-items: center; }
  .hero { padding: 6.5rem 0 1.5rem; }
  .hero__content { padding: 1.5rem 1.5rem 5rem; }
  .hero__scroll { bottom: 1.5rem; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; }
  .why-item:nth-child(3) { border-bottom: 1px solid var(--ivory-dark); }

  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer__inner { flex-direction: column; text-align: center; gap: 0.75rem; }

  .about__pillars { gap: 2rem; }
  .pcard__img { height: 200px; }

  .why-item { padding: 2rem; }
  .why__testimonial { padding: 2rem; }
  .contact__form { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .portfolio__filters { gap: 0.4rem; }
  .filter { font-size: 0.65rem; padding: 0.4rem 0.9rem; }
}
