/*
Theme Name: TrillCo. Studio
Author: TrillCo.
Description: A portfolio for the independent Perth branding studio.
Version: 3.2.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: trillco
*/
:root{--ink:var(--wp--preset--color--ink,#101010);--paper:var(--wp--preset--color--paper,#ffffff);--gold:var(--wp--preset--color--yellow,#fce300);--rule:#cbc9c2;--muted:#575750;--pad:clamp(20px,5vw,90px)}
*{box-sizing:border-box}
body,.editor-styles-wrapper{margin:0;-webkit-font-smoothing:antialiased}
.shell{max-width:1720px;margin:auto;padding-inline:var(--pad)}
a{color:inherit;text-underline-offset:.23em}a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:3px solid #777000;outline-offset:4px}
h1,h2,h3,p,figure,.wp-block-image,.wp-block-group{margin:0}
h1,h2,h3{font-weight:700;line-height:.98;letter-spacing:-.065em;text-wrap:balance}
h1{font-size:clamp(3.5rem,7.6vw,8.75rem)}
h2{font-size:clamp(2.7rem,5vw,5.8rem)}
h3{font-size:clamp(1.55rem,2.5vw,2.8rem);letter-spacing:-.05em}
img{max-width:100%;height:auto}figure img{display:block;width:100%}
.skip{position:absolute;top:-100px;left:20px;padding:10px;background:white;z-index:9}.skip:focus{top:4px}
.top,.foot{background:var(--ink);color:white}
.bar,.footrow{display:flex;align-items:center;justify-content:space-between;gap:20px}
.bar{min-height:86px}.logo{display:block;width:130px}
nav ul{display:flex;align-items:center;gap:clamp(15px,3vw,50px);list-style:none;padding:0;margin:0}
nav a,.under a,.credit a,.cardline a,.invitation a,.foot a{text-decoration:none}
nav a:hover,nav a[aria-current],.cardline a:hover,.invitation a:hover,.foot a:hover,.credit a:hover{text-decoration:none}
nav li:last-child a,.action a{display:inline-block;background:var(--gold);padding:.68em 1.35em;border-radius:3em;color:var(--ink);font-weight:700;text-decoration:none}
.hero{background:var(--ink);color:var(--paper);box-shadow:0 0 0 100vmax var(--ink);clip-path:inset(0 -100vmax);border-top:1px solid #43433e;display:grid;grid-template-columns:1fr 1.04fr;gap:4%;padding:clamp(30px,4vw,80px) 0}
.hero-copy{padding:clamp(6px,1vw,20px) 0;align-self:center}.eyebrow,.tag,.meta,.credit{font-size:.8125rem;line-height:1.45}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-weight:700}.hero h1{margin:.33em 0 .26em;max-width:9ch}.gold{color:var(--gold)}
.lead{font-size:clamp(1.1rem,1.55vw,1.55rem);line-height:1.42;max-width:48ch;letter-spacing:-.025em}.hero .lead{max-width:37ch;color:#e1e0da}
.action{margin-top:1.7rem}.action a:hover,nav li:last-child a:hover{background:var(--gold);text-decoration:none}
.hero-art{position:relative;min-height:390px}.hero-art figure,.hero-art figure a,.hero-art img{display:block;height:100%;width:100%}.hero-art figure{position:absolute;inset:0}.hero-art img{object-fit:cover;object-position:48% center}
.credit{position:absolute;left:12px;bottom:12px;background:var(--paper);padding:8px 12px;color:var(--ink)}
.sectionhead,.intro,.statement,.invitation,.contactpanel{padding-block:clamp(42px,6vw,96px)}
.divided,.cardline{display:flex;justify-content:space-between;align-items:end;gap:12px}
.sectionhead h2,.intro h1,.statement h2,.invitation h2{margin-top:.17em}
.under a{border-bottom:0;padding-bottom:3px}
.grid,.gallery,.studiohero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(30px,4vw,72px) clamp(18px,2.2vw,42px)}
.project figure{overflow:hidden;background:var(--paper)}.project img{aspect-ratio:1.65;object-fit:cover;transition:transform .35s}.project a:hover img{transform:scale(1.025)}
.cardline{margin-top:16px;align-items:center}.tag{border:1px solid var(--rule);border-radius:20px;padding:3px 10px;text-align:center}.meta{color:var(--muted);margin-top:6px}
.statement{border-top:1px solid var(--rule);margin-top:clamp(48px,6vw,100px)}.statement h2{max-width:15ch}.statement .lead,.intro .lead,.statement .under{margin-top:1.2rem}
.invitation,.contactpanel{background:var(--gold);box-shadow:0 0 0 100vmax var(--gold);clip-path:inset(0 -100vmax)}.grid+.invitation,.gallery+.invitation,.rows+.invitation{margin-top:clamp(48px,6vw,100px)}
.invitation h2{font-size:clamp(3.5rem,7vw,8rem)}
.story,.service{display:grid;grid-template-columns:1fr 1.4fr;gap:2rem 8vw}.story{padding-block:clamp(45px,7vw,110px)}.story p,.service p{font-size:clamp(1.06rem,1.5vw,1.5rem);max-width:55ch}.story h2{font-size:clamp(2rem,3.6vw,4rem)}
.studiohero{align-items:center;padding-block:3rem}.studiohero img{object-fit:cover;max-height:70vh}.gallery{gap:16px}.gallery figure{align-self:center}
.service{padding-block:2rem;border-top:1px solid var(--rule)}.contactpanel .email{font-size:clamp(1.25rem,4.5vw,5rem);letter-spacing:-.06em;margin:.3em 0}.footrow{min-height:95px;flex-wrap:wrap;font-size:.9rem}.footrow span{margin-right:auto}
@media(max-width:760px){.hero,.studiohero,.story,.service{grid-template-columns:1fr}.hero h1{max-width:12ch}.hero-art{min-height:0;aspect-ratio:1.65;margin-top:24px}.hero{gap:0}.bar{min-height:72px}.logo{width:94px}nav ul{gap:14px}nav a{font-size:.9rem}nav li:last-child a{padding:.45em .75em}.story,.service{gap:1rem}.story p+h2{margin-top:1rem}.grid,.gallery{grid-template-columns:1fr}.footrow{padding-block:24px}.studiohero .intro{padding-bottom:0}.studiohero{padding-top:0}.sectionhead.divided{align-items:start}.under{align-self:end}}
@media(max-width:420px){.bar{align-items:start;flex-direction:column;padding-block:15px;gap:12px}.bar nav,.bar nav ul{width:100%}.bar nav ul{justify-content:space-between}.cardline{align-items:start}.tag{font-size:.75rem}.divided{align-items:start;flex-direction:column}.divided .under{align-self:start}}
@media(prefers-reduced-motion:reduce){.project img{transition:none}}
/* WordPress classic themes wrap the contents of core Group blocks. */
.wp-block-group>.wp-block-group__inner-container{display:contents}

@font-face{font-family:Inter;src:url('assets/inter-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Studio Helvetica';src:local('Helvetica Bold'),local('Helvetica-Bold'),local('Helvetica Neue Bold'),local('HelveticaNeue-Bold');font-weight:700}
@font-face{font-family:'Studio Helvetica';src:local('Helvetica Light'),local('Helvetica-Light'),local('Helvetica Neue Light'),local('HelveticaNeue-Light');font-weight:300}

.eyebrow,.tag,.meta,.credit,.step-number,.footrow{font-family:var(--wp--preset--font-family--studio);font-weight:300}
.eyebrow{font-weight:300;letter-spacing:.07em;font-size:.875rem}
.process{border-top:1px solid var(--rule);margin-top:clamp(48px,6vw,100px);padding-block:clamp(48px,6vw,100px)}
.process-intro h2{margin:.18em 0 .4em}.process-intro .lead{max-width:63ch}
.process-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(16px,2vw,36px);margin-block:2.5rem}
.process-step{border-top:2px solid var(--ink);padding-top:1rem}
.step-number{font-weight:300;font-size:1.25rem;line-height:1.2;margin-bottom:1rem}
.process-step h3{font-size:clamp(1.3rem,1.75vw,1.95rem);line-height:1.13;letter-spacing:-.045em;margin-bottom:.8rem}
.process-step p:last-of-type{line-height:1.5}
@media(max-width:1050px){.process-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.process-steps{display:block}.process-step{padding-block:1.1rem}.step-number{margin-bottom:.5rem}.process-step h3{font-size:1.6rem}}

.project-curtain {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--gold, #fce300);
    pointer-events: none;
}
.process-steps { display: block; }
.process-step { padding-block: clamp(1.2rem, 3vw, 3rem); }
@media (min-width: 900px) and (min-height: 560px) {
    .process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 9%; align-items: start; }
    .process-intro { position: sticky; top: clamp(2rem, 9vh, 7rem); }
    .process-steps { margin: 0; }
    .process-step { min-height: 32vh; }
    .process-step h3 { max-width: 22ch; }
    .process-step .step-number { display: flex; align-items: center; gap: .75rem; }
    .step-number::after { content: ''; background: var(--gold); width: 3rem; height: 4px; transform: scaleX(0); transform-origin: left; }
    .current-step .step-number::after { transform: scaleX(1); }
    .process > .under, .process > .wp-block-group__inner-container > .under { grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) {
    .step-number::after { transition: transform 220ms ease; }
}
@media (prefers-reduced-motion: reduce) {
    .process-intro { position: static; }
    .project-curtain { display: none; }
}

.hero h1 { position: relative; }
.hero-original { opacity: 0; }
.hero-entrance, .hero-entrance-line, .hero-flip, .hero-flip::before, .hero-flip::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-entrance { perspective: 1100px; clip-path: inset(-.04em -.05em); }
.hero-entrance-line { text-wrap: inherit; }
.hero-flip { transform-style: preserve-3d; }
.hero-flip::before, .hero-flip::after {
    content: '';
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hero-flip::before { background: var(--gold); }
.hero-flip::after { background: var(--ink); transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
    .hero-original { opacity: 1; }
    .hero-entrance { display: none; }
}

.sport-feature,.sport-opening {
    padding:clamp(2rem,5vw,5rem);
    background:var(--ink);
    color:var(--paper);
}
.sport-feature {margin-block:clamp(2rem,5vw,5rem);border-left:.5rem solid var(--gold)}
.sport-feature h2,.sport-opening h1 {margin:.18em 0 .3em}
.sport-feature h2 a {text-decoration:none}
.sport-feature .under {margin-top:1.4rem;color:var(--gold)}
.sport-projects {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;margin-bottom:4rem}
.sport-client h3 {margin-top:.4em}
@media(max-width:700px){.sport-projects {grid-template-columns:1fr}}
.sport-split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.5rem,4vw,5rem)}
.poster-pair,.sport-art{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.5rem,1.2vw,1.5rem)}
.poster-pair figure:first-child{margin-top:15%}.poster-pair figure:last-child{margin-bottom:15%}
.poster-pair img,.sport-client img,.sport-art img{width:100%;height:auto;display:block}
.sport-copy .lead{max-width:34ch}.sport-client .eyebrow{margin-top:1rem}.sport-client img{max-height:65vh;object-fit:contain;background:var(--ink)}
.sport-chapter{padding:clamp(2rem,5vw,5rem) 0;border-top:1px solid var(--rule)}
.sport-chapter .lead{margin:1rem 0 2rem}.sport-art figure:only-child{max-width:34rem}
@media(max-width:760px){.sport-split,.sport-art{grid-template-columns:1fr}.sport-feature,.sport-opening{padding:1.5rem}.sport-opening h1{font-size:clamp(3rem,12vw,5rem)}}
.brand-feature{background:var(--ink);color:var(--paper);padding:clamp(2rem,5vw,5rem);margin-block:clamp(2rem,5vw,5rem);border-left:.5rem solid var(--gold)}
.brand-feature h2{margin:.18em 0 .3em}.brand-feature h2 a{text-decoration:none}.brand-feature .under{margin-top:1.4rem;color:var(--gold)}.brand-page-link{margin-bottom:2rem}
.top{position:relative;z-index:5}
.bar nav li{position:relative}
.bar nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:2;width:max-content;max-width:calc(100vw - 32px);min-width:13rem;background:var(--ink);padding:.5rem;border:1px solid #60605b}
.bar nav li.submenu-open>.sub-menu,.bar nav:not(.enhanced-nav) li:focus-within>.sub-menu,.bar nav:not(.enhanced-nav) li:hover>.sub-menu{display:block}
.bar nav .sub-menu li a{display:block;padding:.7rem .8rem;border-radius:0;background:transparent;color:var(--paper);font-weight:400;text-decoration:none}
.bar nav .sub-menu li a:hover,.bar nav .sub-menu li a:focus-visible{background:var(--gold);color:var(--ink)}
.submenu-toggle{width:1.75rem;height:2.65rem;border:0;background:transparent;color:inherit;cursor:pointer;vertical-align:middle}
.submenu-toggle::after{content:'';display:inline-block;width:.42rem;height:.42rem;border-right:1.5px solid;border-bottom:1.5px solid;transform:translateY(-2px) rotate(45deg)}
.submenu-open>.submenu-toggle::after{transform:rotate(225deg)}
.submenu-toggle:focus-visible{outline:2px solid var(--gold)}
@media(max-width:760px){.bar nav .sub-menu{left:50%;transform:translateX(-50%)}}

