/*
Theme Name: Силуэт
Theme URI: https://example.com
Author: Silhouette Agency
Description: Лендинг модельного агентства «Силуэт» — кастинг, портфолио, связь через WhatsApp и Telegram.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siluet
*/

:root{
    --off-black:#0f1012;
    --pure-black:#020201;
    --off-white:#f2f2f4;
    --pure-white:#fdfdfd;
    --steel:#5e5e5e;
    --ash:#8f8f8f;
    --blue:#0071e3;
    --hairline:rgba(2,2,1,0.09);
    --hairline-soft:rgba(2,2,1,0.06);
    --wash:rgba(15,16,18,0.055);

    --r-hair:1.8px;
    --r-pill:9999px;
    --r-nav:10px;
    --r-btn:26px;
    --r-card:54px;
    --r-container:63px;

    --gap-section:100px;
    --pad-card:69px;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }
  body{
    margin:0;
    background:var(--off-white);
    color:var(--off-black);
    font-family:'Inter', -apple-system, "Segoe UI", sans-serif;
    font-weight:350;
    letter-spacing:-0.02em;
    line-height:1.2;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  a{ color:inherit; }
  p{ text-align:left; }
  .wrap{ max-width:1200px; margin:0 auto; padding:0 34px; }
  @media (max-width:640px){ .wrap{ padding:0 22px; } }

  .caption{ font-size:12px; color:var(--ash); text-transform:uppercase; letter-spacing:0.04em; }
  .label-pair{ margin-bottom:50px; }
  .label-pair .caption{ margin:0 0 10px; }
  .label-pair h2{
    margin:0;
    font-size:27px;
    font-weight:350;
    letter-spacing:-0.02em;
    line-height:1.2;
    color:var(--off-black);
    max-width:26ch;
  }

  /* ---------- sticky section grid ---------- */
  .section-grid{
    display:grid;
    grid-template-columns:240px 1fr;
    gap:50px;
    align-items:start;
  }
  .section-grid .label-pair{
    position:sticky;
    top:130px;
    margin-bottom:0;
  }
  @media (max-width:900px){
    .section-grid{ grid-template-columns:1fr; gap:26px; }
    .section-grid .label-pair{ position:static; }
  }

  /* ---------- marquee ---------- */
  .marquee{
    border-top:0.5px solid var(--hairline);
    border-bottom:0.5px solid var(--hairline);
    padding:22px 0;
    overflow:hidden;
    white-space:nowrap;
  }
  .marquee-track{
    display:inline-flex;
    gap:40px;
    animation:marquee 26s linear infinite;
  }
  .marquee-track span{
    font-size:14px;
    color:var(--ash);
    letter-spacing:-0.01em;
  }
  .marquee-track span b{ color:var(--off-black); font-weight:400; }
  .marquee-track span.dot{ color:var(--blue); }
  @keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

  /* ---------- stats strip ---------- */
  .stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    margin-top:44px;
  }
  @media (max-width:700px){ .stats{ grid-template-columns:1fr; } }
  .stat{
    border-top:0.5px solid var(--hairline);
    padding-top:16px;
  }
  .stat .num{
    font-size:36px;
    color:var(--off-black);
    font-weight:350;
    letter-spacing:-0.02em;
  }
  .stat .num .blue{ color:var(--blue); }
  .stat .cap{ font-size:13px; color:var(--steel); margin-top:6px; }

  /* ---------- scroll progress ---------- */
  .progress{
    position:fixed;
    top:0; left:0; right:0;
    height:2px;
    background:transparent;
    z-index:60;
  }
  .progress .fill{
    height:100%;
    width:0%;
    background:var(--blue);
    transition:width .1s linear;
  }

  /* ---------- nav ---------- */
  .navwrap{
    position:fixed;
    top:34px; left:0; right:0;
    z-index:50;
    display:flex;
    justify-content:center;
    pointer-events:none;
  }
  .navpill{
    pointer-events:auto;
    display:flex;
    align-items:center;
    gap:22px;
    background:var(--pure-white);
    border:0.5px solid var(--hairline);
    border-radius:var(--r-nav);
    padding:11px 22px;
  }
  .navpill .mark{
    width:16px; height:16px;
    display:flex; align-items:center; justify-content:center;
    color:var(--blue);
    flex:none;
  }
  .navpill a{
    font-size:14px;
    font-weight:350;
    text-decoration:none;
    color:var(--off-black);
    position:relative;
  }
  .navpill a::after{
    content:"";
    position:absolute; left:0; right:0; bottom:-3px;
    height:0.5px; background:var(--off-black);
    transform:scaleX(0); transform-origin:left;
    transition:transform .2s ease, background .2s ease;
  }
  .navpill a:hover::after{ transform:scaleX(1); }
  .navpill a.active{ color:var(--blue); }
  .navpill a.active::after{ transform:scaleX(1); background:var(--blue); }
  @media (max-width:760px){
    .navpill a:not(:first-of-type){ display:none; }
    .navpill{ gap:14px; }
  }

  /* ---------- buttons ---------- */
  .pillbtn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 22px;
    border-radius:var(--r-btn);
    background:var(--wash);
    border:0.5px solid var(--hairline);
    text-decoration:none;
    color:var(--pure-black);
    font-size:13px;
    font-weight:400;
    letter-spacing:-0.02em;
    transition:background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .pillbtn:hover{ background:rgba(15,16,18,0.09); transform:translateY(-1px); }
  .pillbtn svg{ width:15px; height:15px; color:var(--blue); flex:none; }
  .pillbtn.ghost{ background:var(--pure-white); }

  .newbadge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:5px 14px 5px 10px;
    border-radius:var(--r-pill);
    background:var(--pure-white);
    border:0.5px solid var(--hairline);
    font-size:12px;
    color:var(--steel);
    margin-bottom:30px;
  }
  .newbadge .dot{
    width:6px; height:6px; flex:none;
    border-radius:50%;
    background:var(--blue);
    box-shadow:0 0 0 0 rgba(0,113,227,0.5);
    animation:pulseDot 2.2s ease-out infinite;
  }
  @keyframes pulseDot{
    0%{ box-shadow:0 0 0 0 rgba(0,113,227,0.45); }
    70%{ box-shadow:0 0 0 7px rgba(0,113,227,0); }
    100%{ box-shadow:0 0 0 0 rgba(0,113,227,0); }
  }
  .newbadge b{
    font-size:10px;
    font-weight:400;
    color:var(--blue);
    border:0.5px solid var(--blue);
    border-radius:var(--r-pill);
    padding:3px 9px;
  }

  /* ---------- hero ---------- */
  .hero{
    position:relative;
    overflow:hidden;
    padding:180px 0 130px;
  }
  .hero canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
  }
  .hero-inner{ position:relative; z-index:2; will-change:transform, opacity; }
  .spotlight{
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:radial-gradient(320px circle at var(--mx,50%) var(--my,30%), rgba(0,113,227,0.09), transparent 65%);
    transition:opacity .3s ease;
    opacity:0;
  }
  .hero:hover .spotlight{ opacity:1; }
  .load-in{
    opacity:0;
    transform:translateY(14px);
    animation:heroIn .8s cubic-bezier(.16,.8,.3,1) forwards;
  }
  @keyframes heroIn{ to{ opacity:1; transform:translateY(0); } }
  .hero h1{
    margin:0;
    font-weight:350;
    letter-spacing:-0.02em;
    line-height:1.03;
    font-size:clamp(46px, 8vw, 92px);
    max-width:15ch;
    text-wrap:balance;
    color:var(--off-black);
  }
  .hero h1 .accent{ color:var(--blue); }
  .hero-sub{
    margin:30px 0 0;
    max-width:46ch;
    font-size:18px;
    line-height:1.5;
    color:var(--steel);
  }
  .hero-actions{ display:flex; flex-wrap:wrap; gap:11px; margin-top:44px; }

  /* ---------- sections ---------- */
  section{ padding:var(--gap-section) 0; }
  section.divider{ border-top:0.5px solid var(--hairline); }

  /* ---------- about ---------- */
  .about-card{
    background:var(--pure-white);
    border:0.5px solid var(--hairline-soft);
    border-radius:var(--r-card);
    padding:var(--pad-card);
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:60px;
  }
  @media (max-width:820px){ .about-card{ grid-template-columns:1fr; gap:34px; padding:44px 30px; border-radius:34px; } }
  .about-card .lede{
    font-size:18px;
    line-height:1.5;
    color:var(--off-black);
    margin:0;
  }
  .about-card p.body-p{
    font-size:16px;
    line-height:1.55;
    color:var(--steel);
    margin:0 0 22px;
  }
  .value-row{
    display:flex;
    gap:14px;
    padding:16px 0;
    border-top:0.5px solid var(--hairline);
    font-size:14px;
    color:var(--steel);
  }
  .value-row:last-child{ border-bottom:0.5px solid var(--hairline); }
  .value-row b{ color:var(--off-black); font-weight:400; }
  .value-row .n{ color:var(--blue); flex:none; font-size:13px; }

  /* ---------- services ---------- */
  .service-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    perspective:1200px;
  }
  @media (max-width:820px){ .service-grid{ grid-template-columns:1fr; } }
  .service-card{
    background:var(--pure-white);
    border:0.5px solid var(--hairline-soft);
    border-radius:var(--r-card);
    padding:44px 38px;
    transform-style:preserve-3d;
    transition:transform .3s cubic-bezier(.16,.8,.3,1), box-shadow .25s ease, border-color .25s ease;
    will-change:transform;
  }
  .service-card:hover{
    border-color:rgba(0,113,227,0.35);
    box-shadow:0 0 0 1px rgba(0,113,227,0.16);
  }
  .tag{
    display:inline-block;
    font-size:11px;
    color:var(--blue);
    border:0.5px solid var(--blue);
    border-radius:var(--r-pill);
    padding:3px 11px;
    margin-bottom:22px;
  }
  .service-card h3{
    margin:0 0 10px;
    font-size:18px;
    font-weight:350;
    color:var(--off-black);
  }
  .service-card p{
    margin:0;
    font-size:14px;
    line-height:1.55;
    color:var(--steel);
  }

  /* ---------- portfolio ---------- */
  .book-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
    perspective:1200px;
  }
  @media (max-width:820px){ .book-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .book-grid{ grid-template-columns:1fr; } }
  .look-card{
    aspect-ratio:4/5;
    background:var(--pure-white);
    border:0.5px solid var(--hairline-soft);
    border-radius:var(--r-card);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    transform-style:preserve-3d;
    transition:transform .3s cubic-bezier(.16,.8,.3,1), border-color .25s ease, box-shadow .25s ease;
    will-change:transform;
  }
  .look-card:hover{ border-color:rgba(0,113,227,0.4); box-shadow:0 0 0 1px rgba(0,113,227,0.16); }
  .look-card:hover svg{ color:var(--blue); }
  .look-card svg{ width:26px; height:26px; color:var(--ash); transition:color .25s ease; }
  .look-card .cap{ font-size:11px; color:var(--ash); }

  /* ---------- process ---------- */
  .tracks{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
  @media (max-width:820px){ .tracks{ grid-template-columns:1fr; } }
  .track{
    background:var(--pure-white);
    border:0.5px solid var(--hairline-soft);
    border-radius:var(--r-container);
    padding:var(--pad-card) 44px;
  }
  .track h3{ margin:0 0 30px; font-size:18px; font-weight:400; color:var(--off-black); }
  .steps{ list-style:none; margin:0; padding:0; counter-reset:step; }
  .steps li{ counter-increment:step; display:flex; gap:16px; padding:16px 0; border-top:0.5px solid var(--hairline); }
  .steps li:last-child{ padding-bottom:0; }
  .steps li::before{
    content:counter(step);
    flex:none;
    width:26px; height:26px;
    border-radius:var(--r-nav);
    border:0.5px solid var(--hairline);
    display:flex; align-items:center; justify-content:center;
    font-size:12px; color:var(--blue);
  }
  .steps b{ display:block; font-size:14px; font-weight:400; color:var(--off-black); margin-bottom:3px; }
  .steps span{ font-size:13px; color:var(--steel); line-height:1.5; }

  /* ---------- contact ---------- */
  .contact-heading{
    font-size:clamp(30px, 4.5vw, 44px);
    font-weight:350;
    letter-spacing:-0.02em;
    line-height:1.15;
    max-width:20ch;
    margin:0 0 44px;
    color:var(--off-black);
    text-wrap:balance;
  }
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:60px; }
  @media (max-width:820px){ .contact-grid{ grid-template-columns:1fr; gap:26px; } }
  .contact-block .caption{ margin-bottom:8px; }
  .contact-block a.bluelink{
    color:var(--blue);
    font-size:16px;
    text-decoration:none;
    border-bottom:0.5px solid transparent;
  }
  .contact-block a.bluelink:hover{ border-bottom-color:var(--blue); }

  /* ---------- footer ---------- */
  footer{
    background:var(--off-black);
    padding:50px 34px 69px;
    text-align:center;
    color:var(--pure-white);
  }
  footer .fmark{ font-size:16px; font-weight:350; }
  footer .ftag{ font-size:13px; color:#9a9a9c; margin:8px 0 26px; }
  footer nav{ display:flex; justify-content:center; gap:22px; flex-wrap:wrap; }
  footer nav a{ font-size:12px; color:#c8c8ca; text-decoration:none; }
  footer nav a:hover{ color:var(--pure-white); }
  footer .fyear{ margin-top:26px; font-size:10px; color:#6d6d70; }

  /* ---------- dock ---------- */
  .dock{
    position:fixed; right:22px; bottom:22px; z-index:60;
    display:flex; flex-direction:column; gap:10px;
    opacity:0; transform:translateY(8px); pointer-events:none;
    transition:opacity .3s ease, transform .3s ease;
  }
  .dock.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .dock a{
    width:44px; height:44px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--pure-white);
    border:0.5px solid var(--hairline);
    color:var(--off-black);
    text-decoration:none;
    transition:border-color .2s ease, color .2s ease;
  }
  .dock a:hover{ border-color:var(--blue); color:var(--blue); }
  .dock svg{ width:18px; height:18px; }

  .reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
  .reveal.in-view{ opacity:1; transform:translateY(0); }
