/* dariusferdynandweb.com · Dovetail
   Maple stock, socket brown, pencil grey rules, chisel steel accent. */

:root {
  --maple: #f2e8d8;
  --paper: #fbf6ea;
  --socket: #3e2c1e;
  --pencil: #6a6a6a;
  --muted: #5f5648;
  --steel: #3a4a5a;
  --rule: #d9c9ad;
  --cream: #f7f0e4;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--maple);
  background-image: repeating-linear-gradient(92deg, rgba(62, 44, 30, 0.028) 0 1px, transparent 1px 9px);
  color: var(--socket);
  font-family: 'Overlock SC', Georgia, serif;
  font-size: 17px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: var(--steel);
}

h1,
h2,
h3,
.stat-num,
.hero-title,
.brand-name,
.wordmark,
.handle,
.when,
.alias-name,
.num {
  font-family: 'Cherry Cream Soda', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ------------------------------------------------------------- header --- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 232, 216, 0.94);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--socket);
  text-decoration: none;
  font-size: 1.18rem;
  white-space: nowrap;
}

.mark {
  width: 15px;
  height: 13px;
  background: var(--socket);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
}

.main-nav a {
  color: #3e2c1e;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #3a4a5a;
  border-bottom-color: var(--steel);
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--socket);
}

.btn {
  display: inline-block;
  background: #3a4a5a;
  color: #f7f0e4;
  border: 1px solid #3a4a5a;
  padding: 0.82rem 1.3rem;
  font-family: 'Overlock SC', Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #2c3844;
  color: #fffaf0;
  border-color: #2c3844;
}

.btn-sm {
  padding: 0.52rem 0.9rem;
  font-size: 0.78rem;
}

.main-nav a.btn {
  color: #f7f0e4;
  background: #3a4a5a;
  border-color: #3a4a5a;
  border-bottom: 1px solid #3a4a5a;
}

.main-nav a.btn:hover {
  color: #fffaf0;
  background: #2c3844;
  border-color: #2c3844;
  border-bottom-color: #2c3844;
}

/* --------------------------------------------------------------- hero --- */
.hero {
  padding: 62px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 4.55rem);
  line-height: 0.96;
}

.hero-title span {
  display: block;
}

.hero-title .last {
  color: var(--steel);
}

.hero-tagline {
  margin: 20px 0 0;
  font-size: 1.08rem;
  color: #4a4034;
}

.hero-intro {
  margin: 14px 0 26px;
  max-width: 46ch;
  color: #4a4034;
  line-height: 1.72;
}

.hero-photo {
  margin: 0;
  max-width: 468px;
  width: 100%;
  justify-self: end;
  position: relative;
}

.teeth {
  display: block;
  width: 100%;
  height: 30px;
  margin-bottom: 10px;
}

.hero-frame {
  background: var(--paper);
  border: 1px solid #cdbb9c;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(62, 44, 30, 0.13);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-rule {
  position: absolute;
  left: -16px;
  top: 70px;
  bottom: 34px;
  width: 3px;
  background: var(--steel);
}

/* ----------------------------------------------------------- sections --- */
.section {
  padding: 72px 0;
}

.section-partners {
  padding-top: 40px;
}

.section-sub {
  margin: 0 0 30px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.eyebrow .num {
  font-size: 1.12rem;
  color: var(--socket);
}

.pin {
  width: 20px;
  height: 9px;
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

/* ----------------------------------------------------------- partners --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  justify-content: space-between;
  gap: 22px 24px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 150px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.partner-card:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------ profile --- */
.profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}

.profile-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--rule);
}

.fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
}

.fact .k {
  flex: 0 0 96px;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  color: var(--steel);
}

.fact .v {
  font-size: 0.98rem;
  color: var(--socket);
}

/* -------------------------------------------------------------- about --- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text p {
  margin: 0 0 14px;
  color: #4a4034;
  line-height: 1.74;
}

.about-photo {
  margin: 0;
  max-width: 392px;
  justify-self: end;
  width: 100%;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--steel);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------- career --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 20px;
}

.stat-num {
  display: block;
  font-size: 2.25rem;
  white-space: nowrap;
  line-height: 1;
  color: var(--steel);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--socket);
}

.stat-num.long {
  font-size: 1.55rem;
  padding-top: 0.55rem;
}

.stat-note {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.timeline .when {
  font-size: 0.92rem;
  color: var(--steel);
}

.timeline .when::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 9px;
  background: var(--socket);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.timeline .what {
  color: #4a4034;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1020px;
}

.shot {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ------------------------------------------------------------- social --- */
.social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-row:hover {
  border-color: var(--steel);
  background: #f6ecd9;
}

