/* ============================================
   RIZAL SPACE DESIGN — Stylesheet
   Palette: off-black + warm ivory + gold accent + soft slate
   Type: Playfair Display (display/serif) / Manrope (body) / DM Mono (labels)
   ============================================ */

:root {
  --black:      #0E0E0E;
  --black-soft: #1A1A1A;
  --ivory:      #F7F4EE;
  --ivory-deep: #EDE9E0;
  --gold:       #C8A96E;
  --gold-pale:  #F0E8D8;
  --slate:      #6B7583;
  --line-dark:  rgba(255, 255, 255, 0.10);
  --line-light: rgba(14, 14, 14, 0.10);

  --font-display: "Playfair Display", serif;
  --font-body:    "Manrope", sans-serif;
  --font-mono:    "DM Mono", monospace;

  --container:  1220px;
  --r-sm:       6px;
  --r-md:       14px;
  --r-lg:       24px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #E8C98A 50%, var(--gold) 100%);
}

/* ============================================
   TYPE HELPERS
   ============================================ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.16;
  color: var(--black);
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 16px;
  color: var(--slate);
  font-size: 1.02rem;
  font-weight: 400;
}

.section { padding: 104px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.section-lead {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 460px;
  padding-bottom: 6px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 10px 26px -14px rgba(200, 169, 110, 0.65);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--gold);
  box-shadow: 0 16px 30px -16px rgba(14, 14, 14, 0.55);
  transform: translateY(-2px);
}

.btn-outline-header {
  background: transparent;
  border-color: var(--black-soft);
  color: var(--black);
  padding: 11px 20px;
  font-size: 0.9rem;
}

.btn-outline-header:hover {
  background: var(--black);
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--black);
  padding: 15px 0;
  font-weight: 500;
  gap: 0;
}

.btn-text:hover { color: var(--gold); }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--black);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin-left: 2px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--black);
}

.logo-light { color: var(--ivory); }
.logo-light span { color: var(--gold); }
.logo-light .logo-icon svg { fill: var(--ivory); }

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 0.94rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--black-soft);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0%;
  background: var(--gold);
  transition: width 0.22s ease;
}

.main-nav a:hover { color: var(--black); }
.main-nav a:hover::after { width: 100%; }

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(14, 14, 14, 0.04) 0px 10px,
      rgba(14, 14, 14, 0.01) 10px 20px
    ),
    var(--ivory-deep);
  border: 1.5px dashed rgba(107, 117, 131, 0.5);
  border-radius: var(--r-md);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding-top: 72px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-left h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 26px;
}

.hero-left h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-desc {
  max-width: 430px;
  color: var(--slate);
  font-size: 1.06rem;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* HERO RIGHT */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
}

.hero-badge {
  position: absolute;
  right: -28px;
  top: 40px;
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 210px;
  box-shadow: 0 20px 44px -24px rgba(14, 14, 14, 0.7);
}

.badge-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--gold);
}

.hero-badge span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.hero-aside {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--black);
  border-radius: var(--r-md);
  overflow: hidden;
}

.aside-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(247, 244, 238, 0.7);
}

.aside-divider {
  width: 1px;
  height: 40px;
  background: rgba(247, 244, 238, 0.12);
}

/* TICKER */

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--black);
  padding: 18px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 238, 0.78);
}

.ticker-dot {
  color: var(--gold) !important;
  font-size: 1.1rem !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SERVICES
   ============================================ */

.services { background: var(--ivory); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service-card {
  position: relative;
  background: var(--ivory);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.22s;
}

.service-card:hover { background: var(--gold-pale); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.28;
}

.service-card p {
  color: var(--slate);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio { background: var(--black); }

.portfolio .section-title { color: var(--ivory); }
.portfolio .eyebrow { color: var(--gold); }
.portfolio .section-lead { color: rgba(247, 244, 238, 0.65); }
.portfolio .eyebrow-line { background: var(--gold); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.p-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }

.p-tall  { grid-row: span 2; }
.p-wide  { grid-column: span 2; }

/* ============================================
   PROCESS
   ============================================ */

.process { background: var(--ivory-deep); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-top: 1px solid var(--line-light);
}

.process-step:last-child { border-bottom: 1px solid var(--line-light); }

.ps-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 8px;
}

.ps-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}

.ps-line {
  flex: 1;
  width: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.ps-content { display: flex; flex-direction: column; gap: 14px; }

.ps-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--black);
}

.ps-content p {
  max-width: 540px;
  color: var(--slate);
  font-size: 1rem;
}

.ps-img {
  height: 180px;
  width: 100%;
  max-width: 460px;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* ============================================
   STUDIO
   ============================================ */

.studio { background: var(--ivory); }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.studio-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.studio-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
}

.studio-accent-img {
  position: absolute;
  right: -32px;
  bottom: 40px;
  width: 180px;
  height: 180px;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px -24px rgba(14, 14, 14, 0.45);
  object-fit: cover;
}

.studio-text {
  color: var(--slate);
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 40px;
  max-width: 480px;
}

.studio-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.sv-item { border-top: 1px solid var(--line-light); padding-top: 16px; }

.sv-item dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 6px;
}

.sv-item dd {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */

.contact { background: var(--black); }

.contact .section-title { color: var(--ivory); }
.contact .eyebrow { color: var(--gold); }
.contact .eyebrow-line { background: var(--gold); }
.contact .section-sub { color: rgba(247, 244, 238, 0.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
}

.contact-details {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}

.cd-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.cd-value {
  font-size: 0.96rem;
  color: rgba(247, 244, 238, 0.85);
  font-weight: 500;
  line-height: 1.6;
}

.cd-value a:hover { color: var(--gold); }

.contact-form {
  background: rgba(247, 244, 238, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(247, 244, 238, 0.06);
  color: var(--ivory);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(247, 244, 238, 0.3); }

.form-row select option { background: var(--black-soft); color: var(--ivory); }

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer { background: var(--black-soft); color: var(--ivory); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 36px 56px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.94rem;
  color: rgba(247, 244, 238, 0.55);
  max-width: 230px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.footer-col p {
  font-size: 0.92rem;
  color: rgba(247, 244, 238, 0.72);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 36px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(247, 244, 238, 0.4);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .section-head  { grid-template-columns: 1fr; gap: 20px; }
  .hero-badge    { right: 0; }
  .studio-accent-img { right: 0; }
}

@media (max-width: 980px) {
  .main-nav          { display: none; }
  .hero-layout       { grid-template-columns: 1fr; }
  .hero-right        { order: -1; }
  .hero-badge        { display: none; }
  .service-grid      { grid-template-columns: 1fr 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .p-tall            { grid-row: span 1; }
  .p-wide            { grid-column: span 2; }
  .studio-grid       { grid-template-columns: 1fr; }
  .studio-accent-img { display: none; }
  .contact-grid      { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .process-step      { grid-template-columns: 70px 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container     { padding: 0 20px; }
  .section       { padding: 72px 0; }
  .header-inner  { height: 76px; }
  .service-grid  { grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .p-wide        { grid-column: span 1; }
  .hero-aside    { flex-direction: column; gap: 0; }
  .aside-divider { width: 100%; height: 1px; }
  .studio-values { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
  .process-step  { grid-template-columns: 1fr; gap: 16px; }
  .ps-left       { flex-direction: row; align-items: center; }
  .ps-line       { display: none; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .ticker-track  { animation: none; }
  *              { transition: none !important; }
}
