/* ============================================
   Himadu Thamuditha — Pianist / Composer / Arranger
   Design tokens: ebony, walnut, ivory, antique brass, burgundy
   ============================================ */

:root {
  --ebony: #1a1512;
  --ebony-soft: #241d18;
  --walnut: #6f4a2e;
  --walnut-deep: #4a3220;
  --ivory: #f7f0de;
  --ivory-dim: #ece2c8;
  --brass: #a87c3f;
  --brass-bright: #c79a53;
  --burgundy: #5c2a2a;
  --ink: #2b2420;
  --ink-soft: #4a4038;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
  --section-pad: clamp(3.5rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0 0 1.2em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: var(--ebony);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-decoration: none;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ebony);
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  background-color: var(--ebony);
  background-image:
    linear-gradient(0deg, rgba(20, 16, 13, 0.92) 0%, rgba(20, 16, 13, 0.55) 32%, rgba(20, 16, 13, 0.15) 55%, rgba(20, 16, 13, 0.35) 100%),
    url("../images/hero-photo.jpg");
  background-size: cover;
  background-position: 68% 15%;
  background-repeat: no-repeat;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(168, 124, 63, 0.05) 0px,
    rgba(168, 124, 63, 0.05) 2px,
    transparent 2px,
    transparent 34px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .hero {
    background-position: 65% center;
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-style: italic;
  color: var(--ivory);
  line-height: 1.05;
  max-width: 16ch;
}

.hero-role {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
}

.hero-location {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(247, 240, 222, 0.6);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brass);
  color: var(--ebony);
}

.btn-primary:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(247, 240, 222, 0.35);
  color: var(--ivory);
}

.btn-ghost:hover {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
}

/* ---------- Keyboard divider (signature element) ---------- */

.keyboard-divider {
  display: flex;
  width: 100%;
  height: 14px;
  background: var(--ink);
}

.keyboard-divider span {
  flex: 1;
  background: var(--ivory-dim);
  border-right: 1px solid var(--ink);
  transform: scaleY(0.3);
  transform-origin: center;
  opacity: 0.5;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.keyboard-divider.revealed span {
  transform: scaleY(1);
  opacity: 1;
}

.keyboard-divider span:nth-child(4n) {
  background: var(--ink);
}

/* ---------- Sections ---------- */

section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
  display: block;
}

.section-lede {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  max-width: 62ch;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Credits list ---------- */

.credits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(43, 36, 32, 0.15);
}

.credits-list li {
  list-style: none;
  padding: 1.4rem 1.75rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid rgba(43, 36, 32, 0.15);
  flex: 1 1 240px;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  background: var(--walnut-deep);
  color: var(--ivory);
  padding: var(--section-pad) 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.35;
  max-width: 26ch;
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

/* ---------- Portrait / photo placeholder frame ---------- */

.portrait-frame {
  aspect-ratio: 4 / 5;
  background: var(--ebony);
  border: 1px solid var(--brass);
  overflow: hidden;
  position: relative;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 25%;
}

.portrait-frame span {
  color: var(--ivory-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
}

/* ---------- Two column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Definition list (credentials) ---------- */

.credentials dl {
  margin: 2rem 0 0;
  border-top: 1px solid rgba(43, 36, 32, 0.15);
}

.credentials .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(43, 36, 32, 0.15);
}

.credentials dt {
  font-weight: 500;
  color: var(--ink);
}

.credentials dd {
  margin: 0;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- Video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Reel embed ---------- */

.reel-embed {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}


.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.98rem;
}

.rate-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--ink);
}

.rate-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(43, 36, 32, 0.15);
  vertical-align: top;
}

.rate-table td:first-child,
.rate-table th:first-child {
  font-family: var(--font-display);
  font-style: italic;
  white-space: nowrap;
  padding-right: 2rem;
}

/* ---------- Contact ---------- */

.contact-options {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.contact-form {
  margin-top: 3rem;
  max-width: 640px;
}

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

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 560px) {
  .form-row-split {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(43, 36, 32, 0.25);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 124, 63, 0.15);
}

.contact-form button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  max-width: 640px;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(43, 36, 32, 0.15);
}

/* ---------- Footer ---------- */

footer {
  background: var(--ebony);
  color: var(--ivory-dim);
  padding: 3.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ivory);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.footer-note {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: rgba(247, 240, 222, 0.4);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--ebony);
  color: var(--ivory);
  padding: 8.5rem 0 4rem;
}

.page-hero .section-label {
  color: var(--brass-bright);
}

.page-hero h1 {
  color: var(--ivory);
  font-style: italic;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
