/*
Theme Name: Koyo Portfolio
Author: OpenAI for Koyo Sekiguchi
Description: A responsive Japanese, English, and Spanish portfolio theme with one-click editable starter pages.
Version: 1.1.0
Requires at least: 6.4
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: koyo-portfolio
Tags: portfolio, block-styles, custom-colors, full-width-template, translation-ready
*/

:root {
  --koyo-canvas: #f2efe7;
  --koyo-ink: #111214;
  --koyo-vermilion: #d94b36;
  --koyo-vermilion-hover: #bd3e2d;
  --koyo-secondary: #5d5a54;
  --koyo-hairline: #c9c4ba;
  --koyo-grid: #dcd6cb;
  --koyo-focus: #8f2f23;
  --koyo-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --koyo-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--koyo-canvas);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.46), transparent 30%),
    var(--koyo-canvas);
  color: var(--koyo-ink);
  font-family: var(--koyo-sans);
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--koyo-focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--koyo-ink);
  color: var(--koyo-canvas);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding-inline: max(28px, env(safe-area-inset-left));
  background: rgba(242, 239, 231, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) auto minmax(245px, 1fr);
  align-items: center;
  width: min(100%, 1440px);
  height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--koyo-hairline);
}

.wordmark {
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.desktop-nav {
  display: flex;
  gap: clamp(28px, 3.6vw, 58px);
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--koyo-vermilion);
  transition: transform 180ms ease-out;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-switch {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: flex-end;
}

.language-switch a {
  position: relative;
  display: grid;
  min-width: 34px;
  min-height: 44px;
  padding: 0 3px;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
}

.language-switch a + a::before {
  position: absolute;
  top: 12px;
  left: -14px;
  width: 1px;
  height: 20px;
  content: "";
  background: var(--koyo-hairline);
}

.language-switch a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--koyo-vermilion);
  transition: transform 160ms ease-out;
}

.language-switch a.active {
  color: var(--koyo-vermilion);
}

.language-switch a.active::after {
  transform: scaleX(1);
}

.lang-mobile,
.menu-button,
.mobile-menu {
  display: none;
}

.portfolio-page {
  padding-inline: max(28px, env(safe-area-inset-left));
}

.portfolio-page > *,
.portfolio-page .wp-block-group,
.portfolio-page p,
.portfolio-page h1,
.portfolio-page h2,
.portfolio-page h3,
.portfolio-page h4 {
  margin-block-start: 0;
  margin-block-end: 0;
}

.portfolio-page .wp-block-group,
.portfolio-page .wp-block-buttons {
  max-width: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(40px, 5vw, 76px);
  width: min(100%, 1384px);
  min-height: 654px;
  margin: 0 auto;
  padding: 84px 52px 58px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.eyebrow,
.section-label {
  margin: 0 0 34px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--koyo-serif);
  font-size: clamp(49px, 5.25vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.34;
  text-wrap: balance;
}

.koyo-language-en .hero-title,
.koyo-language-es .hero-title {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4.55vw, 68px);
  line-height: 1.15;
}

.hero-support {
  max-width: 620px;
  margin: 30px 0 0 !important;
  color: var(--koyo-secondary);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 24px;
  margin-top: 30px !important;
}

.hero-actions .wp-block-button {
  margin: 0;
}

.hero-actions .wp-block-button__link {
  display: flex;
  width: min(252px, 100%);
  min-height: 60px;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--koyo-ink);
  border-radius: 0;
  background: transparent;
  color: var(--koyo-ink);
  font-size: 16px;
  font-weight: 550;
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.hero-actions .wp-block-button__link::after {
  margin-left: 24px;
  content: "→";
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease-out;
}

.hero-actions .wp-block-button__link:hover::after,
.hero-actions .wp-block-button__link:focus-visible::after {
  transform: translateX(4px);
}

.hero-actions .button-primary .wp-block-button__link {
  border-color: var(--koyo-vermilion);
  background: var(--koyo-vermilion);
  color: var(--koyo-canvas);
}

