/*
Theme Name: Danny Sokov Studio
Text Domain: danny-sokov-studio
Description: An original, fully editable WordPress block theme for Danny Sokov.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* Layout is handled by core Group, Columns, Image and Cover blocks.
   These rules supply the art direction, without hard-coding section copy. */
:root {
  --ds-edge: clamp(20px, 4.8vw, 76px);
  --ds-width: 1320px;
  --ds-divider: rgba(255,255,255,.24);
  --ds-section-space: clamp(24px, 2.4vw, 32px);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: #000; color: #fff; }
body, .wp-site-blocks { overflow-x: clip; }
.wp-site-blocks { min-height: 100vh; }
a { text-underline-offset: .2em; }
a:hover { opacity: .85; }
:where(.ds-page, .ds-nav-group) {
  max-width: var(--ds-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ds-edge);
  padding-right: var(--ds-edge);
  box-sizing: border-box;
}
.ds-page { padding-bottom: 12px; }
/* The original wordmark and menu form one persistent, editable header. */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
}
body.admin-bar header.wp-block-template-part {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.ds-nav-group {
  max-width: none;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ds-divider);
  background: #000;
  text-align: center;
}
.ds-nav-group > * + * { margin-block-start: 0!important; }
.ds-banner { margin: 0 auto!important; max-width: 475px; }
.ds-banner > a { display: block; }
.ds-banner img {
  display: block;
  width: 100%;
  height: 102px;
  object-fit: cover;
  object-position: center 44%;
}
.ds-nav {
  margin: 0!important;
  text-align: center;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.6;
}
:where(.ds-nav) {
  font-family: var(--wp--preset--font-family--display, Georgia, serif);
  font-size: clamp(11px,1vw,13px);
}
.ds-nav a { display: inline-block; margin: 0 clamp(7px,1.2vw,19px); }
@media (min-width: 782px) {
  .ds-nav-group > .ds-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: none!important;
    margin-inline: auto!important;
    box-sizing: border-box;
  }
}
.ds-hidden-heading {
  position: absolute!important;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  white-space: nowrap;
}
/* The portrait starts exactly at the divider's left edge.
   The second column stretches to match the portrait height. */
.ds-hero-columns {
  max-width: none;
  width: 100%;
  margin-left: 0!important;
  margin-right: 0!important;
  gap: clamp(28px, 4vw, 66px)!important;
  align-items: stretch;
}
.ds-hero-columns > .wp-block-column:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ds-portrait { margin: 0!important; }
.ds-portrait img {
  width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
  object-position: center 43%;
  display: block;
  filter: grayscale(100%);
}
/* Typography defaults use zero-specificity selectors.
   WordPress font family and size controls therefore take precedence. */
