/* TAMIYOUZ PREMIUM UI POLISH 1.0
   Art direction: deep navy / ivory / champagne.
   CSS-only visual finish; no animations, copy, routes, form logic or DB changes.
   Existing complex homepage hero, portfolio book and AI assistant untouched. */
:root {
  --tp-ink:#172e44;
  --tp-muted:#607184;
  --tp-muted-strong:#526476;
  --tp-surface:#fffdf9;
  --tp-surface-soft:#f9f6ef;
  --tp-stroke:rgba(164,126,77,.24);
  --tp-stroke-strong:rgba(174,131,77,.4);
  --tp-champagne:#d7ad73;
  --tp-champagne-light:#efd3a8;
  --tp-shadow-soft:0 12px 30px rgba(13,35,54,.045),0 28px 70px rgba(13,35,54,.06);
  --tp-shadow-raised:0 18px 42px rgba(13,35,54,.085),0 38px 88px rgba(13,35,54,.105);
  --tp-ease:cubic-bezier(.22,1,.36,1);
}
html[data-tyz-theme="dark"] {
  --tp-ink:#f6ecdc;
  --tp-muted:#b5c5d5;
  --tp-muted-strong:#c2d0dc;
  --tp-surface:#142941;
  --tp-surface-soft:#11243a;
  --tp-stroke:rgba(231,196,145,.23);
  --tp-stroke-strong:rgba(237,199,139,.42);
  --tp-champagne:#e4bb83;
  --tp-champagne-light:#f5d6a7;
  --tp-shadow-soft:0 14px 40px rgba(0,5,16,.20);
  --tp-shadow-raised:0 24px 65px rgba(0,5,16,.35);
}
/* 01 / DESIGN RHYTHM AND READABILITY */
:where(#tyz-home-v21,#tyz-site-v1,#tyz-premium-blog,#tyz-premium-article,#tyz-portfolio,#tyz-join)
  :is(h1,h2,h3) {font-kerning:normal;overflow-wrap:break-word;text-wrap:balance;}
:where(#tyz-home-v21,#tyz-site-v1,#tyz-premium-blog,#tyz-premium-article,#tyz-portfolio,#tyz-join)
  :is(p,li) {text-wrap:pretty;}
#tyz-home-v21 :is(.tyz-section-head>p,.tyz-about__copy>p,.tyz-hero__copy>p),
body.tyz-site-v1 :is(.tyz-site-hero p,.tyz-site-section p),
#tyz-premium-blog :is(.tyz-pb-hero__lead,.tyz-pb-section-head p),
#tyz-portfolio .tyz-pb-intro-copy>p {
  text-wrap:pretty;
}
#tyz-home-v21 .tyz-section-head,
#tyz-premium-blog .tyz-pb-section-head,
#tyz-portfolio .tyz-pb-section-head{
  column-gap:clamp(25px,4.5vw,80px);
}
#tyz-home-v21 .tyz-section-head h2 em,
#tyz-home-v21 .tyz-about h2 em,
#tyz-home-v21 .tyz-cta h2 em{
  font-weight:inherit;
  text-decoration-thickness:from-font;
}
/* 02 / HEADER: refined edges and clear active state; do not alter sticky/navigation logic */
#tyz-global-header{border-bottom:1px solid rgba(233,196,142,.20);}
#tyz-global-header.tyz-header--scrolled{
  box-shadow:0 10px 38px rgba(3,15,31,.20),0 1px 0 rgba(249,224,188,.045);
}
#tyz-global-header .tyz-header__nav-list{column-gap:clamp(2px,.45vw,8px);}
#tyz-global-header .tyz-header__link{
  border:1px solid transparent;
  border-radius:12px;
  min-height:40px;
}
#tyz-global-header .tyz-header__link--active{
  border-color:rgba(224,185,131,.16);
  background:rgba(214,175,116,.1);
}
#tyz-global-header .tyz-header__cta{
  border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,249,235,.58),0 12px 29px rgba(4,16,31,.16);
  letter-spacing:.005em;
}
#tyz-global-header :is(.tyz-header__language,.tyz-header__theme-toggle,.tyz-header__burger){
  border-radius:12px;
}
#tyz-global-header :is(a,button):focus-visible{outline:2px solid #f0cc92!important;outline-offset:3px}
/* 03 / HOME: quieter deep-material surfaces, consistent content spacing */
#tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child){
  border:1px solid var(--tp-stroke);
  border-radius:clamp(23px,2.3vw,30px);
  background:linear-gradient(160deg,rgba(255,255,255,.78),rgba(255,251,244,.44)),var(--tp-surface);
  box-shadow:var(--tp-shadow-soft);
}
html[data-tyz-theme="dark"] #tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child){
  background:linear-gradient(150deg,rgba(255,255,255,.032),transparent 66%),var(--tp-surface);
}
#tyz-home-v21 .tyz5-bento-grid .tyz-service:first-child{
  border-radius:clamp(23px,2.3vw,30px);
  box-shadow:0 27px 65px rgba(5,22,40,.22),inset 0 1px rgba(246,216,175,.12);
}
#tyz-home-v21 .tyz-service__icon{
  border:1px solid rgba(191,146,88,.17);
  box-shadow:inset 0 1px rgba(255,255,255,.28);
}
#tyz-home-v21 .tyz5-bento-grid .tyz-service h3{
  letter-spacing:-.025em;
  margin-bottom:clamp(10px,1.3vw,18px);
}
#tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child) h3{color:var(--tp-ink);}
#tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child) p{
  color:var(--tp-muted);
  line-height:1.95;
}
#tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child)>a{
  border-color:var(--tp-stroke);
  color:#946936;
  font-size:clamp(12px,1vw,13px);
}
html[data-tyz-theme="dark"] #tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child)>a{color:var(--tp-champagne-light)}
#tyz-home-v21 .tyz-xp-portfolio-grid{gap:clamp(17px,2.2vw,30px);}
#tyz-home-v21 .tyz-xp-project-card{
  border-color:var(--tp-stroke);
  border-radius:clamp(24px,2.7vw,34px);
  box-shadow:var(--tp-shadow-soft);
}
#tyz-home-v21 .tyz-xp-project-card__copy{
  padding:clamp(25px,3.1vw,44px);
}
#tyz-home-v21 .tyz-xp-project-card__category{
  font-weight:800;letter-spacing:.09em;
}
#tyz-home-v21 .tyz-xp-project-card__copy h3{
  line-height:1.48;letter-spacing:-.028em;
}
#tyz-home-v21 .tyz-xp-project-card__copy p{
  line-height:1.95;color:var(--tp-muted);
}
#tyz-home-v21 .tyz-about-media--v32{
  border:1px solid var(--tp-stroke);
  box-shadow:var(--tp-shadow-raised);
}
#tyz-home-v21 .tyz-about-media--v32 img{display:block;}
#tyz-home-v21 .tyz-about__points>div{
  border-top:1px solid var(--tp-stroke);
  padding-block-start:clamp(17px,1.8vw,24px);
}
#tyz-home-v21 .tyz-hero__actions .tyz-button,
#tyz-home-v21 .tyz-cta__panel .tyz-button{
  border:1px solid rgba(239,210,163,.42);
  box-shadow:inset 0 1px rgba(255,248,232,.48),0 15px 38px rgba(6,24,44,.16);
  font-weight:850;
}
/* 04 / SERVICES: elevated directory and balanced type without affecting links */
body.tyz-site-v1 .tyz5-directory-grid>.tyz5-directory-card:not(.tyz5-directory-card--lead){
  background:linear-gradient(150deg,rgba(255,255,255,.62),transparent 75%),var(--tp-surface);
  border:1px solid var(--tp-stroke);
  border-radius:clamp(23px,2.6vw,33px);
  box-shadow:var(--tp-shadow-soft);
}
html[data-tyz-theme="dark"] body.tyz-site-v1 .tyz5-directory-grid>.tyz5-directory-card:not(.tyz5-directory-card--lead){
  background:linear-gradient(155deg,rgba(255,255,255,.045),transparent 70%),var(--tp-surface);
}
body.tyz-site-v1 .tyz5-directory-card:not(.tyz5-directory-card--lead) h2,
body.tyz-site-v1 .tyz5-directory-heading h2{
  color:var(--tp-ink);
}
body.tyz-site-v1 .tyz5-directory-card:not(.tyz5-directory-card--lead) p,
body.tyz-site-v1 .tyz5-directory-heading>p{
  color:var(--tp-muted);
}
body.tyz-site-v1 .tyz5-directory-card__arrow{
  border-color:var(--tp-stroke);
  background:rgba(219,169,103,.065);
}
body.tyz-site-v1 .tyz5-directory-card:not(.tyz5-directory-card--lead) .tyz-site-link{
  border-top-color:var(--tp-stroke);
  color:#936b3e;
}
html[data-tyz-theme="dark"] body.tyz-site-v1 .tyz5-directory-card:not(.tyz5-directory-card--lead) .tyz-site-link{color:var(--tp-champagne-light)}
body.tyz-site-v1 .tyz5-directory-card--lead{
  box-shadow:0 31px 80px rgba(4,20,35,.23),inset 0 1px rgba(249,223,181,.1)!important;
}
body.tyz-site-v1 .tyz5-directory-outro{
  box-shadow:0 25px 64px rgba(3,18,33,.17),inset 0 1px rgba(245,217,172,.1);
}
body.tyz-site-v1 .tyz-site-card:not(.tyz5-directory-card){
  border-color:var(--tp-stroke);
  border-radius:clamp(20px,2.2vw,29px);
  box-shadow:var(--tp-shadow-soft);
}
/* 05 / PORTFOLIO & BLOG: art-gallery quality cards, not generic tiles */
#tyz-portfolio .tyz-pb-project button,
#tyz-premium-blog .tyz-pb-article-card,
#tyz-premium-blog .tyz-pb-category-card{
  border:1px solid var(--tp-stroke);
  border-radius:clamp(21px,2.4vw,31px);
  box-shadow:var(--tp-shadow-soft);
}
#tyz-portfolio .tyz-pb-project button{
  background:var(--tp-surface);
}
#tyz-portfolio .tyz-pb-card-meta{
  background:var(--tp-surface);
}
#tyz-portfolio .tyz-pb-card-meta h3,
#tyz-premium-blog .tyz-pb-article-card h3{letter-spacing:-.025em;line-height:1.52;}
#tyz-portfolio .tyz-pb-book-cover{
  box-shadow:0 36px 85px rgba(6,24,43,.20),0 0 0 1px rgba(238,207,156,.28);
}
#tyz-premium-blog .tyz-pb-article-card{
  background:var(--tp-surface);
}
#tyz-premium-blog .tyz-pb-category-card{
  background:var(--tp-surface-soft);
}
#tyz-premium-blog .tyz-pb-feature-preview{
  border-color:var(--tp-stroke);
  border-radius:clamp(24px,3vw,39px);
  box-shadow:var(--tp-shadow-raised);
}
/* 06 / CONTACT & CAREERS: consistent field geometry, focus affordance, legibility */
.tyz-contact-panel{
  background:var(--tp-surface);
  border:1px solid var(--tp-stroke-strong);
  border-radius:clamp(24px,3vw,37px);
  box-shadow:var(--tp-shadow-raised);
}
.tyz-contact-intro{
  border-color:rgba(237,198,143,.39);
  box-shadow:0 35px 83px rgba(4,20,38,.22),inset 0 1px rgba(246,227,193,.09);
}
.tyz-contact-fields label>span,
#tyz-join .tj-field>span{
  font-weight:750;
  letter-spacing:0;
}
.tyz-contact-fields :is(input,select,textarea),
#tyz-join .tj-field :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),select,textarea){
  border:1px solid rgba(126,139,153,.35);
  border-radius:14px;
  min-height:54px;
  background:var(--tp-surface-soft);
  color:var(--tp-ink);
  box-shadow:inset 0 1px 2px rgba(7,25,43,.025);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.tyz-contact-fields :is(input,select,textarea)::placeholder,
