/* ------------ Tusker Grotesk (files in /fonts) ------------ */
@font-face{
  font-family:"Tusker Grotesk";
  src:url("./fonts/TuskerGrotesk-5500Medium.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Tusker Grotesk";
  src:url("./fonts/TuskerGrotesk-5700Bold.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Tusker Grotesk";
  src:url("./fonts/TuskerGrotesk-5800Super.woff2") format("woff2");
  font-weight:800; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Athiti";
  src:url("./fonts/Athiti-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

/* ------------ Tokens ------------ */
:root{
  --black:#000; --white:#fff;

  --font-display:"Tusker Grotesk", sans-serif;
  --font-body:"Roboto","Helvetica Neue",Arial,sans-serif;

  --fs-nav:20px;
  --fs-body:20px;
  --fs-name:160px;
  --fs-discipline:30px;

  --lh-tight:1.11539;
  --ls-4pct:0.04em;
  --ls-logo:0.15em;
  --ls-logo-adjusted:calc(var(--ls-logo) - 0.02em);
  --ls-name:6.4px;

  --stroke-name:3.5px;
  --stroke-nav:1.5px;

  --container-max:1360px;
  --gap-3:32px; --gap-4:48px; --gap-5:64px;

  /* Position controls */
  --desc-shift-x:0px;  --desc-shift-y:0px;
  --photo-shift-x:0px; --photo-rise-y:20px;
  --name-shift-x:-215px; --name-shift-y:-29px;
  --disc-shift-x:-30px;  --disc-shift-y:13px;

  /* About sizes (Figma) */
  --about-photo-w:604.103px;
  --about-text-w:406px;
  --about-gap:64px;

  /* Portfolio overview */
  --portfolio-gap:70px;
  --portfolio-title-gap:20px;

  /* Project detail */
  --project-columns-gap:32px;
  --project-header-row-gap:28px;
  --project-note-max:240px;

  /* MMK side-facts fine nudge */
  --project-note-top:10px;
}

/* ------------ Base ------------ */
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--white); color:var(--black);
  font:var(--fs-body)/var(--lh-tight) var(--font-body);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
.container{max-width:var(--container-max); margin-inline:auto; padding-inline:24px}
.section{padding-block:var(--gap-5)}

/* ------------ Header ------------ */
.site-header{ padding-block:24px; }
.header-grid{
  display:flex; align-items:center; justify-content:space-between; gap:0;
  flex-wrap:nowrap;
}
.homewordmark{
  font:700 var(--fs-nav)/1.05 "Tusker Grotesk";
  letter-spacing:var(--ls-logo-adjusted);
  text-transform:uppercase;
  color:var(--black);
}
.homewordmark > span,
.homewordmark .thai-switch{
  display:block;
}
.homewordmark > span + span,
.homewordmark .thai-switch + span{
  margin-top:0.12em;
}

.header-link{
  font:500 var(--fs-nav)/var(--lh-tight) "Tusker Grotesk";
  letter-spacing:var(--ls-4pct);
  text-transform:uppercase;
  color:var(--black);
}
.header-link:hover{ opacity:.85 }

.header-link[aria-current="page"]{
  color:transparent;
  text-shadow:
     1px  0   0 #000, -1px  0   0 #000,
     0    1px 0 #000,  0   -1px 0 #000,
     1px  1px 0 #000, -1px -1px 0 #000,
     1px -1px 0 #000, -1px  1px 0 #000;
}
@supports (-webkit-text-stroke: 1px black){
  .header-link[aria-current="page"]{
    text-shadow:none;
    -webkit-text-fill-color:transparent;
    -webkit-text-stroke:var(--stroke-nav) var(--black);
    color:transparent;
  }
}
@media (max-width:600px){
  .header-grid{ flex-wrap:wrap; row-gap:12px }
  .homewordmark{ width:100% }
}

/* ------------ Hero (home) ------------ */
.hero{ padding-block:var(--gap-5) }
.hero-grid{
  display:grid;
  gap:var(--gap-4);
  align-items:start;
  grid-template-columns:minmax(320px, 560px) minmax(0, 1fr);
}
.hero-left,
.hero-right{
  min-width:0;
}
.hero-left{ position:relative }
.desc{
  width:351px; max-width:100%;
  margin:0 0 var(--gap-3) 0;
  font:400 20px/1.09 var(--font-body);
  color:#000; position:relative; z-index:1;
  transform:translate(var(--desc-shift-x), var(--desc-shift-y));
}

.hero-photo{
  width:514px; height:auto; display:block; position:relative; z-index:3;
  transform:translate(var(--photo-shift-x), var(--photo-rise-y));
}

/* ------------ Hero Slider ------------ */
.hero-slider{
  width:min(514px, 100%);
  aspect-ratio:1 / 1;
  position:relative;
  z-index:3;
  transform:translate(var(--photo-shift-x), var(--photo-rise-y));
  overflow:hidden;
}

.slider-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 0.8s ease-in-out;
}

.slider-image.is-active{
  opacity:1;
}

/* ------------ Big name ------------ */
.name-outline,
h1.name-outline{
  max-width:927px; margin:0 0 40px 0;
  font:800 var(--fs-name)/var(--lh-tight) "Tusker Grotesk";
  letter-spacing:var(--ls-name); text-transform:uppercase; color:transparent !important;
  position:relative; z-index:4;
  transform:translate(var(--name-shift-x), var(--name-shift-y));
  text-shadow:
     1px  0   0 #000, -1px  0   0 #000,
     0    1px 0 #000,  0   -1px 0 #000,
     1px  1px 0 #000, -1px -1px 0 #000,
     1px -1px 0 #000, -1px  1px 0 #000;
}
.name-outline span{ display:block }
@supports (-webkit-text-stroke: 1px black){
  .name-outline,
  h1.name-outline{
    text-shadow:none;
    -webkit-text-fill-color:transparent !important;
    -webkit-text-stroke:var(--stroke-name) var(--black);
    paint-order:stroke fill;
    transform:scale(0.96) translate(var(--name-shift-x), var(--name-shift-y));
    color:transparent !important;
  }
}

/* ------------ Shared headline style ------------ */
.about-headline, .work-title, .project-title{
  font:700 30px/1.11539 "Tusker Grotesk";
  letter-spacing:1.2px; text-transform:uppercase; color:#000;
}
.about-headline{ margin:0 0 16px 0 }
.work-title, .project-title{ margin:0 }

/* ------------ About page ------------ */
.about-grid{
  display:grid;
  grid-template-columns:minmax(0, var(--about-photo-w)) minmax(0, var(--about-text-w));
  gap:var(--about-gap); align-items:start;
}
.about-photo{
  width:min(100%, var(--about-photo-w));
  aspect-ratio:9/16; object-fit:cover; height:auto;
}
.about-right{ max-width:var(--about-text-w) }
.about-body{ font:400 20px/1.09 var(--font-body); color:#000 }
.about-body p{ margin:0 0 16px 0 }

/* ------------ Portfolio overview ------------ */
.portfolio-grid{
  list-style:none; padding:0; margin:0;
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
  gap:var(--portfolio-gap); align-items:start;
}
.work{ margin:0 }
.work-card{ display:grid; gap:var(--portfolio-title-gap); text-decoration:none; outline:none }
.work-thumb{ width:100%; aspect-ratio:1/1; overflow:hidden; display:block }
.work-thumb img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1); transition:transform 300ms ease; display:block;
}
@media (hover:hover){
  .work-card:hover .work-thumb img,
  .work-card:focus .work-thumb img{ transform:scale(1.06) }
}
@media (prefers-reduced-motion:reduce){
  .work-thumb img{ transition:none }
}

/* ------------ About page content additions ------------ */
.about-name{
  margin:0 0 20px 0;
  font:700 30px/1.1 "Tusker Grotesk";
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#000;
}

.about-block{
  margin-top:32px;
}

.about-subheadline{
  margin:28px 0 12px 0;
  font-family:"Tusker Grotesk", sans-serif;
  font-weight:500;
  font-size:var(--fs-nav);
  line-height:var(--lh-tight);
  letter-spacing:var(--ls-4pct);
  text-transform:uppercase;
  color:#000;
}

.about-list{
  margin:0;
  padding-left:20px;
}

.about-list li{
  margin:0 0 8px 0;
}

.about-entry{
  margin-bottom:18px;
}

.about-entry p{
  margin:0;
}

.about-date{
  font-weight:700;
  margin-bottom:4px !important;
}

/* ------------ Download blocks (About + Portfolio) ------------ */
.cv-download,
.portfolio-download{
  margin-top:48px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  width:100%;
  text-align:center;
}

.portfolio-download{
  margin-top:64px;
}

.cv-download-text{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Tusker Grotesk", sans-serif;
  font-weight:500;
  font-size:var(--fs-nav);
  line-height:1;
  letter-spacing:var(--ls-4pct);
  text-transform:uppercase;
  color:#000;
  transform:translateY(1px);
}

.cv-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:0;
  min-height:0;
  height:40px;
  padding:0 18px;
  border-radius:10px;
  background:#000;
  color:#fff;
  font-family:"Tusker Grotesk", sans-serif;
  font-weight:500;
  font-size:var(--fs-nav);
  line-height:1;
  letter-spacing:var(--ls-4pct);
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  white-space:nowrap;
  transition:transform .25s ease, opacity .25s ease;
}

