/* TERAKAWA - Japanese index edition (2026-10-02)
   Consolidated, in this exact order: tx-proposal.css, refinement.css, tx-viewer.css */

/* ===== css/tx-proposal.css ===== */
/* ==========================================================================
   TERAKAWA - Japanese index, middle section proposal v2 (Claude, 2026-09-30)
   Editorial system after Wallpaper* / Kinfolk / Cereal:
     . English does the display  - EB Garamond, upright, large, tight
     . Japanese carries meaning  - Noto Serif JP, smaller, ink, no gold
     . Labels & codes            - Inter, small caps-style, tracked
     . Hairline rules, a 12-column grid, left alignment, no added motion
   Scope: <div class="tx"> only. Text, links, alt and heading levels are
   unchanged; the site's existing reveal fade is kept, nothing is added.
   ========================================================================== */

.tx{
  --tx-rule:rgba(20,20,20,.16);
  --tx-label:'Inter',-apple-system,'Helvetica Neue',sans-serif;
  counter-reset:tx-ch
}

/* --------------------------------------------------------------------------
   0. Section head - at every width
   The English label becomes the display title; the Japanese h2 below it is
   set as a quiet subtitle. Heading tags are untouched (h2 stays h2).
   -------------------------------------------------------------------------- */
.tx :is(.works-header,.why-header,.problem-header,.pricing-header,.flow-header,.voice-header,.about-index-inner){text-align:left}
html[lang] .tx .sec-label{
  counter-increment:tx-ch;
  display:flex;align-items:baseline;justify-content:flex-start!important;gap:0 18px;
  width:100%;margin:0;padding:18px 0 0;border-top:1px solid var(--ink);
  font-family:var(--serif-en);font-style:normal;font-weight:400;text-transform:none;
  font-size:clamp(40px,5.4vw,88px);line-height:1.02;letter-spacing:-.012em;color:var(--ink)
}
.tx .sec-label::before{display:none!important}
.tx .sec-label::after{
  content:counter(tx-ch,decimal-leading-zero);order:-1;flex:0 0 auto;align-self:flex-start;
  font-family:var(--tx-label);font-size:11px;font-weight:400;letter-spacing:.14em;line-height:1;
  color:var(--ink-mute);padding-top:.4em;min-width:2.4em
}
html[lang] .tx :is(.sec-title,.about-headline){
  font-family:var(--serif-jp);font-weight:400;
  font-size:clamp(17px,1.45vw,21px)!important;line-height:1.9;letter-spacing:.1em;
  margin:26px 0 0!important;color:var(--ink);text-wrap:wrap
}
.tx :is(.sec-title,.about-headline) br{display:none}
.tx :is(.sec-title,.about-headline,.why-title,.philosophy-text) em{
  font-family:inherit;font-style:normal;font-weight:inherit;color:inherit;
  letter-spacing:inherit;white-space:normal;font-synthesis:none
}
html[lang] .tx .sec-sub{margin:18px 0 0;max-width:34em;font-size:14px;line-height:2.1;color:var(--ink-soft);text-align:left}

/* below desktop the works head is a column: let its label span the width */
.tx .works-header > div:first-child{width:100%;align-self:stretch}

/* Phone jump-nav & carousels keep working; only the heads change size */
@media (max-width:767px){
  html[lang] .tx .sec-label{font-size:clamp(34px,10vw,44px);padding-top:14px}
  html[lang] .tx :is(.sec-title,.about-headline){font-size:16px!important;margin-top:18px!important}
}

/* --------------------------------------------------------------------------
   1. Philosophy - horizontal, quiet, in the warm paper tone (every width)
   -------------------------------------------------------------------------- */
html[lang] .tx .philosophy{
  background:var(--paper-warm);color:var(--ink);text-align:center;
  padding:130px 40px 120px!important;border-top:1px solid var(--line);border-bottom:1px solid var(--line)
}
.tx .philosophy::before,.tx .philosophy::after{display:none}
html[lang] .tx .philosophy-text{
  font-family:var(--serif-jp);font-weight:300;font-size:clamp(18px,1.55vw,23px)!important;
  line-height:2.2;letter-spacing:.14em;max-width:none;color:var(--ink-2)
}
.tx .philosophy-text > br:nth-of-type(1),.tx .philosophy-text > br:nth-of-type(3){display:none}
/* the hidden line breaks leave source whitespace between the phrases;
   zero the parent size so the two phrases join without a gap */
html[lang] .tx .philosophy-text{font-size:0!important}
.tx .philosophy-text .reveal-mask{line-height:2.2;font-size:clamp(18px,1.55vw,23px)}
html[lang] .tx .philosophy > p:nth-of-type(2){
  margin-top:26px!important;font-size:13px!important;letter-spacing:.08em!important;color:var(--ink-mute)!important
}
html[lang] .tx .philosophy-attr{
  margin-top:14px;opacity:1;font-family:var(--tx-label);font-style:normal;
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--ink-mute)
}
@media (max-width:767px){
  html[lang] .tx .philosophy{padding:80px 24px!important}
  .tx .philosophy-text .reveal-mask{font-size:16px;letter-spacing:.08em}
  .tx .philosophy-text > br:nth-of-type(1),.tx .philosophy-text > br:nth-of-type(3){display:inline}
}

/* Works: the original 01-06 numbers stay as they are on phones */

/* ==========================================================================
   2. Desktop / landscape tablets (>=1024px, landscape)
   ========================================================================== */