.ds-hero-text {
  display: flex;
  flex: 1;
  min-height: 100%;
  max-width: none;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.ds-hero-text > * + * {
  margin-block-start: 0!important;
}
.ds-hero-intro > * + * {
  margin-block-start: 5px!important;
}
:where(.ds-hero-title) {
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.25;
  letter-spacing: .045em;
}
.ds-hero-title { margin: 0!important; }
:where(.ds-hero-audience) {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  color: #d9d9d9;
}
.ds-hero-audience { margin: 0!important; }
.ds-hero-services > * + * {
  margin-block-start: clamp(2px, .35vw, 6px)!important;
}
:where(.ds-hero-services p, .ds-hero-training) {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.43;
}
.ds-hero-services p, .ds-hero-training {
  margin-block-end: 0!important;
}
.ds-hero-training { color: #d9d9d9; }
.ds-page > .ds-hero-columns {
  margin-top: clamp(25px, 3vw, 42px)!important;
  margin-bottom: var(--ds-section-space)!important;
}
.ds-page > .ds-section {
  margin-block-start: 0!important;
  margin-block-end: 0!important;
  padding-block-start: 0!important;
  padding-block-end: var(--ds-section-space)!important;
  scroll-margin-top: 150px;
}
.ds-section > :last-child {
  margin-bottom: 0!important;
}
.ds-divider {
  margin: 0 0 var(--ds-section-space)!important;
  border: 0!important;
  border-top: 1px solid var(--ds-divider)!important;
  background: transparent!important;
  opacity: 1!important;
}
.ds-section-title {
  text-align: center;
  letter-spacing: .23em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 clamp(18px, 2vw, 28px)!important;
}
.ds-work-columns {
  gap: clamp(12px,2vw,28px)!important;
  margin-bottom: 0!important;
}
.ds-portfolio-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
}
.ds-portfolio-card .wp-block-image { margin: 0!important; }
.ds-portfolio-card .wp-block-image a { display: block; position: relative; }
.ds-portfolio-card .wp-block-image a:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 37%, rgba(0,0,0,.79) 100%);
  pointer-events: none;
}
.ds-portfolio-card .wp-block-image img {
  width: 100%;
  aspect-ratio: 1.5;
  height: auto;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) brightness(.73);
  transition: filter .35s ease, transform .45s ease;
}
.ds-portfolio-card:hover .wp-block-image img { filter: grayscale(100%) brightness(.95); transform: scale(1.025); }
.ds-portfolio-title {
  position: absolute;
  bottom: clamp(12px,2vw,30px);
  left: clamp(14px,2vw,30px);
  right: 16px;
  z-index: 1;
  margin: 0!important;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .07em;
  pointer-events: none;
}
:where(.ds-portfolio-title) { font-size: clamp(15px,1.7vw,24px); }
.ds-portfolio-title a { pointer-events: auto; }
.ds-service-teaser { margin: 0 auto!important; text-align: center; }
.ds-service-teaser p { margin: 0!important; }
.ds-sonic { text-align: center; }
.ds-sonic .ds-divider { margin-bottom: var(--ds-section-space)!important; }
.ds-sonic .ds-teaser-title { margin-top: 3px!important; }
.ds-kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
}
:where(.ds-kicker) {
  font-family: var(--wp--preset--font-family--neutral, sans-serif);
  font-size: 12px;
}
.ds-teaser-title {
  text-transform: uppercase;
  letter-spacing: .18em;
}
:where(.ds-teaser-title) {
  font-family: var(--wp--preset--font-family--display, Georgia, serif);
  font-size: clamp(21px,2vw,32px);
}
.ds-client-category { margin-top: 17px!important; margin-bottom: 5px!important; }
.ds-client-list {
  margin: 0 auto!important;
  max-width: 1150px;
  color: #d8d8d8;
  line-height: 2.05;
}
.ds-client-list a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.ds-contact { text-align: center; }
.ds-contact .ds-section-title { margin-bottom: 0!important; }
.ds-monogram { margin: 8px auto -8px!important; max-width: 180px; }
.ds-monogram img {
  display: block;
  width: 160px;
  height: 144px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 49%;
}
.ds-phone { margin: 7px auto 11px!important; letter-spacing: .04em; }
:where(.ds-phone) { font-size: clamp(21px,2vw,31px); }
.ds-contact .ds-kicker { margin: 0 auto 11px!important; }
.ds-socials { display: flex; justify-content: center; gap: 25px; margin: 0 auto!important; font-size: 48px; }
.ds-socials .wp-social-link { background: transparent!important; color: white!important; }
.ds-socials .wp-social-link a { padding: 6px; }
.ds-socials .wp-social-link svg { width: 48px; height: 48px; }
.ds-footer-note {
  text-align: center;
  padding: 23px var(--ds-edge) 34px;
  color: #8b8b8b;
  letter-spacing: .09em;
  line-height: 1.9;
}
:where(.ds-footer-note) {
  font-family: var(--wp--preset--font-family--neutral, Arial, sans-serif);
  font-size: clamp(10px,1vw,12px);
}
@media (max-width: 781px) {
  .ds-nav { text-align: center; }
  .ds-nav a { margin: 0 9px; }
  .ds-banner { max-width: 370px; }
  .ds-banner img { height: 82px; }
  .ds-page > .ds-section { scroll-margin-top: 135px; }
  .ds-hero-columns, .ds-work-columns { gap: 20px!important; }
  .ds-hero-columns { width: 100%; max-width: none; }
  .ds-hero-text {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-inline: 0;
    justify-content: flex-start;
    text-align: center;
  }
  .ds-hero-text :is(.ds-hero-title, .ds-hero-audience, .ds-hero-services p, .ds-hero-training) { text-align: center!important; }
  .ds-hero-text > * + * { margin-block-start: 19px!important; }
  :where(.ds-hero-title) { font-size: clamp(21px, 4.8vw, 27px); }
  :where(.ds-hero-audience) { font-size: clamp(15px, 3.8vw, 18px); }
  .ds-portrait img { max-height: none; aspect-ratio: 1.12 / 1; }
  .ds-page > .ds-section { margin-block-start: 0!important; }
  .ds-page > .ds-hero-columns { margin-bottom: var(--ds-section-space)!important; }
  .ds-portfolio-card .wp-block-image img { aspect-ratio: 1.56; }
  .ds-client-list { line-height: 1.85; }
}
@media (max-width: 480px) {
  .ds-nav-group { padding-top: 4px; padding-bottom: 7px; }
  .ds-nav { letter-spacing: .075em; }
  :where(.ds-nav) { font-size: 10px; }
  .ds-nav a { margin: 0 6px; }
  .ds-banner { max-width: min(300px, 94vw); }
  .ds-banner img { height: 66px; }
  .ds-page > .ds-section { scroll-margin-top: 112px; }
  .ds-hero-text > * + * { margin-block-start: 17px!important; }
  :where(.ds-hero-services p, .ds-hero-training) { font-size: 17px; }
  .ds-section-title { letter-spacing: .16em; }
  :where(.ds-section-title) { font-size: 21px; }
  :where(.ds-client-list) { font-size: 14px; }
  .ds-monogram { margin-top: 5px!important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds-portfolio-card .wp-block-image img { transition: none; }
}