.cv-download-btn span{
  display:block;
  transform:translateY(-1px);
}

/* Default hover like contact button */
.cv-download-btn:hover,
.cv-download-btn:focus{
  transform:scale(1.05);
}

/* About-specific optical alignment */
.about-page .cv-download{
  align-items:center;
}

.about-page .cv-download-btn{
  transform:translateY(-3px);
}

.about-page .cv-download-btn:hover,
.about-page .cv-download-btn:focus{
  transform:translateY(-3px) scale(1.05);
}

/* etwas mehr Luft unten auf der About-Seite */
.about-page .section{
  padding-bottom:120px;
}

/* ------------ Project detail ------------ */
.project-header{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:var(--project-columns-gap);
  row-gap:var(--project-header-row-gap);
  align-items:start;
  margin-bottom:24px;
}
.project-title{ grid-column:1 / -1 }
.project-lede{
  grid-column:1; align-self:start;
  max-width:630px;
  font:400 20px/1.09 var(--font-body);
  color:#000;
}
.project-lede.outline p{
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke:5px #000;
  color:transparent;
}
.project-note{
  grid-column:2; align-self:start;
  justify-self:end; text-align:right;
  max-width:var(--project-note-max);
  font:italic 16px/1.4 var(--font-body); color:#000;
  margin-top:var(--project-note-top);
}