@media (min-width:1024px) and (orientation:landscape){

  .tx .sec-inner{max-width:1320px}
  .tx :is(.works-index,.why,.problem,.pricing-index,.flow,.voice,.about-index){
    padding:150px clamp(40px,6vw,110px) 160px;border:0
  }
  .tx p,.tx li{font-feature-settings:"palt" 0}

  /* ---- 2.1 Works ------------------------------------------------------- */
  .tx .works-index{background:var(--paper)}
  .tx .works-header{
    display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:48px;
    align-items:end;border:0;padding:0;margin:0 0 72px
  }
  .tx .works-header > div:first-child{display:contents}
  .tx .works-header .sec-label{grid-column:1 / -1}
  .tx .works-header .sec-title{grid-column:1;grid-row:2;align-self:start}
  .tx .works-filter-top{
    grid-column:2;grid-row:2;align-self:start;margin-top:30px;
    display:grid;grid-template-columns:repeat(4,auto);justify-content:end;gap:10px 26px
  }
  .tx .works-filter-top a{
    font-family:var(--tx-label);font-style:normal;font-size:10.5px;letter-spacing:.18em;
    text-transform:uppercase;color:var(--ink-mute);padding:4px 0;transition:color .3s
  }
  .tx .works-filter-top a::before,.tx .works-filter-top a::after{display:none!important}
  .tx .works-filter-top a:hover{color:var(--ink)}

  /* rows justified to equal heights, like a photobook spread:
     row 1: 4:3 + 3:2 . row 2: three 3:2 . row 3: 4:3 + index */
  .tx .works-grid{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:64px 28px;
    align-items:start;counter-reset:none
  }
  .tx .works-grid.hovering .work-card{opacity:1}
  html[lang] .tx .works-grid .work-card{
    background:none;overflow:visible;aspect-ratio:auto!important;margin:0;transform:none!important
  }
  html[lang] .tx .works-grid .work-card-1{grid-column:1 / 7!important}
  html[lang] .tx .works-grid .work-card-2{grid-column:7 / 13!important}
  html[lang] .tx .works-grid .work-card-3{grid-column:1 / 5!important}
  html[lang] .tx .works-grid .work-card-4{grid-column:5 / 9!important}
  html[lang] .tx .works-grid .work-card-5{grid-column:9 / 13!important}
  html[lang] .tx .works-grid .work-card-6{grid-column:1 / 9!important}
  /* equal heights inside a row: fixed ratio frames (object-fit only trims
     the few pixels between 4:3 and 3:2 -> the 4:3 frames keep 4:3) */
  .tx .works-grid .work-img{height:auto;overflow:hidden;transform:none!important;background:#ecebe6}
  .tx .works-grid .work-card-1 .work-img,.tx .works-grid .work-card-2 .work-img{aspect-ratio:1.415}
  .tx .works-grid :is(.work-card-3,.work-card-4,.work-card-5) .work-img{aspect-ratio:3 / 2}
  .tx .works-grid .work-card-6 .work-img{aspect-ratio:4 / 3}
  .tx .works-grid .work-img picture{display:block;height:100%}
  .tx .works-grid .work-img .bg-media{position:static;width:100%;height:100%;object-fit:cover;transition:opacity .4s}
  .tx .works-grid .work-card:hover .bg-media{opacity:.9}
  .tx .works-grid .works-num{
    position:static;display:block;order:-1;mix-blend-mode:normal;opacity:1;
    font-family:var(--tx-label);font-weight:400;font-size:10.5px;letter-spacing:.14em;color:var(--ink-mute);
    margin:16px 0 0
  }
  .tx .works-grid .work-card{display:flex;flex-direction:column}
  .tx .works-grid .work-img{order:-2}
  html[lang] .tx .works-grid .work-info{
    position:static;background:none!important;color:var(--ink);padding:6px 0 0!important;
    display:flex;flex-direction:column-reverse;gap:6px
  }
  .tx .works-grid .work-meta{
    font-family:var(--tx-label);font-style:normal;font-size:10px;letter-spacing:.16em;
    text-transform:uppercase;text-shadow:none;opacity:1;color:var(--ink-mute);margin:0
  }
  html[lang] .tx .works-grid .work-title{
    font-family:var(--serif-en);font-weight:400;font-size:clamp(20px,1.6vw,25px);
    letter-spacing:.005em;text-shadow:none;line-height:1.25;transition:color .3s
  }
  .tx .works-grid .work-card:hover .work-title{color:var(--accent-dark)}
  .tx .works-grid .work-card{position:relative}
  /* caption rule */
  .tx .works-grid .work-card::after{
    content:'';position:absolute;left:0;right:0;bottom:-20px;height:1px;background:var(--tx-rule)
  }
  /* the works block shares one 12-column grid so "View All Projects"
     can sit in the empty cell beside the last photograph */
  .tx .works-index > .sec-inner{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px}
  .tx .works-header,.tx .works-grid{grid-column:1 / -1}
  .tx .works-grid{grid-row:2}
  .tx .works-cta{grid-column:9 / 13;grid-row:2;align-self:end;margin:0 0 34px;text-align:left;position:relative;z-index:1}
  .tx .works-cta-btn{
    width:100%;justify-content:space-between;padding:22px 0;border:0;
    border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);
    font-family:var(--serif-en);font-style:normal;font-size:22px;letter-spacing:0;color:var(--ink)
  }
  .tx .works-cta-btn:hover{background:none;color:var(--accent-dark)}

  /* ---- 2.2 Why: three spreads -------------------------------------------- */
  .tx .why{background:var(--paper)}
  .tx .why-header{margin:0 0 90px}
  .tx .why-list{max-width:none;gap:120px;margin:0}
  .tx .why-item,.tx .why-item.reverse{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;align-items:end
  }
  html[lang] .tx .why-img-wrap{
    grid-column:1 / 8;grid-row:1;order:0!important;aspect-ratio:auto;transform:none!important;
    overflow:visible;background:none
  }
  .tx .why-item.reverse .why-img-wrap{grid-column:6 / 13}
  .tx .why-img-wrap picture{display:block}
  .tx .why-img-wrap .bg-media{position:static;width:100%;height:auto}
  .tx .why-img-wrap .scroll-zoom-inner{display:none}
  html[lang] .tx .why-img-badge,html[lang] .tx .why-item.reverse .why-img-badge{
    position:static;background:none;border:0;display:flex;gap:10px;align-items:baseline;
    padding:14px 0 0;text-align:left
  }
  .tx .why-img-badge-small,.tx .why-img-badge-num{
    font-family:var(--tx-label);font-style:normal;font-size:10.5px;letter-spacing:.16em;
    color:var(--ink-mute);margin:0;text-transform:uppercase
  }
  .tx .why-content{grid-column:9 / 13;grid-row:1;padding-bottom:40px}
  .tx .why-item.reverse .why-content{grid-column:1 / 5}
  .tx .why-tag{
    font-family:var(--tx-label);font-style:normal;font-size:10.5px;letter-spacing:.2em;
    color:var(--ink-mute);margin:0 0 18px
  }
  html[lang] .tx .why-title{font-weight:400;font-size:clamp(21px,1.75vw,26px);line-height:1.75;letter-spacing:.08em;margin:0 0 22px}
  .tx .why-desc{font-size:14px;line-height:2.1;color:var(--ink-2);margin:0 0 26px}
  .tx .why-points{gap:0;border-top:1px solid var(--tx-rule)}
  .tx .why-points li{font-size:12.5px;padding:10px 0;border-bottom:1px solid var(--tx-rule);color:var(--ink-2)}
  .tx .why-points li::before{display:none}

  /* ---- 2.3 Concerns: an index of rows ------------------------------------ */
  .tx .problem{background:var(--paper-warm)}
  .tx .problem-header{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;margin:0 0 70px
  }
  .tx .problem-header .sec-label{grid-column:1 / -1}
  .tx .problem-header .sec-title{grid-column:1 / 7}
  .tx .problem-header .sec-sub{grid-column:7 / 13;margin-top:30px}
  .tx .problem-grid{display:block}
  .tx .problem-card{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;
    padding:36px 0 40px;background:none;border:0;border-top:1px solid var(--tx-rule);transform:none!important
  }
  .tx .problem-card:last-child{border-bottom:1px solid var(--tx-rule)}
  .tx .problem-num{
    grid-column:1 / 3;grid-row:1 / 3;border:0;padding:0;margin:6px 0 0;
    font-family:var(--tx-label);font-style:normal;font-size:10.5px;letter-spacing:.18em;color:var(--ink-mute)
  }
  html[lang] .tx .problem-title{grid-column:3 / 7;grid-row:1 / 3;font-size:19px;line-height:1.85;font-weight:400;margin:0}
  .tx .problem-desc{grid-column:7 / 12;grid-row:1;margin:0;font-size:14px;line-height:2.1;color:var(--ink-2)}
  .tx .problem-link{
    grid-column:7 / 12;grid-row:2;justify-self:start;margin-top:14px;
    font-size:12.5px;color:var(--ink);border-bottom-color:var(--ink)
  }

  /* ---- 2.4 Pricing: a price list ----------------------------------------- */
  .tx .pricing-index{background:var(--paper)}
  .tx .pricing-header{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;margin:0 0 56px
  }
  .tx .pricing-header .sec-label{grid-column:1 / -1}
  .tx .pricing-header .sec-title{grid-column:1 / 7}
  .tx .pricing-header .sec-sub{grid-column:7 / 13;margin-top:30px}
  .tx .pricing-grid{display:block;max-width:none;margin:0;border-top:1px solid var(--ink)}
  .tx .price-card,.tx .price-card.featured{
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;align-items:start;
    padding:40px 0;background:none;color:var(--ink);border:0;border-bottom:1px solid var(--tx-rule);
    box-shadow:none;transform:none!important
  }
  .tx .price-card:hover{box-shadow:none}
  .tx .price-no,.tx .price-card.featured .price-no{
    grid-column:1 / 3;grid-row:1;margin:8px 0 0;color:var(--ink-mute);
    font-family:var(--tx-label);font-style:normal;font-size:10.5px;letter-spacing:.18em
  }
  .tx .price-featured-badge{
    position:static;grid-column:1 / 3;grid-row:2;transform:none;background:none;justify-self:start;
    padding:0;margin-top:10px;color:var(--accent-dark);
    font-family:var(--tx-label);font-style:normal;font-size:10px;letter-spacing:.18em
  }
  html[lang] .tx .price-name{grid-column:3 / 6;grid-row:1;font-size:19px;font-weight:400;margin:0;line-height:1.6}
  .tx .price-value{
    grid-column:6 / 9;grid-row:1;font-size:44px;margin:0;white-space:nowrap;line-height:1;
    font-variant-numeric:lining-nums tabular-nums
  }
  .tx .price-value small,.tx .price-card.featured .price-value small{
    color:var(--ink-mute);font-family:var(--tx-label);font-style:normal;font-size:10px;letter-spacing:.14em
  }
  .tx .price-per,.tx .price-card.featured .price-per{
    grid-column:6 / 9;grid-row:2;border:0;padding:0;margin:14px 0 0;color:var(--ink-mute);font-size:12px
  }
  .tx .price-includes{grid-column:9 / 12;grid-row:1 / 4;min-height:0;margin:0}
  .tx .price-includes li,.tx .price-card.featured .price-includes li{color:var(--ink-2);padding:3px 0;font-size:12.5px}
  .tx .price-includes li::before{display:none}
  .tx .price-cta,.tx .price-card.featured .price-cta{
    grid-column:12 / 13;grid-row:1;justify-self:end;padding:4px 0;background:none;border:0;
    border-bottom:1px solid var(--ink);color:var(--ink);font-size:11px;letter-spacing:.14em;white-space:nowrap
  }
  .tx .price-cta:hover,.tx .price-card.featured .price-cta:hover{background:none;color:var(--accent-dark);border-color:var(--accent)}
  .tx .price-card.featured{background:var(--paper-warm);padding:40px 24px;margin:0 -24px}
  .tx .price-card.featured .price-name::after{
    content:'';display:block;width:20px;height:1px;background:var(--accent);margin-top:14px
  }
  .tx .pricing-note{text-align:left;margin-top:26px;font-size:12.5px;color:var(--ink-mute)}
  .tx .pricing-index .sec-inner > div:last-child{text-align:right!important;margin-top:-30px!important}
  .tx .pricing-index .btn-secondary{
    padding:6px 0;border:0;border-bottom:1px solid var(--ink);font-size:11px;letter-spacing:.2em
  }
  .tx .pricing-index .btn-secondary:hover{background:none;color:var(--accent-dark);border-color:var(--accent)}

  /* ---- 2.5 Flow: four stations on one rule ------------------------------- */
  .tx .flow{background:var(--paper-warm)}
  .tx .flow-header{margin:0 0 70px}
  .tx .flow-grid{border:0;gap:0 28px;border-top:1px solid var(--ink)}
  .tx .flow-step{padding:26px 0 0;border:0;background:none;display:flex;flex-direction:column}
  .tx .flow-step-time{margin-top:auto}
  .tx .flow-step:hover{background:none}
  .tx .flow-step-no{
    font-family:var(--serif-en);font-style:normal;font-size:46px;color:var(--ink);opacity:1;margin:0 0 26px
  }
  .tx .flow-step-no::after{display:none}
  .tx .flow-step-name-en{font-family:var(--tx-label);font-style:normal;font-size:10px;letter-spacing:.2em;margin-bottom:10px}
  .tx .flow-step-name-jp{font-weight:400;font-size:18px}
  .tx .flow-step-desc{font-size:13px;line-height:2;color:var(--ink-2)}
  .tx .flow-step-time{
    border-top:1px solid var(--tx-rule);font-family:var(--tx-label);font-style:normal;
    font-size:10px;letter-spacing:.14em;color:var(--ink-mute)
  }

  /* ---- 2.6 Voice: one voice, then five as a colophon -------------------- */
  .tx .voice{background:var(--paper);border:0}
  .tx .voice-header{margin:0 0 70px}
  .tx .voice-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:0 28px;max-width:none}
  .tx .voice-card{background:none;border:0;border-top:1px solid var(--tx-rule);padding:22px 0 0}
  .tx .voice-card::before{display:none}
  .tx .voice-text{padding-top:0;font-size:12.5px;line-height:2.05;color:var(--ink-2);margin-bottom:18px}
  .tx .voice-author{border:0;padding:0;font-size:11.5px;color:var(--ink-mute)}
  .tx .voice-author strong{font-size:12px;font-weight:400}
  .tx .voice-card:first-child{
    grid-column:1 / -1;border:0;padding:0 0 90px;display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px
  }
  .tx .voice-card:first-child .voice-text{
    grid-column:3 / 11;font-size:clamp(20px,1.75vw,26px);line-height:2;color:var(--ink);
    font-weight:300;letter-spacing:.08em;margin:0 0 30px;text-indent:-.5em
  }
  .tx .voice-card:first-child .voice-text::before{content:'\300C'}
  .tx .voice-card:first-child .voice-text::after{content:'\300D'}
  .tx .voice-card:first-child .voice-author{grid-column:3 / 11}

  /* ---- 2.7 About ---------------------------------------------------------- */
  .tx .about-index{background:var(--paper-warm)}
  .tx .about-grid{max-width:1320px}
  .tx .about-index-inner{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px}
  .tx .about-index-inner > .sec-label{grid-column:1 / -1}
  html[lang] .tx .about-headline{grid-column:1 / 6;grid-row:2 / 5;align-self:start}
  .tx .about-body:not(.about-office-intro){grid-column:7 / 12;grid-row:2;margin:30px 0 0;font-size:14px;line-height:2.2;color:var(--ink-2)}
  .tx .about-cta{grid-column:7 / 12;grid-row:3;margin-top:40px}
  .tx .about-cta .btn-secondary{padding:18px 30px}
  .tx .about-office-intro{grid-column:7 / 12;grid-row:4;font-size:12.5px!important;color:var(--ink-mute)}
}