.hero-actions .button-primary .wp-block-button__link:hover {
  border-color: var(--koyo-vermilion-hover);
  background: var(--koyo-vermilion-hover);
}

.hero-actions .button-secondary .wp-block-button__link:hover {
  background: var(--koyo-ink);
  color: var(--koyo-canvas);
}

.hero-art {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.drafting-graphic {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1.1;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 112px, rgba(201, 196, 186, 0.65) 113px 114px),
    repeating-linear-gradient(90deg, transparent 0 138px, rgba(201, 196, 186, 0.65) 139px 140px);
}

.drafting-graphic::before,
.drafting-graphic::after {
  position: absolute;
  content: "";
}

.drafting-graphic::before {
  top: 9%;
  left: 57%;
  width: 55%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 18, 20, 0.65);
  border-radius: 50%;
}

.drafting-graphic::after {
  top: 8%;
  bottom: 5%;
  left: 55%;
  width: 1px;
  transform: rotate(46deg);
  background: repeating-linear-gradient(to bottom, var(--koyo-ink) 0 8px, transparent 8px 15px);
  opacity: 0.55;
}

.draft-circle,
.draft-axis,
.draft-disc,
.draft-label {
  position: absolute;
  display: block;
}

.draft-circle {
  border: 1px solid rgba(17, 18, 20, 0.65);
  border-radius: 50%;
}

.circle-one {
  top: 50%;
  left: 16%;
  width: 32%;
  aspect-ratio: 1;
  border-style: dashed;
}

.circle-two {
  right: 9%;
  bottom: 10%;
  width: 27%;
  aspect-ratio: 1;
}

.circle-three {
  top: 58%;
  left: 45%;
  width: 20%;
  aspect-ratio: 1;
  border-color: transparent;
  border-top-color: rgba(17, 18, 20, 0.65);
}

.axis-one {
  top: 64%;
  right: 3%;
  left: 4%;
  height: 1px;
  background: rgba(17, 18, 20, 0.65);
}

.axis-two {
  top: 5%;
  bottom: 4%;
  left: 57%;
  width: 1px;
  background: rgba(17, 18, 20, 0.65);
}

.draft-disc {
  top: 34%;
  right: 18%;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--koyo-vermilion);
}

.draft-label {
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.label-one {
  top: 55%;
  left: 32%;
}

.label-two {
  right: 4%;
  bottom: 24%;
}

.proof-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 1fr;
  width: min(100%, 1384px);
  min-height: 104px;
  margin: 0 auto;
  border-top: 1px solid var(--koyo-hairline);
  border-bottom: 1px solid var(--koyo-hairline);
}

.proof-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 2.5vw, 42px);
  align-items: center;
  padding: 20px 52px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--koyo-hairline);
}