/* Heroes + gallery */
.project-hero{ margin:24px 0 48px }
.project-hero-img{ width:100%; height:auto; display:block }
.project-gallery{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--project-columns-gap);
}
.project-gallery figure{ margin:0 }
.project-gallery .span-2{ grid-column:1 / -1 }
.project-gallery .square{ aspect-ratio:1/1; overflow:hidden }
.project-gallery .square img{ width:100%; height:100%; object-fit:cover }

/* Hover zoom (hero + gallery) */
.zoom{ overflow:hidden }
.zoom img{ transform:scale(1); transition:transform 300ms ease }
@media (hover:hover){
  .zoom:hover img, .zoom:focus-within img{ transform:scale(1.05) }
}
@media (prefers-reduced-motion:reduce){
  .zoom img{ transition:none }
}

/* ------------ Contact page layout ------------ */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:var(--project-columns-gap);
  align-items:start;
}
.contact-left{ max-width:var(--about-text-w) }
.contact-intro p{ margin:0 0 16px 0 }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px;
  border-radius:10px; background:var(--black); color:var(--white);
  margin-top:16px; border:0; cursor:pointer; text-decoration:none;
  transition:transform .25s ease;
}
.icon-btn:hover,
.icon-btn:focus{ transform:scale(1.15) }
.icon-btn svg{ width:28px; height:28px }
.contact-right{ width:100%; margin-top:0; padding-top:6px }
.form-label{
  display:block; margin:28px 0 12px 0;
  font-family:"Tusker Grotesk", sans-serif; font-weight:500;
  font-size:var(--fs-nav); line-height:var(--lh-tight);
  letter-spacing:var(--ls-4pct); text-transform:uppercase;
}
.form-input,.form-textarea{
  width:100%; border:2px solid var(--black);
  font:400 var(--fs-body)/1.1 var(--font-body);
  color:var(--black); padding:8px 12px; background:#fff;
  margin-bottom:18px;
}
.form-input{ height:40px }
.form-textarea{ height:160px; resize:vertical; min-height:160px }
.form-input::placeholder,.form-textarea::placeholder{ color:rgba(0,0,0,.5) }

/* ------------ Responsive ------------ */
@media (max-width:1200px){
  :root{
    --fs-name:clamp(72px,10vw,140px);
    --stroke-name:3px;
    --photo-shift-x:0px;
    --photo-rise-y:0px;
    --desc-shift-x:0px;
    --desc-shift-y:0px;
    --name-shift-x:0px;
    --name-shift-y:0px;
    --disc-shift-x:0px;
    --disc-shift-y:0px;
  }
  .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-slider{
    width:min(420px, 90vw);
    aspect-ratio:1 / 1;
  }
  .about-grid{ grid-template-columns:1fr; gap:32px }
  .about-photo{ width:min(100%,420px); margin-inline:0 }
  .about-right{ max-width:600px }
}