/* ===== css/refinement.css ===== */
/* TERAKAWA v3.1 - a quieter editorial rhythm. Applies only to the middle .tx. */
.tx{--tx-rule:rgba(20,20,20,.12)}
html[lang] .tx .sec-label{border:0;padding:0;font-size:clamp(38px,4vw,60px);letter-spacing:-.018em;line-height:1.08}
.tx .sec-label::after{display:none}
html[lang] .tx :is(.sec-title,.about-headline){font-size:clamp(22px,1.85vw,29px)!important;font-weight:300;line-height:1.85;letter-spacing:.08em;margin-top:24px!important}
html[lang] .tx .sec-sub{font-size:14px;line-height:2.1;color:#66645e}
html[lang] .tx .philosophy{border:0;padding:116px 32px!important}
.tx .philosophy-text .reveal-mask{font-size:clamp(20px,1.65vw,26px)}
.tx :is(.problem-link,.price-cta,.works-cta-btn,.about-cta a):focus-visible{outline:2px solid var(--accent);outline-offset:7px}
@media(min-width:1024px) and (orientation:landscape){
 .tx :is(.works-index,.why,.problem,.pricing-index,.flow,.voice,.about-index){padding:112px clamp(40px,6vw,110px) 124px}
 .tx .works-index{padding-top:104px}
 html[lang] .tx .works-header .sec-label{font-size:clamp(52px,4.7vw,68px)}
 .tx .works-header{margin-bottom:52px;column-gap:40px}
 .tx .works-header .sec-title{font-size:clamp(25px,2.15vw,29px)!important;letter-spacing:.06em;margin-top:22px!important}
 .tx .works-filter-top{margin-top:26px;gap:8px 22px}
 .tx .works-filter-top a{font-size:10px;letter-spacing:.09em;color:#64645e}
 .tx .works-grid{gap:64px 32px}
 html[lang] .tx .works-grid .work-card-1{grid-column:1 / 8!important}
 html[lang] .tx .works-grid .work-card-2{grid-column:8 / 13!important;margin-top:clamp(56px,5.2vw,80px)}
 .tx .works-grid .work-img{aspect-ratio:auto!important}
 .tx .works-grid .work-img picture{height:auto}
 .tx .works-grid .work-img .bg-media{height:auto;object-fit:contain}
 .tx .works-grid .work-card::after{display:none}
 .tx .works-grid .works-num{position:absolute;bottom:24px;right:0;left:auto;top:auto;margin:0;font-size:10px;color:#77756e}
 html[lang] .tx .works-grid .work-info{padding-top:18px!important;gap:7px;padding-right:28px!important}
 html[lang] .tx .works-grid .work-title{font-size:clamp(19px,1.55vw,23px)}
 .tx .works-grid .work-meta{font-size:9px;letter-spacing:.09em;color:#77756e}
 .tx .works-cta{margin:0 0 36px;padding-left:32px}
 .tx .works-cta-btn{border:0;padding:16px 0;font-size:24px;justify-content:flex-start;gap:20px}
 .tx .works-cta-btn::after{content:'\2197';font-family:var(--tx-label);font-size:20px}
 .tx .why-header{margin-bottom:84px}
 .tx .why-list{gap:112px}
 .tx .why-content{grid-column:9 / 13;padding-bottom:26px;align-self:center}
 .tx .why-item.reverse .why-content{grid-column:1 / 5}
 html[lang] .tx .why-title{font-size:clamp(24px,2.05vw,31px);font-weight:300;line-height:1.7;letter-spacing:.04em;margin-bottom:25px}
 .tx .why-desc{font-size:14px;line-height:2.15;color:#555650}
 .tx .why-points{border:0;gap:10px}
 .tx .why-points li{border:0;padding:0;font-size:12px;line-height:1.9;color:#68685f}
 .tx .why-points li::before{display:block;content:'\00B7';color:var(--accent);margin-right:8px}
 .tx .why-img-badge{padding-top:12px!important}
 .tx .why-tag{font-size:10px;margin-bottom:23px;letter-spacing:.14em}
 .tx .problem-header,.tx .pricing-header{margin-bottom:65px}
 .tx .problem-header .sec-title,.tx .pricing-header .sec-title{grid-column:1 / 7}
 .tx .problem-header .sec-sub,.tx .pricing-header .sec-sub{grid-column:8 / 13;margin-top:27px}
 .tx .problem-card{padding:36px 0 42px;border:0;row-gap:13px}
 .tx .problem-card:last-child{border:0;padding-bottom:0}
 .tx .problem-num{grid-column:1 / 6;grid-row:1;margin:0;font-size:10px;letter-spacing:.12em;color:var(--accent-dark)}
 html[lang] .tx .problem-title{grid-column:1 / 7;grid-row:2 / 4;font-size:25px;font-weight:300;line-height:1.75}
 .tx .problem-desc{grid-column:8 / 13;grid-row:1 / 3;font-size:14px}
 .tx .problem-link{grid-column:8 / 13;grid-row:3;border:0;padding:0;font-size:12px;color:var(--accent-dark);margin:4px 0 0}
 .tx .pricing-grid{border-top:1px solid var(--tx-rule)}
 .tx .price-card,.tx .price-card.featured{grid-template-columns:repeat(12,minmax(0,1fr));padding:38px 0 42px;row-gap:12px;margin:0;background:none}
 .tx .price-no,.tx .price-card.featured .price-no{grid-column:1 / 5;grid-row:1;margin:0;font-size:10px}
 .tx .price-featured-badge{grid-column:1 / 5;grid-row:4;margin:0;font-size:9px;letter-spacing:.09em}
 html[lang] .tx .price-name{grid-column:1 / 5;grid-row:2;font-size:23px;font-weight:300}
 .tx .price-value{grid-column:5 / 9;grid-row:2;font-size:46px;letter-spacing:-.02em;align-self:start}
 .tx .price-value small{margin-left:9px}
 .tx .price-per,.tx .price-card.featured .price-per{grid-column:5 / 9;grid-row:3;margin:0;font-size:11px;letter-spacing:0}
 .tx .price-includes{grid-column:9 / 13;grid-row:1 / 5}
 .tx .price-includes li{font-size:13px!important;line-height:1.85}
 .tx .price-cta,.tx .price-card.featured .price-cta{grid-column:1 / 5;grid-row:3;justify-self:start;border:0;font-size:11px;letter-spacing:.05em;padding:4px 0;color:var(--accent-dark)}
 .tx .price-cta::after{content:' \2197'}
 .tx .price-card.featured .price-name::after{display:none}
 .tx .pricing-note{font-size:12px;max-width:75%;line-height:1.9;margin-top:30px}
 .tx .pricing-index .sec-inner > div:last-child{margin-top:22px!important}
 .tx .pricing-index .btn-secondary{font-size:12px;letter-spacing:.08em;border:0}
 .tx .flow{background:var(--paper)}
 .tx .flow-header{margin-bottom:72px}
 .tx .flow-grid{position:relative;gap:0 42px;border:0;padding-top:56px;isolation:isolate}
 .tx .flow-grid::before{content:'';position:absolute;top:4px;left:4px;right:0;height:1px;background:#77766e;transform-origin:left;transform:scaleX(1)}
 .tx .flow-step{position:relative;padding:0!important;opacity:1!important;transform:none!important}
 .tx .flow-step::before{content:'';position:absolute;top:-56px;left:0;width:9px;height:9px;box-sizing:border-box;border:1px solid var(--accent);border-radius:50%;background:var(--paper);transform:scale(1)}
 .tx .flow-step-no{font-style:italic;font-size:40px;color:var(--accent-dark);margin-bottom:20px}
 .tx .flow-step-name-en{font-size:10px;letter-spacing:.13em;color:#77766e}
 .tx .flow-step-name-jp{font-size:20px;font-weight:300}
 .tx .flow-step-desc{font-size:14px;line-height:2;color:#62625a}
 .tx .flow-step-time{border:0;padding-top:20px;font-size:10px;letter-spacing:.06em;color:var(--accent-dark)}
 .tx .flow-grid.tx-flow-ready::before{transform:scaleX(0);transition:transform 2.2s cubic-bezier(.7,0,.3,1)}
 .tx .flow-grid.tx-flow-ready .flow-step::before{transform:scale(0);transition:transform .5s ease}
 .tx .flow-grid.tx-in::before{transform:scaleX(1)}
 .tx .flow-grid.tx-in .flow-step::before{transform:scale(1)}
 .tx .flow-grid.tx-in .flow-step:nth-child(2)::before{transition-delay:.7s}
 .tx .flow-grid.tx-in .flow-step:nth-child(3)::before{transition-delay:1.1s}
 .tx .flow-grid.tx-in .flow-step:nth-child(4)::before{transition-delay:1.5s}
 .tx .voice{background:var(--paper-warm)}
 .tx .voice-header{margin-bottom:65px}
 .tx .voice-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:50px 40px}
 .tx .voice-card{grid-column:span 2;border:0;padding:0}
 .tx .voice-text{font-size:14px;line-height:2.1;color:#62625a}
 .tx .voice-author{font-size:11px;line-height:1.85}
 .tx .voice-author strong{font-size:12px;color:#45453f}
 .tx .voice-card:first-child{padding:0 0 16px;grid-template-columns:repeat(12,minmax(0,1fr))}
 .tx .voice-card:first-child .voice-text{grid-column:3 / 11;font-size:clamp(21px,1.8vw,27px);font-weight:300;line-height:2}
 .tx .about-index{background:var(--paper)}
 html[lang] .tx .about-index .sec-label{font-size:clamp(36px,3.6vw,56px);margin-bottom:44px}
 html[lang] .tx .about-headline{font-size:clamp(28px,2.5vw,38px)!important;line-height:1.8;letter-spacing:.08em;margin-top:0!important}
 .tx .about-headline br{display:block}
 .tx .about-body:not(.about-office-intro){grid-column:7 / 13;margin-top:0;font-size:15px;line-height:2.2;color:#555650}
 .tx .about-cta,.tx .about-office-intro{grid-column:7 / 13}
 .tx .about-cta .btn-secondary{padding:15px 0;border:0;border-bottom:1px solid var(--tx-rule);letter-spacing:.07em;font-size:12px}
}
@media(max-width:1023px),(orientation:portrait){
 html[lang] .tx :is(.works-index,.why,.problem,.pricing-index,.flow,.voice,.about-index){padding:72px 24px!important}
 html[lang] .tx .sec-label{font-size:clamp(32px,6vw,44px);line-height:1.12}
 html[lang] .tx :is(.sec-title,.about-headline){font-size:22px!important;line-height:1.85;margin-top:20px!important;letter-spacing:.04em}
 .tx .works-header{gap:26px;border:0;padding:0;margin-bottom:36px}
 .tx .works-filter-top{gap:10px 18px;justify-content:flex-start}
 .tx .works-filter-top a{font-size:11px;letter-spacing:.08em}
 html[lang] .tx .works-grid{gap:36px!important}
 html[lang] .tx .works-grid .work-card{aspect-ratio:auto!important;display:flex;flex-direction:column;background:none;overflow:visible}
 .tx .works-grid .work-img{position:relative;aspect-ratio:auto!important;height:auto;order:-2;transform:none!important}
 .tx .works-grid .work-img picture{display:block;height:auto}
 .tx .works-grid .work-img .bg-media{position:static;width:100%;height:auto;object-fit:contain;transform:none!important}
 html[lang] .tx .works-grid .work-info{position:static;background:none!important;color:var(--ink);padding:12px 25px 0 0!important;display:flex;flex-direction:column-reverse;gap:7px}
 .tx .works-grid .works-num{position:absolute;bottom:23px;right:0;top:auto;left:auto;font:10px var(--tx-label);color:#777;mix-blend-mode:normal;opacity:1}
 html[lang] .tx .works-grid .work-title{font-size:22px;text-shadow:none;line-height:1.2;color:var(--ink)}
 .tx .works-grid .work-meta{font:9px/1.6 var(--tx-label);letter-spacing:.08em;color:#666;text-shadow:none;opacity:1;margin:0}
 .tx .works-cta{margin-top:35px}
 .tx .works-cta-btn{border:0;font-size:19px;letter-spacing:.04em}
 html[lang] .tx .philosophy{padding:76px 24px!important}
 .tx .philosophy-text .reveal-mask{font-size:19px}
 .tx .why-header,.tx .problem-header,.tx .pricing-header,.tx .flow-header,.tx .voice-header{margin-bottom:40px}
 .tx .why-points,.tx .why-points li{border:0}
 .tx .problem-card{background:none;border:0}
 .tx .flow{background:var(--paper)}
 html[lang] .tx .flow-grid{display:grid;grid-template-columns:1fr!important;gap:34px!important;border:0;position:relative;padding-left:24px}
 .tx .flow-grid::before{content:'';position:absolute;left:4px;top:6px;bottom:12px;width:1px;background:var(--tx-rule)}
 html[lang] .tx .flow-step{padding:0 0 6px 8px!important;border:0;background:none;position:relative}
 .tx .flow-step::before{content:'';position:absolute;left:-24px;top:10px;width:9px;height:9px;border:1px solid var(--accent);box-sizing:border-box;border-radius:50%;background:var(--paper)}
 html[lang] .tx .flow-step-no{font-size:32px!important;margin-bottom:12px!important;color:var(--accent-dark);font-style:italic}
 .tx .flow-step-no::after{display:none}
 html[lang] .tx .flow-step-name-jp{font-size:20px}
 html[lang] .tx .flow-step-desc{font-size:14px;line-height:2}
 .tx .flow-step-time{border:0;color:var(--accent-dark)}
 .tx .voice-card{border:0;background:none}
 html[lang] .tx .voice-text{font-size:14px;line-height:2.1}
 html[lang] .tx .about-headline{font-size:27px!important;margin:30px 0!important}
 .tx .about-headline br{display:block}
 html[lang] .tx .about-body{font-size:14px;line-height:2.1}
 .tx .about-cta .btn-secondary{padding:18px 12px;letter-spacing:.03em;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .tx .flow-grid.tx-flow-ready::before,.tx .flow-grid.tx-flow-ready .flow-step::before{transform:none;transition:none}
}

.tx .why-points li::before{position:static;background:none;width:auto;height:auto;flex:0 0 auto}
@media(max-width:1023px),(orientation:portrait){
 html[lang] .tx .works-grid .work-card{grid-column:1 / -1!important}
 html[lang] .tx .works-grid .works-num{position:absolute!important;font:10px var(--tx-label)!important;bottom:24px!important;right:0!important;top:auto!important;left:auto!important;opacity:1!important;color:#777!important;mix-blend-mode:normal!important}
}
@media(max-width:1023px),(orientation:portrait){
 .tx .pricing-index{background:var(--paper)}
 html[lang] .tx .price-card,html[lang] .tx .price-card.featured{background:var(--paper-warm);border:0;box-shadow:none;color:var(--ink)}
 .tx .price-card.featured :is(.price-no,.price-per,.price-value small,.price-includes li){color:var(--ink-soft)}
 .tx .price-card.featured .price-cta{background:none;border-color:var(--accent);color:var(--accent-dark)}
 .tx .price-featured-badge{background:var(--accent-dark);color:var(--paper)}
}

.tx .flow-grid.tx-replay-reset::before,.tx .flow-grid.tx-replay-reset .flow-step::before{transition:none!important}
html[lang] .tx :is(.sec-title,.about-headline){word-break:normal;overflow-wrap:anywhere}

.tx .why-points li::before{display:none!important}


/* ---- Selected Works: three spreads (2026-09-30) ---------------------------
   I   01 KINUTA HOUSE / 02 Hospital   wide left + narrow right (as before)
   II  03 B Housing / 04 Model         mirrored: narrow left + wide right
   III 05 COPAL / 06 Nogeyama          aerial diptych, night and day
   The diptych widths follow the photographs' own ratios (1.5009 : 1.3356),
   so both frames share one height with nothing cropped. Desktop only;
   phones keep the single column. */
@media(min-width:1024px) and (orientation:landscape){
 .tx .works-grid{row-gap:0;column-gap:32px}
 html[lang] .tx .works-grid .work-card-1{grid-column:1 / 8!important;grid-row:1}
 html[lang] .tx .works-grid .work-card-2{grid-column:8 / 13!important;grid-row:1;margin-top:clamp(56px,5.2vw,80px)}
 html[lang] .tx .works-grid .work-card-3{grid-column:1 / 6!important;grid-row:2;margin-top:calc(clamp(104px,8.5vw,136px) + clamp(56px,5.2vw,80px))}
 html[lang] .tx .works-grid .work-card-5{grid-column:6 / 13!important;grid-row:2;margin-top:clamp(104px,8.5vw,136px)}
 html[lang] .tx .works-grid .work-card-4{grid-column:1 / 7!important;grid-row:3;justify-self:start;width:105.83%!important;max-width:none;margin-top:clamp(120px,10vw,160px)}
 html[lang] .tx .works-grid .work-card-6{grid-column:7 / 13!important;grid-row:3;justify-self:end;width:94.17%!important;max-width:none;margin-top:clamp(120px,10vw,160px)}
 .tx .works-cta{grid-column:7 / 13;grid-row:3;justify-self:end;align-self:start;margin:52px 0 0;padding-left:0}
}

/* ===== css/tx-viewer.css ===== */
/* TERAKAWA - photo viewer + bilingual pricing (2026-10-02)
   1. Viewer: clicking a Selected Works or Why TERAKAWA photograph opens it
      large on an ink ground; the photograph itself travels from its place
      on the page (View Transitions API, same-document). Browsers without
      the API, or visitors who prefer reduced motion, get the viewer
      without the movement. Works links still point to works.html, so
      crawlers and no-JS visitors are unaffected.
   2. Pricing: English set beside the Japanese, as on pricing.html. */

/* ---------------------------------------------------------------- viewer */
/* Cursor: the ordinary pointing hand, as on any link. A magnifier reads as
   shop-style zoom and a custom cursor dates quickly; the photographs are
   simply clickable. The hover cue is a slight, slow dimming of the photo. */
.tx .works-grid .work-card,.tx .why-img-wrap[role="button"],.hero-visual[role="button"]{cursor:pointer}
.tx .why-img-wrap[role="button"] .bg-media{transition:opacity .45s ease}
.tx .why-img-wrap[role="button"]:hover .bg-media{opacity:.9}
.tx .why-img-wrap[role="button"]:focus-visible,.hero-visual[role="button"]:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
.hero-visual[role="button"]:focus-visible{outline-offset:-4px}

.txv{
  position:fixed;inset:0;z-index:10050;background:#0f0f0e;color:#ece8df;
  display:flex;align-items:center;justify-content:center;cursor:default;
  padding:calc(64px + env(safe-area-inset-top,0px)) clamp(16px,4vw,56px) calc(40px + env(safe-area-inset-bottom,0px))
}
.txv[hidden]{display:none}
.txv-fig{margin:0;width:min(100%,calc((100vh - 230px) * var(--r,1.5)))}
@supports (height:100dvh){.txv-fig{width:min(100%,calc((100dvh - 230px) * var(--r,1.5)))}}
.txv-frame{display:block;width:100%;aspect-ratio:var(--r,1.5);background:transparent;overflow:hidden}
.txv-img{display:block;width:100%;height:100%;object-fit:cover}
.txv-cap{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:6px;padding-top:16px;align-items:baseline}
.txv-title{grid-column:1;grid-row:1;font:400 clamp(20px,2vw,28px)/1.3 'EB Garamond','Noto Serif JP',serif;letter-spacing:.01em;color:#ece8df}
.txv-meta{grid-column:1;grid-row:2;font:400 10px/1.6 'Inter',-apple-system,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8d8a82}
.txv-no{grid-column:2;grid-row:1;font:400 11px/1 'Inter',-apple-system,sans-serif;letter-spacing:.14em;color:#8d8a82}
.txv-close{
  position:fixed;top:calc(18px + env(safe-area-inset-top,0px));right:clamp(16px,3vw,40px);z-index:1;
  display:flex;align-items:center;gap:12px;padding:12px 4px;background:none;border:0;cursor:pointer;
  font:400 10px/1 'Inter',-apple-system,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#cfcac0
}
.txv-close::after{content:'';width:22px;height:1px;background:currentColor}
.txv-close:hover{color:#fff}
.txv-close:focus-visible{outline:1px solid #b79a5c;outline-offset:4px}

/* the movement */
::view-transition-group(txv-photo){animation-duration:.72s;animation-timing-function:cubic-bezier(.65,0,.25,1)}
::view-transition-old(txv-photo),::view-transition-new(txv-photo){height:100%;object-fit:cover}
::view-transition-old(root),::view-transition-new(root){animation-duration:.5s}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* ------------------------------------------------------ bilingual pricing */
.tx .tx-en{display:block;font-family:'EB Garamond',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:.01em;text-transform:none}
.tx .sec-sub .tx-en{margin-top:4px;font-size:14px;color:var(--ink-mute)}
.tx .price-name-en{margin:4px 0 0;font:italic 400 17px/1.3 'EB Garamond',Georgia,serif;letter-spacing:.01em;color:var(--accent-dark)}
.tx .price-per .tx-en{margin-top:3px;font-size:13px;color:var(--ink-mute)}
.tx .price-includes li .tx-en{margin:1px 0 7px;font-size:13px;line-height:1.45;color:var(--ink-mute)}
.tx .price-cta .tx-en{display:inline;margin-left:8px;font-size:13px}
.tx .price-cta .tx-en::before{content:'\2014\00A0'}
.tx .pricing-note .tx-en{margin-top:4px;font-size:13px}
.tx .pricing-index .btn-secondary .tx-en{display:inline;margin-left:8px;font-size:14px;letter-spacing:.02em}
.tx .pricing-index .btn-secondary .tx-en::before{content:'\2014\00A0'}

@media (min-width:1024px) and (orientation:landscape){
  html[lang] .tx .price-name{grid-row:2}
  .tx .price-name-en{grid-column:1 / 5;grid-row:3;align-self:start}
  .tx .price-cta,.tx .price-card.featured .price-cta{grid-row:4;margin-top:10px}
  .tx .price-featured-badge{grid-row:5}
  .tx .price-includes{grid-row:1 / 6}
  .tx .price-includes li{line-height:1.6!important}
}

/* ---------------------------------------------- bilingual concern titles */
/* English as a short secondary line under each Japanese concern title:
   smaller, italic, accent ink, always in the same place (left column only;
   the explanatory text on the right stays Japanese). */
.tx .problem-title-en{margin:6px 0 0;font:italic 400 17px/1.4 'EB Garamond',Georgia,serif;letter-spacing:.01em;color:var(--accent-dark)}
@media (min-width:1024px) and (orientation:landscape){
  .tx .problem-title-en{grid-column:1 / 7;grid-row:4;align-self:start;margin:-8px 0 0;font-size:18px}
}
@media (max-width:767px){
  .tx .problem-title-en{font-size:15px;margin:2px 0 4px}
}
