/* The portfolio uses the user's original screenshots, uncropped and unfiltered.
   No carousel or auto-motion: all three projects are visible and directly linked. */
.home-page .hero-content {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    min-height: 700px;
    padding-top: 40px;
    padding-bottom: 74px;
}
.home-page .hero-copy { padding-right: 0; min-width: 0; animation: none; }
.home-page .hero-title-new { margin: 0; }
.home-page .hero-main {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: clamp(28px,2.7vw,38px);
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    margin-top: 24px;
    color: #fff;
}
.home-page .hero-subtitle {
    display: inline-block;
    font-family: var(--cup-display);
    font-size: clamp(15px,1.55vw,20px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(24,16,12,.35);
    letter-spacing: .045em;
    border-left: 4px solid var(--cup-red);
    padding-left: 13px;
    margin-bottom: 0;
    line-height: 1.6;
}
/* Throw each live glyph from beyond the viewport's left edge, then draw the underline. */
.home-page .hero-keyword {
    display: inline-block;
    flex: 0 0 auto;
    position: relative;
    font-family: 'Noto Sans JP','Inter',sans-serif;
    font-weight: 900;
    font-size: clamp(66px,6.8vw,88px);
    line-height: 1.35;
    letter-spacing: -.045em;
    padding-bottom: 15px;
    transform: rotate(-2deg);
    transform-origin: left center;
}
.home-page .hero-keyword .marunage-char {
    display: inline-block;
    color: #fff;
    text-shadow: 0 3px 0 rgba(39,25,17,.24),0 8px 20px rgba(26,16,10,.18);
    transform: translateY(var(--letter-y)) rotate(var(--letter-angle));
    animation: hero-letter-arrive var(--arrival-speed) linear var(--arrival-delay) both;
}
.home-page .hero-keyword .marunage-char:nth-child(1) { --letter-y: .045em; --letter-angle: -5deg; --arrival-speed: 1s; --arrival-delay: .15s; }
.home-page .hero-keyword .marunage-char:nth-child(2) { --letter-y: -.055em; --letter-angle: 3deg; --arrival-speed: 1s; --arrival-delay: .57s; }
.home-page .hero-keyword .marunage-char:nth-child(3) { --letter-y: .065em; --letter-angle: -3deg; --arrival-speed: 1s; --arrival-delay: .99s; }
.home-page .hero-keyword .marunage-char:nth-child(4) { --letter-y: -.035em; --letter-angle: 4deg; --arrival-speed: 1s; --arrival-delay: 1.41s; }
.home-page .hero-keyword .marunage-char::before { display: none; }
.home-page .hero-resolution { font-family: var(--cup-display); font-size: 1em; font-weight: 900; color: #fff; letter-spacing: -.025em; text-shadow: 0 2px 10px rgba(24,16,12,.35); animation: hero-resolution-arrive .8s ease-out .9s both; }
.home-page .hero-resolution>span { font-weight: 900; }
.home-page .hero-ink {
    position: absolute;
    left: -1%;
    width: 104%;
    height: 36px;
    bottom: -1px;
    overflow: visible;
    pointer-events: none;
    color: var(--cup-red);
}
.hero-ink path { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hero-ink-stroke { stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hero-ink-draw .7s cubic-bezier(.3,.65,.4,1) 2.55s both; }
.hero-ink-finish { stroke-width: 2.7; opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hero-ink-draw .45s ease-out 3.25s both; }
/* Last glyph settles at 2.41s; neither underline can start before that. */
@keyframes hero-letter-arrive {
    0% { transform: translate(-100vw, .55em) rotate(-160deg); }
    48% { transform: translate(-38vw, -1.1em) rotate(-65deg); }
    78% { transform: translate(9px, calc(var(--letter-y) - .12em)) rotate(8deg); }
    90% { transform: translate(-3px, calc(var(--letter-y) + .035em)) rotate(calc(var(--letter-angle) - 3deg)); }
    100% { transform: translate(0, var(--letter-y)) rotate(var(--letter-angle)); }
}
@keyframes hero-resolution-arrive {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-ink-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-portfolio {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    align-self: center;
    position: relative;
    min-width: 0;
    animation: hero-enter 1s var(--ease) both;
}
.portfolio-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; padding: 18px 22px; background: #fff; border: 0; box-shadow: inset 0 0 0 6px #fff,inset 0 0 0 10px var(--cup-red); }
.portfolio-heading-row h2 {
    color: var(--cup-navy);
    font-family: var(--cup-rounded);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.5;
}
.portfolio-heading-row h2::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: 2px;
    background: var(--cup-red);
}
.portfolio-eyebrow { font-family: 'Inter',sans-serif; color: var(--cup-muted); font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.portfolio-project {
    display: block;
    min-width: 0;
    background: #fff;
    border: 0;
    padding: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 5px #fff,inset 0 0 0 9px var(--cup-red),0 8px 22px rgba(31,23,18,.18);
    transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.portfolio-project:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 5px #fff,inset 0 0 0 9px var(--cup-red),0 14px 30px rgba(31,23,18,.24); }
.portfolio-project:focus-visible { outline: 3px solid var(--cup-navy); outline-offset: 5px; }
.portfolio-project img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border: 0;
    background: #f3efe6;
}
.portfolio-browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: var(--cup-ivory);
    color: var(--cup-muted);
    font-family: 'Inter',sans-serif;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .025em;
    border-bottom: 1px solid var(--cup-line);
}
.portfolio-browser-dots { display: flex; gap: 4px; width: 38px; }
.portfolio-browser-dots span { width: 5px; height: 5px; border-radius: 50%; background: #b4a695; }
.portfolio-browser-dots span:nth-child(2) { background: var(--cup-red); }
.portfolio-browser-dots span:nth-child(3) { background: #514139; }
.portfolio-browser-bar>i { font-size: 9px; }
.portfolio-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 13px;
    border-top: 1px solid var(--cup-line);
    line-height: 1.4;
    background: var(--cup-ivory);
}
.portfolio-caption strong { font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 700; color: var(--cup-navy); letter-spacing: .03em; }
.portfolio-caption>span { display: inline-flex; gap: 7px; align-items: center; font-size: 9px; font-weight: 500; color: var(--cup-muted); white-space: nowrap; }
.portfolio-caption i { font-size: 9px; color: var(--cup-red); transition: transform .25s ease; }
.portfolio-project:hover .portfolio-caption i { transform: translate(2px,-2px); }
.portfolio-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.portfolio-project-grid .portfolio-caption { padding: 10px; }
.portfolio-project-grid .portfolio-caption strong { font-size: 11px; }
.portfolio-project-grid .portfolio-caption>span { font-size: 8px; gap: 5px; }
@media (max-width: 1000px) {
    .home-page .hero-content { column-gap: 28px; }
    .home-page .hero-main { font-size: 2.7vw; gap: 11px; }
    .home-page .hero-keyword { font-size: 6.6vw; }
    .home-page .hero-subtitle { font-size: 14px; }
}
@media (max-width: 800px) {
    .home-page .hero-content { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 42px; padding-bottom: 65px; min-height: 0; }
    .home-page .hero-copy { text-align: center; width: 100%; }
    .home-page .hero-main { font-size: clamp(27px,4.4vw,35px); justify-content: center; }
    .home-page .hero-keyword { font-size: clamp(64px,10vw,86px); }
    .home-page .hero-subtitle { font-size: clamp(13px,2.4vw,17px); }
    .hero-portfolio { margin: 0 auto; max-width: 520px; }
}
@media (max-width: 560px) {
    .home-page .hero-content { gap: 28px; padding-top: 32px; padding-bottom: 56px; }
    .home-page .hero-main { font-size: clamp(21px,5.8vw,29px); gap: 10px; line-height: 1.5; margin-top: 18px; }
    .home-page .hero-keyword { font-size: clamp(48px,13.8vw,69px); padding-bottom: 13px; }
    .home-page .hero-subtitle { font-size: 13px; padding-left: 10px; letter-spacing: .025em; }
    .home-page .hero-ink { height: 27px; bottom: 0; }
    .portfolio-heading-row { margin-bottom: 11px; }
    .portfolio-heading-row h2 { font-size: 13px; }
    .portfolio-eyebrow { font-size: 8px; letter-spacing: .12em; }
    .portfolio-project { border-radius: 10px; }
    .portfolio-project-grid { gap: 10px; margin-top: 10px; }
    .portfolio-caption { padding: 9px 11px; }
    .portfolio-project-grid .portfolio-caption { padding: 9px 8px; }
    .portfolio-project-grid .portfolio-caption strong { font-size: 10px; }
    .portfolio-project-grid .portfolio-caption>span { font-size: 7px; gap: 3px; }
    .portfolio-project-grid .portfolio-caption i { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-portfolio { animation: none; }
    .home-page .hero-keyword .marunage-char,
    .home-page .hero-resolution,
    .home-page .hero-ink path { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
    .portfolio-project,.portfolio-caption i { transition: none; }
    .portfolio-project:hover,.portfolio-project:hover .portfolio-caption i { transform: none; }
}
