/* COM.MA shared chrome, measured from freshman.tv at 1440x900:
   header, full-screen menu, page transition, hand-drawn scribbles, footer bar.
   Stand-in faces until Comma licenses the originals: Archivo 700 (bold sans), Newsreader 200 (thin serif), Reenie Beanie (handwriting). */
:root{
  --ink:#101010; --black:#000; --paper:#fff; --cream:#f3f1e7; --stone:#a4a49c;
  --u:1px;   /* one design pixel; above 1200 it scales with the window, as on Freshman */
  --menu-ease:cubic-bezier(.22,.61,.36,1);
  --accent:var(--cream);   /* counts, labels and scribbles: cream on dark, set to ink on any light surface */
  --grotesk:'Archivo','Helvetica Neue',Arial,sans-serif;
  --serif:'Newsreader','Times New Roman',serif;
  --hand:'Reenie Beanie','Bradley Hand','Marker Felt',cursive;
  --edge:calc(20*var(--u));
}
/* Fonts are self-hosted so first paint never waits on another server */
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/archivo-700.woff2) format('woff2')}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:200;font-display:swap;src:url(fonts/newsreader-200.woff2) format('woff2')}
@font-face{font-family:'Reenie Beanie';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/reenie-beanie-400.woff2) format('woff2')}
/* Freshman scales its whole layout to the window from a 1440 design. The height limit keeps very wide, short windows usable. */
@media (min-width:1201px){:root{--u:min(calc(100vw/1440),calc(100vh/640))}}
@supports (transition-timing-function:linear(0,1)){:root{--menu-ease:linear(0,.16 11%,.42 22%,.65 33%,.81 44%,.9 56%,.95 67%,.98 78%,1)}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid currentColor;outline-offset:calc(4*var(--u))}

/* Type roles */
.t-sans{font-family:var(--grotesk);font-weight:700;text-transform:uppercase;letter-spacing:-.03em}
.t-serif{font-family:var(--serif);font-weight:200;letter-spacing:-.01em}
.t-hand{font-family:var(--hand);font-weight:400}
.bar{display:inline-block;vertical-align:middle;height:.55em;border-radius:1px;background:currentColor;opacity:.55}
/* Display-size bars (titles, statements) are faint and dashed, so they read as marked-up layout rather than a missing image */
.bar.big{opacity:1;height:.45em;background:color-mix(in srgb,currentColor 18%,transparent);border:1px dashed color-mix(in srgb,currentColor 45%,transparent)}