/* Sports portfolio */
.sport-opening {
    box-shadow: 0 0 0 100vmax var(--ink);
    clip-path: inset(0 -100vmax);
    border-top: 1px solid #43433e;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}
.sport-opening .poster-pair {max-width: 37rem; justify-self: end}
.sport-opening .poster-pair figure {margin: 0}
.sport-opening .poster-pair figure:last-child {padding-top: 12%}
.sport-opening + .sectionhead, .sport-projects + .sectionhead {
    display: flex; align-items: baseline; gap: clamp(1rem, 4vw, 5rem);
    border-bottom: 1px solid var(--ink);
    padding: clamp(2.8rem, 5vw, 5rem) 0 1.1rem;
}
.sport-opening + .sectionhead h2, .sport-projects + .sectionhead h2 {
    margin: 0; font-size: clamp(2rem, 3.2vw, 3.7rem);
}
.sport-projects {gap: clamp(1rem, 2.8vw, 3rem); margin: 1.4rem 0 0}
.sport-client {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline;
    gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule);
}
.sport-client figure {
    grid-column: 1 / -1; grid-row: 1;
    background: var(--paper); padding: clamp(1rem, 2.4vw, 2.5rem);
}
.sport-client figure img {width:auto; max-width:100%; max-height: min(58vh, 37rem); margin:auto}
.sport-client h3 {grid-column: 1; grid-row: 2; margin: 0}
.sport-client h3 a {text-decoration: none}
.sport-client:hover h3 a, .sport-client:focus-within h3 a {text-decoration:none}
.sport-client .eyebrow {grid-column: 2; grid-row: 2; margin: 0; color: var(--muted)}
.sport-projects + .sectionhead + .rows {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,5vw,6rem)}
.sport-projects + .sectionhead + .rows .service {display:block;padding:1.5rem 0;border:0;border-bottom:1px solid var(--rule)}
.sport-projects + .sectionhead + .rows h3 {font-size:clamp(1.35rem,2vw,1.9rem)}
.sport-projects + .sectionhead + .rows p {font-size:1rem; margin-top:.6rem; max-width:46ch}
.intro:has(+ .sport-chapter) {
    background:var(--ink); color:var(--paper); box-shadow:0 0 0 100vmax var(--ink);
    clip-path:inset(0 -100vmax); border-top:1px solid #43433e;
    display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);
    align-items:end;gap:1.25rem clamp(2rem,5vw,6rem);
}
.intro:has(+ .sport-chapter) .eyebrow {grid-column:1 / -1}
.intro:has(+ .sport-chapter) .eyebrow a {color:var(--gold)}
.intro:has(+ .sport-chapter) h1 {margin:0;font-size:clamp(3.25rem,6vw,7rem)}
.intro:has(+ .sport-chapter) .lead {margin:0;max-width:43ch;font-size:clamp(1.05rem,1.4vw,1.4rem)}
.sport-chapter {
    display:grid;grid-template-columns:minmax(12rem,.65fr) minmax(0,2fr);
    grid-template-rows:auto 1fr;column-gap:clamp(2rem,5vw,6rem);
    padding-block:clamp(2.8rem,5vw,6rem);border-color:var(--rule);
}
.sport-chapter h2 {
    grid-column:1;grid-row:1;margin:0;font-size:clamp(1.55rem,2.15vw,2.45rem);
    letter-spacing:-.045em;line-height:1.06;
}
.sport-chapter h2::before {content:'';display:block;width:2.3rem;height:4px;background:var(--gold);margin-bottom:1rem}
.sport-chapter .lead {grid-column:1;grid-row:2;align-self:start;max-width:32ch;margin:.85rem 0 0;font-size:1rem;line-height:1.55;color:var(--muted)}
.sport-chapter .sport-art {grid-column:2;grid-row:1 / 3;align-self:start;align-items:start;gap:clamp(.65rem,1.4vw,1.4rem)}
.sport-art figure {align-self:start}
.sport-art figure:only-child {grid-column:1 / -1;max-width:min(100%,34rem)}
@media(min-width:1000px){
    .sport-art:has(figure:nth-child(3):last-child) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
    .sport-opening .poster-pair {justify-self:stretch}
    .intro:has(+ .sport-chapter),.sport-chapter {display:block}
    .intro:has(+ .sport-chapter) h1 {margin:.4em 0 .3em}
    .sport-chapter .lead {max-width:54ch;margin:.65rem 0 1.4rem}
    .sport-chapter .sport-art {grid-template-columns:minmax(0,1fr)}
    .sport-opening + .sectionhead,.sport-projects + .sectionhead {display:block}
    .sport-opening + .sectionhead h2,.sport-projects + .sectionhead h2 {margin-top:.3rem}
    .sport-projects + .sectionhead + .rows {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){.sport-client {grid-template-columns:minmax(0,1fr)}.sport-client .eyebrow{grid-column:1;grid-row:3}}

.service-process { margin-top:0; }
.service-process + .sectionhead,.service-process + .sport-feature { margin-top:0; }
.service-process .brand-page-link { margin:1.5rem 0 0; }
.service-process .process-intro h1 { font-size:clamp(2.7rem,5vw,5.8rem); margin:.18em 0 .4em; }
.process-step:focus-visible { outline:2px solid var(--ink);outline-offset:4px; }
@media(max-width:899px),(max-height:559px) {
    .process-step .step-number { display:flex;align-items:center;gap:.75rem; }
    .process-step .step-number::after { content:'';background:var(--gold);width:3rem;height:4px;transform:scaleX(0);transform-origin:left; }
    .process-step.current-step .step-number::after { transform:scaleX(1); }
}


.wp-site-blocks>.wp-block-template-part,.wp-site-blocks>main {margin-block:0}
.bar .wp-block-site-logo img {display:block}
.bar .wp-block-navigation__container {display:flex;align-items:center;gap:clamp(.7rem,2.3vw,2.6rem)}
.bar .wp-block-navigation-item__content {text-decoration:none;background:none;border-radius:0;color:inherit;padding:0;font-weight:400}
.bar .wp-block-navigation__container>.wp-block-navigation-item:last-child>.wp-block-navigation-item__content {background:var(--gold);color:var(--ink);border-radius:2rem;padding:.55em 1.1em;font-weight:700}
.bar .wp-block-navigation__submenu-container {background:var(--ink);color:var(--paper)}
.bar .wp-block-navigation__submenu-container .wp-block-navigation-item__content {padding:.6rem .9rem}
.bar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {background:var(--gold);color:var(--ink)}
.footrow>p:first-child {margin-right:auto}
.home .footer-logo {display:none}
body:not(.home) .footer-logo {margin-bottom:1rem}
.top,.foot {background:var(--ink);color:var(--paper)}
@media(max-width:760px){
 .bar .wp-block-site-logo img {width:90px}
 .bar nav ul.wp-block-navigation__submenu-container {display:flex;flex-direction:column;align-items:stretch;left:auto;right:0}
}
@media(max-width:420px){.bar {align-items:start;flex-direction:column}.bar nav ul.wp-block-navigation__submenu-container{left:0;right:auto}}