#tyz-join .tj-field :is(input,textarea)::placeholder{color:#82909e;opacity:1;}
.tyz-contact-fields :is(input,select,textarea):focus,
#tyz-join .tj-field :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),select,textarea):focus{
  outline:0;
  border-color:#bd8b4c;
  background:var(--tp-surface);
  box-shadow:0 0 0 4px rgba(201,153,88,.16),0 6px 19px rgba(13,42,68,.055);
}
#tyz-join .tj-form-panel{
  border-color:var(--tp-stroke);
  box-shadow:var(--tp-shadow-raised);
}
#tyz-join .tj-value-card{
  border-color:var(--tp-stroke);
  border-radius:clamp(22px,2.5vw,30px);
  box-shadow:var(--tp-shadow-soft);
}
#tyz-join .tj-btn-gold,
.tyz-contact-actions button{
  border:1px solid rgba(239,201,143,.45);
  border-radius:14px;
  box-shadow:0 15px 32px rgba(156,109,58,.15),inset 0 1px rgba(255,245,225,.35);
}
html[data-tyz-theme="dark"] .tyz-contact-panel{
  background:var(--tp-surface);
  color:var(--tp-ink);
}
html[data-tyz-theme="dark"] :is(.tyz-contact-fields,#tyz-join .tj-field) :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),select,textarea){
  background:#102339;color:#f6eee2;
  border-color:rgba(215,187,143,.28);
}
html[data-tyz-theme="dark"] :is(.tyz-contact-fields,#tyz-join .tj-field) :is(input,textarea)::placeholder{
  color:#a3b3c2;
}
/* 07 / FINISHING: footer rhythm, focus states and tap targets */
body.tyz-site-v1 .tyz5-site-footer__nav a,
#tyz-home-v21 .tyz-footer__links a{
  text-decoration-thickness:1px;
  text-underline-offset:6px;
  transition:color .22s ease;
}
body.tyz-site-v1 .tyz5-site-footer__nav a:is(:hover,:focus-visible),
#tyz-home-v21 .tyz-footer__links a:is(:hover,:focus-visible){color:var(--tp-champagne-light);}
:where(#tyz-home-v21,#tyz-site-v1,#tyz-premium-blog,#tyz-premium-article,#tyz-portfolio,#tyz-join)
  :is(a,button,summary,input,select,textarea):focus-visible{
  outline:2px solid var(--tp-champagne-light)!important;outline-offset:3px;
}
@media(hover:hover) and (pointer:fine){
  #tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child):hover,
  #tyz-home-v21 .tyz-xp-project-card:hover,
  #tyz-portfolio .tyz-pb-project button:hover,
  #tyz-premium-blog .tyz-pb-article-card:hover,
  body.tyz-site-v1 .tyz5-directory-grid>.tyz5-directory-card:not(.tyz5-directory-card--lead):hover{
    border-color:var(--tp-stroke-strong);
    box-shadow:var(--tp-shadow-raised);
  }
}
/* 08 / Responsive: soften radius and keep tap-friendly fields and no horizontal scroll. */
@media(max-width:760px){
  #tyz-home-v21 .tyz5-bento-grid .tyz-service:not(:first-child),
  #tyz-home-v21 .tyz-xp-project-card,
  body.tyz-site-v1 .tyz5-directory-grid>.tyz5-directory-card:not(.tyz5-directory-card--lead),
  #tyz-premium-blog .tyz-pb-article-card,
  #tyz-portfolio .tyz-pb-project button{border-radius:22px;}
  #tyz-home-v21 .tyz-xp-portfolio-grid{gap:16px;}
  .tyz-contact-panel{border-radius:23px;}
  .tyz-contact-fields :is(input,select,textarea),
  #tyz-join .tj-field :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),select,textarea){
    font-size:16px;max-width:100%;
  }
}
@media(prefers-reduced-motion:reduce){
  #tyz-global-header .tyz-header__link,
  .tyz-contact-fields :is(input,select,textarea),
  #tyz-join .tj-field :is(input,select,textarea){transition:none!important;}
}
@media print{
  #tyz-home-v21 .tyz-service,
  #tyz-home-v21 .tyz-xp-project-card,
  body.tyz-site-v1 .tyz-site-card,
  .tyz-contact-panel{box-shadow:none!important;}
}