/* Header: wordmark top left, + MENU top right */
.site-head{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;justify-content:space-between;align-items:center;
  padding:calc(calc(18*var(--u)) + env(safe-area-inset-top,0px)) var(--edge) 0;pointer-events:none;color:#fff;mix-blend-mode:difference}
/* Difference blending keeps the header readable over any footage, photo or page colour as content scrolls under it */
.site-head>*{pointer-events:auto}
.site-head .wordmark{display:flex;align-items:center;min-width:44px;min-height:44px}
.site-head .wordmark img{display:block;height:calc(15*var(--u));width:auto}
.menu-toggle{display:flex;align-items:center;gap:calc(7*var(--u));background:none;border:0;cursor:pointer;padding:calc(12*var(--u)) 0;min-width:44px;min-height:44px}
.menu-toggle .plus{font-family:var(--hand);font-size:calc(22*var(--u));line-height:calc(16*var(--u))}
.menu-toggle .word{font-family:var(--serif);font-weight:200;font-size:calc(16*var(--u));line-height:calc(16*var(--u));letter-spacing:-.01em;text-transform:uppercase}

/* Full-screen menu: stone ground, logo top centre, staggered serif items between dotted rules */
.menu{position:fixed;inset:0;z-index:100;background:var(--stone);color:var(--ink);display:flex;flex-direction:column;overflow-y:auto;
  --accent:var(--ink);visibility:hidden;transform:translateY(-100%);transition:transform .9s var(--menu-ease),visibility 0s linear .9s}
.menu.open{visibility:visible;transform:none;transition:transform .9s var(--menu-ease),visibility 0s}
/* Everything inside clears from a blur in turn as the panel lands */
.menu .mi{opacity:0;filter:blur(15px);transition:opacity 0s linear .9s,filter 0s linear .9s}
.menu.open .mi{opacity:1;filter:none;transition:opacity .6s ease-out,filter .6s ease-out;transition-delay:calc(.3s + var(--i,0)*.035s)}
.menu-top{display:flex;justify-content:space-between;align-items:flex-start;padding:calc(calc(18*var(--u)) + env(safe-area-inset-top,0px)) var(--edge) 0}
.menu-enq{display:inline-flex;flex-direction:column;gap:2px;min-height:calc(44*var(--u));font-family:var(--serif);font-weight:200;font-size:calc(20*var(--u));text-transform:uppercase;letter-spacing:-.01em}
.menu-enq span:last-child{position:relative;align-self:flex-start}
.menu-logo{display:flex;justify-content:center;padding-top:calc(36*var(--u))}
.menu-logo img{height:clamp(calc(34*var(--u)),4.4vw,calc(62*var(--u)));width:auto;filter:invert(1) brightness(.12)}
.menu-list{list-style:none;margin:calc(48*var(--u)) 0 auto;padding:0 var(--edge)}
.menu-list li:first-child{border-top:1px dashed rgba(16,16,16,.45)}
.menu-list li{border-bottom:1px dashed rgba(16,16,16,.45);position:relative}
.menu-list a{position:relative;display:flex;align-items:center;height:calc(80*var(--u));padding-left:calc(var(--x,0%) + calc(20*var(--u)))}
.menu-list a::before{content:"";position:absolute;inset:0 calc(-1 * var(--edge));background:var(--black);transform:scaleY(0);transform-origin:bottom;transition:transform .3s cubic-bezier(.165,.84,.44,1)}
.menu-list a:hover,.menu-list a:focus-visible{--accent:var(--cream)}
.menu-list a:hover::before,.menu-list a:focus-visible::before{transform:scaleY(1)}
.menu-list .label{position:relative;font-family:var(--serif);font-weight:200;font-size:calc(70*var(--u));line-height:calc(62*var(--u));letter-spacing:-.03em;text-transform:uppercase;transition:color .2s}
.menu-list a:hover .label,.menu-list a:focus-visible .label{color:var(--stone)}
.menu-list sup{font-family:var(--hand);font-size:calc(21*var(--u));line-height:0;position:relative;top:-1.4em;margin-left:calc(4*var(--u));letter-spacing:0;text-transform:none}
.menu-list a:hover sup,.menu-list a:focus-visible sup{color:var(--stone)}
.menu-list a[aria-current] .label{opacity:.45}
.menu-list a[aria-current]:hover .label{opacity:1}
.menu-foot{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;padding:0 var(--edge) calc(calc(18*var(--u)) + env(safe-area-inset-bottom,0px))}
.menu-foot .r{text-align:right}
.menu-foot .e{text-align:center}
/* info@ is the one route every lead takes, so it is set larger than the other footer links */
.mail{font-family:var(--serif);font-weight:200;font-size:calc(20*var(--u));line-height:1.2;letter-spacing:-.01em}
.site-foot a,.menu-foot a{display:inline-block;padding:calc(10*var(--u)) 0}
/* Home: the header sits on footage under a dark scrim, so plain white with a soft shadow reads better than blending */
body[data-no-wordmark] .site-head{mix-blend-mode:normal;text-shadow:0 1px calc(10*var(--u)) rgba(0,0,0,.45)}
.small-label{display:block;text-transform:none;font-family:var(--hand);font-size:calc(20*var(--u));line-height:calc(16*var(--u))}
.small-caps{font-family:var(--grotesk);font-weight:700;font-size:calc(12*var(--u));line-height:calc(14*var(--u));letter-spacing:-.03em;text-transform:uppercase}
.sign{font-size:calc(16*var(--u));line-height:calc(20*var(--u))}
.sign .yr{font-family:var(--hand);font-size:calc(20*var(--u));margin-right:calc(6*var(--u))}
.sign .tag{font-family:var(--serif);font-weight:200}
/* Required-field mark on forms: the same hand face as the counts */
.req{font-family:var(--hand);font-size:calc(28*var(--u));line-height:0;vertical-align:-.15em;color:var(--accent);margin-left:calc(3*var(--u))}

/* Page transition with the wordmark in the middle */
.curtain{position:fixed;inset:0;z-index:200;background:var(--cream);display:flex;align-items:center;justify-content:center;
  transform:translateX(20%);clip-path:inset(0 0 0 100%);pointer-events:none}
.curtain img{height:calc(22*var(--u));width:auto;filter:invert(1) brightness(.1)}
.curtain.in{transform:translateX(0);clip-path:inset(0);transition:transform 1.2s cubic-bezier(.87,0,.13,1),clip-path 1.2s cubic-bezier(.87,0,.13,1)}
.curtain.cover{transform:translateX(0);clip-path:inset(0)}
.curtain.out{transform:translateX(-20%);clip-path:inset(0 100% 0 0);transition:transform 1.2s cubic-bezier(.87,0,.13,1) .2s,clip-path 1.2s cubic-bezier(.87,0,.13,1) .2s}

/* Hand-drawn scribbles that draw themselves on hover */
[data-scribble]{position:relative}
.scribble{position:absolute;pointer-events:none;overflow:visible;z-index:2}
.scribble path{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;
  stroke-dasharray:calc(var(--L,400) * 1px);stroke-dashoffset:calc(var(--L,400) * 1px);transition:stroke-dashoffset .45s cubic-bezier(.65,0,.35,1)}
.scribble.drawn path{stroke-dashoffset:0}
.scribble.gone path{transition:stroke-dashoffset .3s ease-in;stroke-dashoffset:calc(var(--L,400) * -1px)}

/* Shared footer on every scrolling page (body[data-footer]): Instagram, sign-off, enquiries */
.site-foot{--accent:var(--ink);background:var(--cream);color:var(--black);overflow-x:clip}
.foot-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:calc(18*var(--u));padding:calc(56*var(--u)) var(--edge) calc(calc(22*var(--u)) + 64px + env(safe-area-inset-bottom,0px))}   /* 64px keeps the last line clear of a host badge in the corner */
/* Full-screen footer: the logo sits in the middle of the screen, the bar along the bottom */
.site-foot.full{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
.foot-main{margin:auto 0;padding:calc(90*var(--u)) var(--edge) calc(40*var(--u));display:flex;flex-direction:column;align-items:center;gap:calc(32*var(--u));text-align:center}
.foot-logo{display:block;width:min(100%,calc(926*var(--u)));height:auto;filter:brightness(0)}
.foot-line{margin:0;max-width:calc(470*var(--u));font-family:var(--serif);font-weight:200;font-size:calc(20*var(--u));line-height:calc(25*var(--u));letter-spacing:-.01em}
/* On a cream page the footer shares the page colour, so a dashed rule marks where it begins */
.on-light .site-foot{border-top:1px dashed rgba(16,16,16,.45)}
.foot-bar>div{display:flex;flex-direction:column;align-items:flex-start}
.site-foot .r{align-items:flex-end;text-align:right}
.site-foot .c{align-items:center;text-align:center}
.site-foot .r .scribble{left:-12%!important}   /* right-hand links: the mark runs back into the page, never past its edge */
.site-foot .small-label{height:calc(20*var(--u))}
.site-foot a{position:relative}
@media (max-width:820px){.foot-bar{grid-template-columns:minmax(0,1fr)}.site-foot .c{display:none}.site-foot .r{align-items:flex-start;text-align:left}}

/* Working notes for the review copy only (?review in the address) */
.review-note{display:none}
.review .review-note{display:revert}

/* Handwritten credit that writes in letter by letter */
.writein span{opacity:0;transition:opacity .12s;white-space:pre}
.writein.on span{opacity:1}

/* Fixed corner sign-off on Work and People; .static puts it at the end of scrolling pages instead */
.corner-sign{position:fixed;right:var(--edge);bottom:calc(calc(20*var(--u)) + 56px + env(safe-area-inset-bottom,0px));text-align:right;z-index:5}
.corner-sign .yr{display:block;font-family:var(--hand);font-size:calc(20*var(--u));line-height:calc(16*var(--u));margin-bottom:calc(6*var(--u))}
.corner-sign .tag{font-family:var(--serif);font-weight:200;font-size:calc(20*var(--u));line-height:calc(22*var(--u));letter-spacing:-.01em}
.corner-sign.static{position:static;padding:0 var(--edge) calc(calc(20*var(--u)) + env(safe-area-inset-bottom,0px))}
/* Hand-written counts read small in the stand-in face, so they run larger than Freshman's px sizes */
.count{font-family:var(--hand);font-size:calc(21*var(--u));line-height:calc(18*var(--u));color:var(--accent)}
@media (hover:none){.writein span{opacity:1}}

@media (min-width:821px){.menu-list .label{top:calc(9*var(--u))}}   /* Freshman's capitals sit low in the band, so the count stays inside it */
/* Tablets keep the 20px gutter; only phones drop to 12px */
@media (max-width:600px){:root{--edge:calc(12*var(--u))}}
/* Short screens: the whole menu, footer included, has to fit without scrolling */
@media (max-height:620px){.menu-list a{height:calc(52*var(--u))}.menu-logo{padding-top:calc(20*var(--u))}.menu-list{margin-top:calc(24*var(--u))}.menu-list .label{font-size:calc(44*var(--u));line-height:calc(46*var(--u))}}
@media (max-width:820px){
  .menu-list a{height:calc(64*var(--u));padding-left:calc(var(--x,0%) * .5 + calc(4*var(--u)))}
  .menu-list{margin-top:calc(32*var(--u))}
  .menu-list .label{font-size:clamp(calc(36*var(--u)),11vw,calc(54*var(--u)));line-height:1}
  .menu-foot{grid-template-columns:1fr 1fr;gap:calc(4*var(--u)) calc(12*var(--u))}
  .menu-foot .e{grid-column:1/-1;text-align:left;order:-1}
  .menu-list sup{font-size:calc(15*var(--u));top:-.9em}
  .mail{font-size:calc(17*var(--u))}
  .corner-sign{display:none}
  .writein span{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .menu,.menu.open,.menu .mi,.menu.open .mi{transition:none}
  .curtain.in,.curtain.out{transition:none}
  .scribble path{transition:none}
}

/* Custom cursor, desktop only (site.js adds .has-cursor) */
html.has-cursor,html.has-cursor *{cursor:none!important}
html.has-cursor input:not([type=radio]),html.has-cursor textarea{cursor:text!important}
.cursor{position:fixed;left:0;top:0;z-index:300;pointer-events:none;opacity:0;mix-blend-mode:difference;color:#fff;transition:opacity .2s}
.cursor.on{opacity:1}
.cursor .dot{position:absolute;left:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#fff;transition:transform .25s cubic-bezier(.165,.84,.44,1),background .25s,box-shadow .25s}
.cursor.ring .dot{transform:scale(3.2);background:transparent;box-shadow:inset 0 0 0 .5px #fff}
.cursor .lab{position:absolute;left:22px;top:-26px;font-family:var(--hand);font-size:22px;line-height:1;white-space:nowrap;opacity:0;transition:opacity .2s}
.cursor.label{mix-blend-mode:normal}
.cursor.label .lab{opacity:1;text-shadow:0 1px 6px rgba(0,0,0,.6)}
/* Text links with no scribble of their own still answer the mouse */
a:not([data-scribble]):hover{text-decoration-color:currentColor}
/* Controls with no scribble get their own hover and keyboard state */
.wordmark img,.menu-toggle,.views button,.ctrl,.chip>input+span{transition:opacity .2s,border-color .2s}
.wordmark:hover img,.wordmark:focus-visible img,.menu-toggle:hover,.menu-toggle:focus-visible,.views button:hover,.ctrl:hover,.ctrl:focus-visible{opacity:.65}
.chip>input:hover:not(:checked)+span{border-color:var(--cream)}
input:hover,textarea:hover{border-color:var(--cream)}
