/* =========================================================================
   HOME — page-specific styles
   ========================================================================= */

/* ---------- HERO ---------- */
.hero {
  padding-top: 96px;
  position: relative;
  z-index: 2;
}

.hero-top,
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.hero-meta,
.hero-meta-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-body {
  display: grid;
  grid-template-columns: 56px 1fr 280px;
  gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: clamp(40px, 8vh, 80px);
  align-items: stretch;
}

.hero-rail {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
}

.hero-rail .vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--ink-3);
}

.hero-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-right: 16px;
}

.hero-title h1 {
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-align: left;
  margin: -10px 0 0;
}

.hero-title h1 .line-reveal {
  display: block;
}

.hero-title h1 .display-italic {
  font-size: 1.04em;
  margin-left: -0.05em;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 22ch;
  margin-top: 8px;
}

.hero-tagline em {
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 18px;
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(201, 162, 103, 0.32), transparent 55%),
    linear-gradient(155deg, var(--paper-2) 0%, var(--paper-3) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.portrait-mono {
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 96px);
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.portrait-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(184, 144, 96, 0.25), transparent 50%);
  z-index: 1;
}

.portrait-cap {
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
}

/* Hero foot strip */
.hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.foot-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-cell .label {
  font-size: 10px;
}

.foot-cell .foot-val {
  font-size: 17px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero-body {
    grid-template-columns: 1fr;
  }
  .hero-rail {
    display: none;
  }
  .hero-side {
    max-width: 320px;
  }
  .hero-foot {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.about-lead h2 {
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1.05;
}

.about-body p + p {
  margin-top: 16px;
}

.about-skills {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-skills h5 {
  margin-bottom: 18px;
}

.about-skills ul {
  list-style: none;
}

.about-skills li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  position: relative;
  padding-left: 28px;
}

.about-skills li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.about-card-inner {
  background: rgba(255, 255, 255, 0.4);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-quote {
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  margin-top: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: clamp(32px, 3vw, 48px);
  color: var(--ink);
  line-height: 1;
}

.stat-num sup {
  font-size: 0.5em;
  color: var(--gold-deep);
}

.stat-num .ital {
  font-size: 0.5em;
  margin-left: 4px;
}

.about-stats .label {
  font-size: 9px;
}

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SERVICES ---------- */
.section-services {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 44px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.5s, transform 0.5s;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.service-card .numeral {
  font-size: 13px;
}

.service-card h3 {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.1;
  margin-top: 4px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.service-list li {
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-size: 18px;
  top: -4px;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  width: 100%;
}

.service-link .arr {
  flex: 0 0 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
  width: 18px;
}

.service-link .arr::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

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

.service-card:hover h3,
.service-card:hover .service-link {
  color: var(--paper);
}

.service-card:hover p,
.service-card:hover .service-list,
.service-card:hover .service-list li,
.service-card:hover .numeral {
  color: rgba(241, 233, 215, 0.7);
}

.service-card:hover .service-link {
  border-top-color: rgba(241, 233, 215, 0.2);
}

.service-card:hover .service-link .arr {
  width: 32px;
  background: var(--gold-2);
}

.service-card:hover .service-link .arr::after {
  border-color: var(--gold-2);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s;
}

.service-card:hover::after {
  height: 100%;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PORTFOLIO PREVIEW ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px clamp(20px, 3vw, 48px);
}

.port-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.5s;
}

.port-card.port-large {
  grid-column: span 4;
}
.port-card.port-large + .port-card {
  grid-column: span 2;
}

.port-card.port-large + .port-card + .port-card {
  grid-column: span 2;
}
.port-card.port-large + .port-card + .port-card + .port-card {
  grid-column: span 4;
}

.port-thumb {
  aspect-ratio: 16 / 11;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: filter 0.4s;
}

.port-card.port-large .port-thumb {
  aspect-ratio: 16 / 9;
}

.port-thumb::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
  transition: inset 0.5s, opacity 0.5s;
}

.port-card:hover .port-thumb::before {
  inset: 8px;
  opacity: 0.8;
}

/* Thumb variants — abstract editorial compositions */
.port-thumb[data-thumb="thumb-1"] {
  background: linear-gradient(135deg, #d4b896 0%, #b08862 60%, #8b6635 100%);
}
.port-thumb[data-thumb="thumb-2"] {
  background: linear-gradient(160deg, #2c2620 0%, #3d2f24 100%);
}
.port-thumb[data-thumb="thumb-2"] .thumb-tag {
  color: var(--paper);
}
.port-thumb[data-thumb="thumb-3"] {
  background: linear-gradient(140deg, #e8dec4 0%, #c4a880 100%);
}
.port-thumb[data-thumb="thumb-4"] {
  background: linear-gradient(160deg, #5b2a26 0%, #3a1c1a 100%);
}
.port-thumb[data-thumb="thumb-4"] .thumb-tag {
  color: var(--gold-2);
}

.thumb-deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.thumb-tag {
  position: relative;
  z-index: 2;
  font-size: clamp(20px, 2.2vw, 32px);
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Decorative shapes */
.thumb-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.thumb-line {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 64%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}
.thumb-line.line-2 {
  top: 70%;
  background: rgba(255, 255, 255, 0.25);
}

.thumb-grid {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(201, 162, 103, 0.5);
  background-image:
    linear-gradient(rgba(201, 162, 103, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 103, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

.thumb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid rgba(28, 20, 14, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.thumb-ring.ring-2 {
  width: 60%;
  border-color: rgba(28, 20, 14, 0.2);
}

.thumb-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 70%;
  height: 80%;
  border: 1px solid rgba(201, 162, 103, 0.4);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  transform: translateX(-50%);
}

.port-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-top: 4px;
}

.port-meta h4 {
  font-size: clamp(22px, 1.8vw, 28px);
  grid-column: 1 / -1;
  grid-row: 2;
}

.port-meta .numeral {
  grid-row: 1;
  grid-column: 1;
}

.port-meta .label {
  grid-row: 1;
  grid-column: 2;
}

.port-meta .port-year {
  grid-row: 1;
  grid-column: 3;
  font-size: 14px;
  color: var(--gold-deep);
}

@media (max-width: 880px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .port-card,
  .port-card.port-large,
  .port-card.port-large + .port-card,
  .port-card.port-large + .port-card + .port-card,
  .port-card.port-large + .port-card + .port-card + .port-card {
    grid-column: 1 / -1;
  }
}

.portfolio-cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

/* ---------- PROCESS ---------- */
.section-process {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  list-style: none;
  counter-reset: p;
}

.process-list li {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: clamp(20px, 3vw, 48px);
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: padding 0.3s;
}

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

.process-list li .numeral {
  font-size: 16px;
  padding-top: 6px;
}

.process-list li h4 {
  font-size: clamp(26px, 2.4vw, 38px);
  margin-bottom: 8px;
  line-height: 1.1;
  transition: transform 0.4s;
}

.process-list li p {
  font-size: 15px;
  max-width: 56ch;
}

.process-list li .process-time {
  text-align: right;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold-deep);
}

.process-list li:hover h4 {
  transform: translateX(12px);
  color: var(--gold-deep);
}

@media (max-width: 760px) {
  .process-list li {
    grid-template-columns: 60px 1fr;
  }
  .process-list li .process-time {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- TÉMOIGNAGES ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.testi {
  background: rgba(255, 255, 255, 0.35);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--line-2);
}

.testi-quote {
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  height: 32px;
}

.testi blockquote {
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}

.testi figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testi figcaption .serif {
  font-size: 18px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FOOTER CTA ---------- */
.footer-cta {
  max-width: 1000px;
}

.footer-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-light {
  border-color: rgba(241, 233, 215, 0.5);
  color: var(--paper);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.mail-link {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  color: var(--gold-2);
  border-bottom: 1px solid rgba(201, 162, 103, 0.4);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.mail-link:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.brand-light {
  color: var(--paper);
}

.brand-light .crest {
  color: var(--gold-2);
  border-color: var(--gold-2);
}