.social-row .platform {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.social-row .handle {
  font-size: 1rem;
  color: var(--socket);
}

/* ------------------------------------------------------------- credit --- */
.credit-strip {
  border-top: 1px solid var(--rule);
  background: #eadfc9;
  padding: 16px 0;
}

.credit-strip p {
  margin: 0;
  font-size: 0.78rem;
  color: #5f5648;
}

.credit-strip a {
  color: #33424f;
}

/* ------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--socket);
  color: var(--maple);
  padding: 42px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.5fr auto;
  gap: 0.65rem 2rem;
  align-items: center;
}

.brand-name {
  display: block;
  font-size: 1.1rem;
  color: var(--maple);
}

.brand-line {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: #d9c9ad;
  line-height: 1.5;
}

.language-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.language-nav a {
  color: #f2e8d8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.language-nav a:hover {
  border-bottom-color: #f2e8d8;
}

.language-nav a[aria-current="page"] {
  color: #cbbd9e;
  border-bottom-color: #cbbd9e;
}

.footer-legal {
  margin: 0;
  font-size: 0.76rem;
  color: #e6d8c2;
  text-align: right;
}

/* ---------------------------------------------------------- sub pages --- */
.page-top {
  padding: 58px 0 30px;
}

.page-top h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.05;
}

.page-top .btn {
  margin-top: 22px;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: #4a4034;
  font-size: 1.04rem;
  line-height: 1.7;
}

.section-page {
  padding-top: 12px;
}

.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3.4vw, 40px);
  margin-bottom: 28px;
}

.sheet h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
  gap: 52px;
  align-items: start;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 1.42rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
  color: #4a4034;
  line-height: 1.74;
}

.fact-rail {
  position: sticky;
  top: 20px;
}

.rail-photo {
  margin: 0 0 22px;
  padding: 9px;
  background: #eadfc9;
  border: 1px solid var(--rule);
}

.rail-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.fact-rail h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.record {
  margin: 0;
}

.record dt {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.record dd {
  margin: 2px 0 0;
  font-size: 0.94rem;
  color: var(--socket);
  line-height: 1.5;
}

.stat-grid-page {
  margin-bottom: 28px;
}

.career-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}

.awards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.award {
  display: grid;
  grid-template-columns: 74px 52px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.award .status {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.award .year {
  font-size: 0.76rem;
  color: var(--muted);
}

.award .award-text {
  color: #4a4034;
}

.alias {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}

.alias-name {
  font-size: 0.98rem;
}

.alias-scope {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.fine {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.note {
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--steel);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.film-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.year-chart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.year-chart li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
}

.year-chart .y {
  font-size: 0.78rem;
  color: var(--muted);
}

.year-chart .bar {
  display: block;
  width: var(--w);
  height: 10px;
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  min-width: 6px;
}

.year-chart .c {
  font-size: 0.78rem;
  text-align: right;
  color: var(--muted);
}

.title-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 26px;
}

.title-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  break-inside: avoid;
  font-size: 0.9rem;
  color: #4a4034;
}

.block-h {
  margin: 18px 0 18px;
  font-size: 1.5rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.studio {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px 20px;
}

.studio h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.studio p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.faq-wrap {
  max-width: 900px;
  margin-left: 0;
  margin-right: auto;
}

.faq-wrap details {
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
}

.faq-wrap summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-family: 'Cherry Cream Soda', Georgia, serif;
  font-size: 1.01rem;
  color: var(--socket);
}

.faq-wrap summary::-webkit-details-marker {
  display: none;
}

.plus {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--steel);
  font-family: 'Overlock SC', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.plus::before {
  content: "+";
}

.faq-wrap details[open] .plus {
  transform: rotate(45deg);
}

.faq-wrap details p {
  margin: 0;
  padding: 0 24px 20px 50px;
  color: #4a4034;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------ mobile --- */
@media (max-width: 1020px) {
  .partner-grid {
    grid-template-columns: repeat(2, 250px);
  }

  .career-cols,
  .film-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .about-grid,
  .bio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    justify-self: start;
    max-width: 420px;
    margin-top: 10px;
  }

  .hero-rule {
    display: none;
  }

  .about-photo {
    justify-self: start;
    margin-top: 26px;
  }

  .profile-grid {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .profile-grid::before {
    display: none;
  }

  .fact-rail {
    position: static;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .language-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .wordmark {
    flex: 1 1 auto;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.72rem;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .partner-card {
    width: auto;
    height: auto;
    aspect-ratio: 250 / 150;
    padding: 8px;
  }

  .social-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .title-list {
    columns: 1;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .stat-grid {
    gap: 12px;
  }

  .stat {
    padding: 18px 16px;
  }

  .stat-num {
    font-size: 1.9rem;
  }

  .fact {
    gap: 10px;
  }

  .fact .k {
    flex-basis: 88px;
  }

  .timeline li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .award {
    grid-template-columns: 64px 44px minmax(0, 1fr);
    gap: 8px;
  }

  .main-nav {
    gap: 8px 13px;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }

  .main-nav a.btn {
    margin-left: auto;
  }

  .page-top {
    padding-top: 42px;
  }
}

@media (max-width: 400px) {
  .main-nav {
    gap: 7px 10px;
    font-size: 0.64rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }
}