@media (max-width:900px){
  .about-page .section{
    padding-bottom:80px;
  }

  .about-name{
    font-size:24px;
  }

  .about-subheadline{
    font-size:16px;
  }

  .cv-download-text{
    font-size:16px;
    line-height:1;
    transform:translateY(1px);
  }

  .cv-download-btn{
    height:36px;
    padding:0 14px;
    border-radius:10px;
    font-size:16px;
    line-height:1;
    min-width:0;
    min-height:0;
  }

  .cv-download-btn span{
    transform:translateY(-1px);
  }

  .about-page .cv-download-btn{
    transform:translateY(-2px);
  }

  .about-page .cv-download-btn:hover,
  .about-page .cv-download-btn:focus{
    transform:translateY(-2px) scale(1.15);
  }

  .portfolio-grid{ grid-template-columns:1fr; gap:40px }
  .project-header{ grid-template-columns:1fr }
  .project-note{ grid-column:1; text-align:left; justify-self:start }
  .project-gallery{ grid-template-columns:1fr }
  .contact-grid{ grid-template-columns:1fr; row-gap:32px }
  .contact-left{ max-width:600px }
  .contact-right{ width:100% }
  .legal-content{ width:100%; max-width:none }
  .contact-page .section{ padding-bottom:96px; }
}

@media (max-width:600px){
  :root{
    --fs-nav:16px; --fs-discipline:22px;
    --stroke-name:2.5px;
    --photo-shift-x:0px;
    --photo-rise-y:0px;
    --desc-shift-x:0px;
    --desc-shift-y:0px;
    --name-shift-x:0px;
    --name-shift-y:0px;
    --disc-shift-x:0px;
    --disc-shift-y:0px;
  }
  .desc{
    width:100%;
  }
  .hero-slider{
    width:min(100%, 90vw);
    aspect-ratio:1 / 1;
  }

  .cv-download,
  .portfolio-download{
    flex-direction:column;
    gap:10px;
  }
}

/* ------------ Footer ------------ */
.site-footer{
  border-top:2px solid var(--black);
  padding:16px 0;
  margin-top:48px;
  font:400 var(--fs-body)/var(--lh-tight) var(--font-body);
}
.footer-grid{ display:flex; gap:32px }
.site-footer a:hover{ opacity:.85 }

/* ------------ Legal pages ------------ */
.legal-page{}
.legal-content{
  width:50%;
  max-width:680px;
  text-align:left;
}

/* Hero subhead ------------ */
.hero .discipline{
  font-family:"Tusker Grotesk", sans-serif;
  font-weight:700; font-size:var(--fs-discipline);
  line-height:var(--lh-tight); letter-spacing:var(--ls-4pct);
  text-transform:uppercase; color:#000;
}

/* --- Contact page: mehr Abstand zum Footer --- */
.contact-page .section{
  padding-bottom:160px;
}

/* Visually hidden H1 */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Name as SVG */
.name-svg{
  max-width:927px;
  margin:0 0 40px 0;
  position:relative; z-index:4;
  transform:translate(var(--name-shift-x), var(--name-shift-y));
}
.name-svg-img{ width:100%; height:auto; display:block }

@supports (-webkit-text-stroke: 1px black){
  .name-svg{
    transform:scale(0.96) translate(var(--name-shift-x), var(--name-shift-y));
  }
}

/* ------------ Thai hover swap ------------ */
.thai-switch{
  position:relative;
  display:block;
  min-height:1em;
}

.thai-switch .latin,
.thai-switch .thai{
  display:block;
  transition:opacity 0.25s ease;
}

.thai-switch .latin{
  opacity:1;
}

.thai-switch .thai{
  position:absolute;
  inset:0;
  opacity:0;
  font-family:"Athiti", sans-serif;
  font-weight:700;
  letter-spacing:0.02em;
  line-height:1.15;
  white-space:nowrap;
  transform:translateX(0.08em);
}

.homewordmark:hover .latin,
.homewordmark:focus-visible .latin{
  opacity:0;
}

.homewordmark:hover .thai,
.homewordmark:focus-visible .thai{
  opacity:1;
}