.proof-number {
  padding-right: clamp(22px, 2vw, 38px);
  border-right: 1px solid var(--koyo-hairline);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.proof-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.profile-slice {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(60px, 8vw, 140px);
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 140px 52px;
}

.profile-slice h2 {
  max-width: 580px;
  font-family: var(--koyo-serif);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.profile-copy-text {
  margin: 50px 0 0 !important;
  color: var(--koyo-secondary);
  font-size: 18px;
  line-height: 2;
}

.current-card {
  margin-top: 56px !important;
  padding: 28px 0 0 30px;
  border-top: 1px solid var(--koyo-ink);
  border-left: 4px solid var(--koyo-vermilion);
}

.current-label {
  margin-bottom: 18px !important;
  color: var(--koyo-vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.current-card h3 {
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
}

.current-card > p:last-child {
  margin-top: 12px !important;
  color: var(--koyo-secondary);
  font-size: 15px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: start;
}

.section-heading-row > .section-label {
  margin: 12px 0 0 !important;
}

.section-heading-row h2,
.skills-intro h2,
.vision-copy h2,
.contact-section h2 {
  font-family: var(--koyo-serif);
  font-size: clamp(40px, 4.35vw, 66px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.42;
  text-wrap: balance;
}

.koyo-language-en .section-heading-row h2,
.koyo-language-es .section-heading-row h2,
.koyo-language-en .skills-intro h2,
.koyo-language-es .skills-intro h2,
.koyo-language-en .vision-copy h2,
.koyo-language-es .vision-copy h2,
.koyo-language-en .contact-section h2,
.koyo-language-es .contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
}

.journey-section {
  width: min(100%, 1384px);
  margin: 0 auto;
  padding: 132px 52px 140px;
  background: var(--koyo-ink);
  color: var(--koyo-canvas);
}

.journey-section .section-intro {
  max-width: 720px;
  margin: 30px 0 0 !important;
  color: rgba(242, 239, 231, 0.7);
  font-size: 18px;
  line-height: 1.9;
}

.journey-list {
  width: min(100%, 950px);
  margin: 92px 0 0 auto !important;
  border-top: 1px solid rgba(242, 239, 231, 0.32);
}

.journey-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 34px;
  padding: 42px 0 46px;
  border-bottom: 1px solid rgba(242, 239, 231, 0.32);
}

.journey-number {
  color: var(--koyo-vermilion);
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.journey-marker {
  margin: 0 0 18px !important;
  color: rgba(242, 239, 231, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-copy h3 {
  font-family: var(--koyo-serif);
  font-size: clamp(25px, 2.5vw, 35px);
  font-weight: 500;
}

.koyo-language-en .journey-copy h3,
.koyo-language-es .journey-copy h3 {
  font-family: Georgia, serif;
}

.journey-text {
  max-width: 760px;
  margin: 18px 0 0 !important;
  color: rgba(242, 239, 231, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.experience-section {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 148px 52px;
}

.compact-heading {
  align-items: end;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 90px !important;
  border-top: 1px solid var(--koyo-ink);
  border-bottom: 1px solid var(--koyo-ink);
}

.experience-card {
  min-width: 0;
  padding: 34px 34px 52px;
}

.experience-card + .experience-card {
  border-left: 1px solid var(--koyo-hairline);
}

.experience-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--koyo-vermilion);
}

.experience-number {
  font-family: Georgia, serif;
  font-size: 32px;
}

.experience-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin-top: 74px !important;
  font-family: var(--koyo-serif);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.55;
}

.koyo-language-en .experience-card h3,
.koyo-language-es .experience-card h3 {
  font-family: Georgia, serif;
  line-height: 1.18;
}

.experience-text {
  margin-top: 24px !important;
  color: var(--koyo-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.projects-section {
  width: min(100%, 1384px);
  margin: 0 auto;
  padding: 138px 52px 148px;
  border-top: 1px solid var(--koyo-hairline);
  background: rgba(255, 255, 255, 0.32);
}

.projects-section .section-intro {
  max-width: 720px;
  margin-top: 28px !important;
  color: var(--koyo-secondary);
  font-size: 17px;
  line-height: 1.9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 84px !important;
  border-top: 1px solid var(--koyo-ink);
  border-bottom: 1px solid var(--koyo-ink);
}

.project-card {
  display: flex;
  min-width: 0;
  min-height: 520px;
  padding: 30px 32px 36px;
  flex-direction: column;
}

.project-card + .project-card {
  border-left: 1px solid var(--koyo-hairline);
}

.project-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--koyo-vermilion);
}

.project-number {
  font-family: Georgia, serif;
  font-size: 30px;
}

.project-type {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 64px !important;
  font-family: var(--koyo-serif);
  font-size: clamp(25px, 2.25vw, 33px);
  font-weight: 600;
  line-height: 1.5;
}

.koyo-language-en .project-card h3,
.koyo-language-es .project-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

.project-text {
  margin-top: 24px !important;
  color: var(--koyo-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.project-outcome {
  margin-top: auto !important;
  padding-top: 28px;
  border-top: 1px solid var(--koyo-hairline);
}

.project-outcome-label {
  color: var(--koyo-vermilion);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-outcome-text {
  margin-top: 10px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.skills-section {
  width: min(100%, 1384px);
  margin: 0 auto;
  padding: 138px 104px 148px;
  background: #e7e2d7;
}

.skills-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 130px);
}

.skills-intro .section-label {
  margin-top: 12px !important;
}

.skill-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 104px 0 0 24% !important;
  border-top: 1px solid var(--koyo-ink);
  border-left: 1px solid var(--koyo-hairline);
}

.skill-card {
  min-height: 264px;
  padding: 28px 34px 42px;
  border-right: 1px solid var(--koyo-hairline);
  border-bottom: 1px solid var(--koyo-hairline);
}

.skill-number {
  color: var(--koyo-vermilion);
  font-family: Georgia, serif;
  font-size: 24px;
}

.skill-card h3 {
  margin-top: 48px !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.skill-card > p:last-child {
  margin-top: 16px !important;
  color: var(--koyo-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.language-panel {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 72px;
  margin-top: 112px !important;
  padding-top: 38px;
  border-top: 1px solid var(--koyo-ink);
}

.language-intro h3 {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.language-intro > p {
  max-width: 310px;
  margin-top: 20px !important;
  color: var(--koyo-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.language-row {
  display: grid;
  grid-template-columns: 0.28fr 0.72fr;
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid var(--koyo-hairline);
}

.language-row h4 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.language-detail {
  display: grid;
  gap: 6px;
}

.language-level {
  font-size: 14px;
}

.language-evidence {
  color: var(--koyo-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.vision-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(60px, 8vw, 150px);
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 150px 52px;
  align-items: center;
}

.vision-orbit {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border: 1px solid var(--koyo-ink);
  border-radius: 50%;
}

.vision-orbit::before,
.vision-orbit::after {
  position: absolute;
  content: "";
}

.vision-orbit::before {
  top: 50%;
  right: -12%;
  left: -12%;
  border-top: 1px solid var(--koyo-hairline);
}

.vision-orbit::after {
  top: -12%;
  bottom: -12%;
  left: 50%;
  border-left: 1px solid var(--koyo-hairline);
}

.vision-orbit span {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  border: 4px solid var(--koyo-canvas);
  border-radius: 50%;
  background: var(--koyo-vermilion);
}

.vision-orbit span:nth-child(1) { top: 11%; left: 21%; }
.vision-orbit span:nth-child(2) { top: 49%; right: -9px; }
.vision-orbit span:nth-child(3) { bottom: 10%; left: 30%; }

.vision-text {
  margin-top: 34px !important;
  color: var(--koyo-secondary);
  font-size: 17px;
  line-height: 2;
}

.vision-tags {
  display: flex;
  gap: 10px;
  margin-top: 38px !important;
  flex-wrap: wrap;
}

.vision-tag {
  padding: 9px 14px;
  border: 1px solid var(--koyo-hairline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(80px, 10vw, 180px);
  width: min(100%, 1384px);
  margin: 0 auto;
  padding: 128px 104px;
  background: var(--koyo-ink);
  color: var(--koyo-canvas);
}

.contact-section .section-label {
  color: var(--koyo-vermilion);
}

.contact-text {
  margin-top: 46px !important;
  color: rgba(242, 239, 231, 0.7);
  font-size: 16px;
  line-height: 1.9;
}

.contact-status {
  display: flex;
  gap: 12px;
  margin-top: 38px !important;
  align-items: center;
  color: rgba(242, 239, 231, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact-status::before {
  display: block;
  width: 9px;
  height: 9px;
  content: "";
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--koyo-vermilion);
}

.contact-links {
  margin-top: 42px !important;
  border-top: 1px solid rgba(242, 239, 231, 0.32);
}

.contact-link-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 18px 0;
  align-items: center;
  border-bottom: 1px solid rgba(242, 239, 231, 0.32);
}

.contact-link-label {
  color: var(--koyo-vermilion);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.contact-link-value {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-link-value a {
  display: inline;
  border-bottom: 1px solid rgba(242, 239, 231, 0.5);
  overflow-wrap: anywhere;
}

.back-top {
  margin-top: 68px !important;
}

.back-top a {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(242, 239, 231, 0.5);
  font-size: 13px;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 56px), 1384px);
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  color: var(--koyo-secondary);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standard-content {
  width: min(calc(100% - 40px), 860px);
  min-height: 60vh;
  margin: 0 auto;
  padding: 96px 0;
  font-size: 17px;
  line-height: 1.8;
}

.standard-content h1 {
  font-family: var(--koyo-serif);
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(190px, 1fr) auto minmax(180px, 1fr);
  }

  .desktop-nav { gap: 22px; }
  .language-switch { gap: 18px; }
  .language-switch a + a::before { left: -10px; }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    padding-inline: 24px;
  }

  .proof-item { padding-inline: 24px; }

  .journey-section,
  .experience-section,
  .projects-section,
  .skills-section,
  .vision-section,
  .contact-section {
    padding-inline: 42px;
  }

  .experience-card { padding-inline: 24px; }
  .skill-group-grid { margin-left: 12% !important; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 74px; }

  .site-header,
  .portfolio-page {
    padding-inline: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    height: 68px;
  }

  .wordmark { font-size: clamp(22px, 7vw, 27px); }
  .desktop-nav { display: none; }
  .language-switch { gap: 10px; }

  .language-switch a {
    min-width: 30px;
    padding-inline: 0;
    font-size: 12px;
  }

  .lang-full { display: none; }
  .lang-mobile { display: inline; }
  .language-switch a + a::before { display: none; }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
    place-content: center;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 4px 0;
    background: var(--koyo-ink);
    transition: transform 180ms ease-out;
  }

  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .mobile-menu {
    position: absolute;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: var(--koyo-canvas);
    opacity: 0;
    transition: max-height 240ms ease-out, opacity 180ms ease-out, padding 240ms ease-out;
  }

  .mobile-menu.open {
    max-height: 360px;
    padding-block: 18px 28px;
    border-bottom: 1px solid var(--koyo-hairline);
    opacity: 1;
  }

  .mobile-menu a {
    display: grid;
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
    align-items: center;
    border-bottom: 1px solid var(--koyo-hairline);
    font-family: var(--koyo-serif);
    font-size: 22px;
  }

  .mobile-menu a span {
    color: var(--koyo-vermilion);
    font-family: Georgia, serif;
    font-size: 12px;
  }

  .hero {
    display: flex;
    min-height: 0;
    padding: 56px 0 48px;
    flex-direction: column;
    gap: 30px;
  }

  .eyebrow {
    margin-bottom: 24px !important;
    font-size: 10px;
    line-height: 1.5;
  }

  .hero-title,
  .koyo-language-en .hero-title,
  .koyo-language-es .hero-title {
    font-size: clamp(36px, 10.7vw, 50px);
    line-height: 1.33;
    letter-spacing: -0.05em;
  }

  .koyo-language-en .hero-title,
  .koyo-language-es .hero-title {
    font-size: clamp(35px, 9.8vw, 47px);
    line-height: 1.15;
  }

  .hero-support {
    margin-top: 24px !important;
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link { width: 100%; }

  .hero-art {
    height: 238px;
    margin-top: 2px;
    overflow: hidden;
  }

  .drafting-graphic {
    width: min(116%, 520px);
    transform: translateY(-25px);
  }

  .proof-strip { display: block; }

  .proof-item {
    grid-template-columns: 54px 1fr;
    min-height: 76px;
    padding: 15px 0;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--koyo-hairline);
    border-left: 0;
  }

  .proof-number {
    padding-right: 18px;
    font-size: 28px;
  }

  .proof-label { font-size: 14px; }

  .profile-slice {
    display: block;
    padding: 92px 0;
  }

  .section-label { margin-bottom: 24px !important; }

  .profile-slice h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.5;
  }

  .profile-copy-text {
    margin-top: 38px !important;
    font-size: 16px;
    line-height: 1.95;
  }

  .current-card {
    margin-top: 40px !important;
    padding: 24px 0 0 20px;
  }

  .section-heading-row,
  .skills-intro,
  .vision-section,
  .contact-section,
  .language-panel {
    display: block;
  }

  .section-heading-row > .section-label,
  .skills-intro .section-label {
    margin: 0 0 24px !important;
  }

  .section-heading-row h2,
  .skills-intro h2,
  .vision-copy h2,
  .contact-section h2 {
    font-size: clamp(34px, 10vw, 47px);
    line-height: 1.46;
  }

  .koyo-language-en .section-heading-row h2,
  .koyo-language-es .section-heading-row h2,
  .koyo-language-en .skills-intro h2,
  .koyo-language-es .skills-intro h2,
  .koyo-language-en .vision-copy h2,
  .koyo-language-es .vision-copy h2,
  .koyo-language-en .contact-section h2,
  .koyo-language-es .contact-section h2 {
    line-height: 1.15;
  }

  .journey-section,
  .experience-section,
  .projects-section,
  .skills-section,
  .vision-section,
  .contact-section {
    padding: 92px 24px;
  }

  .journey-section .section-intro {
    margin-top: 24px !important;
    font-size: 16px;
    line-height: 1.85;
  }

  .journey-list { margin-top: 62px !important; }

  .journey-item {
    grid-template-columns: 52px 1fr;
    gap: 15px;
    padding: 30px 0 34px;
  }

  .journey-number { font-size: 27px; }

  .journey-copy h3 {
    font-size: 25px;
    line-height: 1.45;
  }

  .journey-text {
    margin-top: 15px !important;
    font-size: 14px;
    line-height: 1.85;
  }

  .experience-grid {
    display: block;
    margin-top: 58px !important;
  }

  .experience-card { padding: 28px 0 38px; }

  .experience-card + .experience-card {
    border-top: 1px solid var(--koyo-hairline);
    border-left: 0;
  }

  .experience-card h3 {
    margin-top: 46px !important;
    font-size: 27px;
  }

  .projects-section .section-intro {
    margin-top: 24px !important;
    font-size: 16px;
  }

  .project-grid {
    display: block;
    margin-top: 58px !important;
  }

  .project-card {
    min-height: 0;
    padding: 28px 0 38px;
  }

  .project-card + .project-card {
    border-top: 1px solid var(--koyo-hairline);
    border-left: 0;
  }

  .project-card h3 {
    margin-top: 44px !important;
    font-size: 27px;
  }

  .project-outcome {
    margin-top: 32px !important;
  }

  .skill-group-grid {
    display: block;
    margin: 62px 0 0 !important;
  }

  .skill-card {
    min-height: 0;
    padding: 24px 22px 34px;
  }

  .skill-card h3 {
    margin-top: 34px !important;
    font-size: 23px;
  }

  .language-panel { margin-top: 76px !important; }
  .language-rows { margin-top: 32px !important; }

  .language-row {
    display: block;
    padding-block: 22px;
  }

  .language-detail { margin-top: 10px !important; }

  .vision-orbit {
    width: min(76vw, 300px);
    margin: 0 auto 82px;
  }

  .vision-text {
    font-size: 16px;
    line-height: 1.9;
  }

  .contact-text { margin-top: 36px !important; }
  .contact-link-item {
    grid-template-columns: 88px 1fr;
    gap: 16px;
  }
  .back-top { margin-top: 48px !important; }

  .site-footer {
    display: grid;
    width: calc(100% - 40px);
    min-height: 110px;
    padding-block: 24px;
    align-content: center;
    gap: 10px;
  }
}

@media (max-width: 370px) {
  .site-header,
  .portfolio-page {
    padding-inline: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .wordmark {
    font-size: 19px;
    letter-spacing: -0.055em;
  }

  .header-inner { gap: 6px; }
  .language-switch { gap: 2px; }

  .language-switch a {
    min-width: 22px;
    font-size: 11px;
  }

  .menu-button {
    width: 34px;
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
